Period

dotty.tools.dotc.core.Periods.Period
See thePeriod companion object
final class Period(val code: Int) extends AnyVal, Showable

A period is a contiguous sequence of phase ids in some run. It is coded as follows:

sign, always 0 1 bit runid 17 bits last phase id: 7 bits #phases before last: 7 bits

// Dmitry: sign == 0 isn't actually always true, in some cases phaseId == -1 is used for shifts, that easily creates code < 0

Attributes

Companion
object
Graph
Supertypes
trait Showable
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def !=(that: Period): Boolean
def &(that: Period): Period

The intersection of two periods

The intersection of two periods

Attributes

def ==(that: Period): Boolean
def contains(that: Period): Boolean

Does this period contain given period?

Does this period contain given period?

Attributes

The first phase of this period

The first phase of this period

Attributes

The last phase of this period

The last phase of this period

Attributes

def overlaps(that: Period): Boolean

Does this period overlap with given period?

Does this period overlap with given period?

Attributes

The phase identifier of this single-phase period.

The phase identifier of this single-phase period.

Attributes

def runId: RunId

The run identifier of this period.

The run identifier of this period.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def toText(p: Printer): Text

The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.

The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.

Attributes

def |(that: Period): Period

The smallest period containing two periods

The smallest period containing two periods

Attributes

Inherited methods

def fallbackToText(printer: Printer): Text

A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

A fallback text representation, if the pattern matching in Printers does not have a case for this showable element

Attributes

Inherited from:
Showable
def show(using Context): String

The string representation of this showable element.

The string representation of this showable element.

Attributes

Inherited from:
Showable
def showIndented(margin: Int)(using Context): String

The string representation with each line after the first one indented by the given given margin (in spaces).

The string representation with each line after the first one indented by the given given margin (in spaces).

Attributes

Inherited from:
Showable
def showSummary(depth: Int)(using Context): String

The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.

Attributes

Inherited from:
Showable

Concrete fields

val code: Int