NoSource

object NoSource extends SourceFile
trait SourceFile
trait AbstractFile
class Object
trait Matchable
class Any

Value members

Concrete methods

override def atSpan(span: Span): SourcePosition
Definition Classes
override def exists: Boolean
Definition Classes

Inherited methods

def apply(idx: Int): Char
Inherited from
SourceFile
def column(offset: Int): Int

The column corresponding to offset, starting at 0

The column corresponding to offset, starting at 0

Inherited from
SourceFile
def content(): Array[Char]
Inherited from
SourceFile
override def equals(that: Any): Boolean
Definition Classes
SourceFile -> Any
Inherited from
SourceFile
override def hashCode: Int
Definition Classes
SourceFile -> Any
Inherited from
SourceFile
override def jfile: Optional[JFile]
Definition Classes
SourceFile -> AbstractFile
Inherited from
SourceFile
def length: Int
Inherited from
SourceFile
def lineContent(offset: Int): String

The content of the line containing position offset

The content of the line containing position offset

Inherited from
SourceFile
def lineToOffset(index: Int): Int

Map line to offset of first character in line

Map line to offset of first character in line

Inherited from
SourceFile
def lineToOffsetOpt(index: Int): Option[Int]

Like lineToOffset, but doesn't crash if the index is out of bounds.

Like lineToOffset, but doesn't crash if the index is out of bounds.

Inherited from
SourceFile
override def name: String
Definition Classes
SourceFile -> AbstractFile
Inherited from
SourceFile
def nextLine(offset: Int): Int

The start index of the line following the one containing position offset

The start index of the line following the one containing position offset

Inherited from
SourceFile
def offsetToLine(offset: Int): Int

Convert offset to line in this source file Lines are numbered from 0

Convert offset to line in this source file Lines are numbered from 0

Inherited from
SourceFile
override def path: String
Definition Classes
SourceFile -> AbstractFile
Inherited from
SourceFile

Map a position to a position in the underlying source file. For regular source files, simply return the argument.

Map a position to a position in the underlying source file. For regular source files, simply return the argument.

Inherited from
SourceFile
def start: Int

The start of this file in the underlying source file

The start of this file in the underlying source file

Inherited from
SourceFile

The padding of the column corresponding to offset, includes tabs

The padding of the column corresponding to offset, includes tabs

Inherited from
SourceFile
def startOfLine(offset: Int): Int

The index of the first character of the line containing position offset

The index of the first character of the line containing position offset

Inherited from
SourceFile
def tabInc: Int

Tab increment; can be overridden

Tab increment; can be overridden

Inherited from
SourceFile
override def toString: String
Definition Classes
SourceFile -> Any
Inherited from
SourceFile

The underlying source file

The underlying source file

Inherited from
SourceFile

Inherited fields

Inherited from
SourceFile