NoSourcePosition

dotty.tools.dotc.util.NoSourcePosition

A sentinel for a non-existing source position

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Showable
trait SourcePosition
trait SrcPos
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

override def column: Int

Attributes

Definition Classes
SourcePosition -> SourcePosition
override def line: Int

Attributes

Definition Classes
SourcePosition -> SourcePosition
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
override def withOuter(outer: SourcePosition): SourcePosition

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
SourcePosition

Is that a source position contained in this source position ? outer is not taken into account.

Is that a source position contained in this source position ? outer is not taken into account.

Attributes

Inherited from:
SourcePosition
def end: Int

Attributes

Inherited from:
SourcePosition
def endColumn: Int

Attributes

Inherited from:
SourcePosition
def endLine: Int

Attributes

Inherited from:
SourcePosition

Attributes

Inherited from:
SourcePosition
def endPos(using ctx: Context): SourcePosition

Attributes

Inherited from:
SrcPos

Attributes

Inherited from:
SourcePosition
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

Attributes

Inherited from:
SourcePosition
def focus(using ctx: Context): SourcePosition

Attributes

Inherited from:
SrcPos
def line(using ctx: Context): Int

Attributes

Inherited from:
SrcPos

Attributes

Inherited from:
SourcePosition

Attributes

Inherited from:
SourcePosition
def lines: Range

The lines of the position

The lines of the position

Attributes

Inherited from:
SourcePosition

Extracts the lines from the underlying source file as Array[Char]

Extracts the lines from the underlying source file as Array[Char]

Attributes

Inherited from:
SourcePosition

Inner most position that is contained within the outermost position. Most precise position that comes from the call site.

Inner most position that is contained within the outermost position. Most precise position that comes from the call site.

Attributes

Inherited from:
SourcePosition

Attributes

Inherited from:
SourcePosition
def point: Int

Attributes

Inherited from:
SourcePosition

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
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

Attributes

Inherited from:
SourcePosition
def start: Int

Attributes

Inherited from:
SourcePosition

Attributes

Inherited from:
SourcePosition

Attributes

Inherited from:
SourcePosition
def startLine: Int

Attributes

Inherited from:
SourcePosition

Attributes

Inherited from:
SourcePosition
def startPos(using ctx: Context): SourcePosition

Attributes

Inherited from:
SrcPos

Attributes

Inherited from:
SourcePosition
def toText(printer: 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

Inherited from:
SourcePosition

Attributes

Inherited from:
SourcePosition