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

Unified Diff: runtime/vm/scanner.h

Issue 24359005: Make Script::GetTokenLocation() and Script::TokenRangeAtLine() use token streams where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
Index: runtime/vm/scanner.h
diff --git a/runtime/vm/scanner.h b/runtime/vm/scanner.h
index 5d59dee190cc7da32621cba5ecc1976f5fbed032..6cecdd18dd162c9aa29db92bef28de2f6e191cd4 100644
--- a/runtime/vm/scanner.h
+++ b/runtime/vm/scanner.h
@@ -64,15 +64,6 @@ class Scanner : ValueObject {
// Use CurrentPosition() to extract position.
void ScanTo(intptr_t token_index);
- // Returns index of first and last token on the given line.
- // Returns both indices < 0 if no token exists on or after the line.
- // If a token exists after, but not on given line, returns in
- // *fisrt_token_index the index of the first token after the line,
- // and a negative value in *last_token_index.
- void TokenRangeAtLine(intptr_t line_number,
- intptr_t* first_token_index,
- intptr_t* last_token_index);
-
// Scans entire source and returns a stream of tokens.
// Should be called only once.
const GrowableTokenStream& GetStream();

Powered by Google App Engine
This is Rietveld 408576698