SourceLocation

One per token Stored in CompilationContext.tokenLocationBuffer

Members

Functions

getTokenString
const(char)[] getTokenString(const(char)[] input)
Undocumented in source. Be warned that the author may not have intended to support it.
getTokenString
const(char)[] getTokenString(TokenType type, const(char)[] input)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
void toString(void delegate(const(char)[]) sink)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

col
uint col;

Zero based column number

end
uint end;

Byte offset in the CompilationContext.sourceBuffer (exclusive)

line
uint line;

Zero based line number

start
uint start;

Byte offset in the CompilationContext.sourceBuffer

Meta