Scanner.lineNumber

class Scanner
@property const
size_t
lineNumber
(
)

Return Value

Type: size_t

The current line number.

Examples

auto scanner = new Scanner(cast(ubyte[])"\n\n\r\n".representation);
assert(scanner.lineNumber == 1);

Meta