Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1902)

Unified Diff: runtime/vm/scanner.h

Issue 9240014: Set breakpoint at url, line number (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698