Dotty Documentation

0.1.1-bin-SNAPSHOT

case class SourcePosition
extends SourcePosition with Product

A source position is comprised of a position in a source file

[-] Constructors

SourcePosition ( source: SourceFile , pos: Position , outer: SourcePosition )

[-] Members

[+] val outer : SourcePosition
[+] val pos : Position
[+] val source : SourceFile
[+] def beforeAndAfterPoint : ( List [ Int ], List [ Int ] )
[+] def column : Int

The column of the position, starting at 0

[+] def end : Int
[+] def endColumn : Int
[+] def endLine : Int
[+] def exists : Boolean
[+] def line : Int

The line of the position, starting at 0

[+] def lineContent : String
[+] def lineOffsets : List [ Int ]
[+] def lines : List [ Int ]

The lines of the position

[+] def linesSlice : Array [ Char ]

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

[+] def point : Int
[+] def start : Int
[+] def startColumn : Int
[+] def startColumnPadding : String
[+] def startLine : Int
[+] override def toString : String
[+] def withOuter ( outer: SourcePosition ) : SourcePosition