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

Unified Diff: src/parsing/scanner.h

Issue 2345053003: Behold, a unit test for Scanner::BookmarkScope (& scanner bookmarking). (Closed)
Patch Set: Rebase & fix .gyp file. Created 4 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
« no previous file with comments | « no previous file | src/parsing/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/scanner.h
diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h
index d43bb65cd493885c9a916eca67cafc68eaca6648..df0a7e3945c0fe3f1120cbeeeed0945bc7231c2c 100644
--- a/src/parsing/scanner.h
+++ b/src/parsing/scanner.h
@@ -842,8 +842,8 @@ class Scanner {
// To be able to restore this state, we will keep copies of current_, next_,
// and c0_; we'll ask the stream to bookmark itself, and we'll copy the
// contents of current_'s and next_'s literal buffers to bookmark_*_literal_.
- static const uc32 kNoBookmark = -1;
- static const uc32 kBookmarkWasApplied = -2;
+ static const uc32 kNoBookmark = -2;
+ static const uc32 kBookmarkWasApplied = -3;
uc32 bookmark_c0_;
TokenDesc bookmark_current_;
TokenDesc bookmark_next_;
« no previous file with comments | « no previous file | src/parsing/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698