| Index: runtime/vm/scanner.h
|
| ===================================================================
|
| --- runtime/vm/scanner.h (revision 3419)
|
| +++ runtime/vm/scanner.h (working copy)
|
| @@ -51,6 +51,7 @@
|
|
|
| // Initializes scanner to scan string source.
|
| Scanner(const String& source, const String& private_key);
|
| + ~Scanner();
|
|
|
| // Scans one token at a time.
|
| void Scan();
|
| @@ -59,6 +60,10 @@
|
| // Use CurrentPosition() to extract position.
|
| void ScanTo(intptr_t token_index);
|
|
|
| + // Returns token index of first token on or after given line number.
|
| + // Returns negative value if no token exists on or after the line.
|
| + intptr_t TokenIndexAtLine(intptr_t line_number);
|
| +
|
| // Scans entire source and returns a stream of tokens.
|
| // Should be called only once.
|
| const GrowableTokenStream& GetStream();
|
| @@ -97,6 +102,9 @@
|
| String* keyword_symbol;
|
| };
|
|
|
| + // Rewind scanner position to token 0.
|
| + void Reset();
|
| +
|
| // Initialize Scanner tables.
|
| void InitKeywordTable();
|
|
|
|
|