SourcePosition

tastyquery.SourcePosition
See theSourcePosition companion object
final class SourcePosition

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def endColumn: Int

The column number of the end of this position.

The column number of the end of this position.

Attributes

def endLine: Int

The line number of the end of this position.

The line number of the end of this position.

Attributes

def endOffset: Int

The offset of the end of this position.

The offset of the end of this position.

Attributes

Tests whether this position gives line/column information.

Tests whether this position gives line/column information.

If this method returns false, the *Line and *Column methods will throw UnsupportedOperationException.

Attributes

def isSourceDerived: Boolean

Is this position source-derived, i.e., not synthetic?

Is this position source-derived, i.e., not synthetic?

Attributes

def isSynthetic: Boolean

Is this position synthetic?

Is this position synthetic?

A synthetic position is given to trees that are not found in source code, but generated by the compiler. Examples are inferred type parameters or summoned implicit values.

Attributes

def isUnknown: Boolean

True if this source position is unknown.

True if this source position is unknown.

Attributes

def isZeroExtent: Boolean

Is this a zero-extent position, i.e., one for which the start and end coincide?

Is this a zero-extent position, i.e., one for which the start and end coincide?

Attributes

def pointColumn: Int

The column number of the main point of this position.

The column number of the main point of this position.

The main point is where the ^ of an error message would typically be pointing.

Attributes

def pointLine: Int

The line number of the main point of this position.

The line number of the main point of this position.

The main point is where the ^ of an error message would typically be pointing.

Attributes

def pointOffset: Int

The offset of the main point of this position.

The offset of the main point of this position.

The main point is where the ^ of an error message would typically be pointing.

Attributes

def startColumn: Int

The column number of the start of this position.

The column number of the start of this position.

Attributes

def startLine: Int

The line number of the start of this position.

The line number of the start of this position.

Attributes

def startOffset: Int

The offset of the start of this position.

The offset of the start of this position.

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

Concrete fields