GeneratedSource

Represents a generated source, where an AST node has been created programmatically and cannot be traced back to the corresponding input source.

class Object
trait Matchable
class Any

Type members

Types

type Self = GeneratedSource.type

Value members

Concrete methods

def atEnd: Boolean
def capture(numChars: Int): String
def consume(numChars: Int): GeneratedSource.type
def input: String
def nestLevel: Int
def offset: Int
def remaining: Int

Inherited methods

def char: Char

The character at the current offset.

The character at the current offset.

Inherited from:
SourceCursor
def charAt(relativeOffset: Int): Char

The character at the specified offset, relative from the current offset.

The character at the specified offset, relative from the current offset.

Inherited from:
SourceCursor
def length: Int

The length of the input of this cursor.

The length of the input of this cursor.

Inherited from:
SourceCursor
def path: Option[Path]

The (virtual) path of the document this input originates from; may be empty in case of generated sources.

The (virtual) path of the document this input originates from; may be empty in case of generated sources.

Inherited from:
SourceCursor