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

Unified Diff: src/preparser.h

Issue 143223002: Experimental lexer: fix style issues. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 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 | « src/lexer/lexer-shell.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 851be8bc87297fab6baaf154a16468fb2ee7b79c..d082763214a4628ef080e0325e9d3156813ac772 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -74,19 +74,22 @@ class ParserBase {
void set_allow_for_of(bool allow) { allow_for_of_ = allow; }
void set_allow_modules(bool allow) {
allow_harmony_modules_ = allow;
- if (scanner())
+ if (scanner()) {
scanner()->SetHarmonyModules(allow);
+ }
}
void set_allow_harmony_scoping(bool allow) {
allow_harmony_scoping_ = allow;
- if (scanner())
+ if (scanner()) {
scanner()->SetHarmonyScoping(allow);
+ }
}
void set_allow_harmony_numeric_literals(bool allow) {
allow_harmony_numeric_literals_ = allow;
- if (scanner())
+ if (scanner()) {
scanner()->SetHarmonyNumericLiterals(allow);
+ }
}
protected:
« no previous file with comments | « src/lexer/lexer-shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698