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

Unified Diff: src/parsing/preparser.h

Issue 2263973003: [parser] Modify some const qualifications (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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/parsing/parser-base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index de711a7dd02eeb3c42a99670ee144f580c86cac5..111ba40e5851962bed957307c7e251bf80801420 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -798,21 +798,21 @@ class PreParserTraits {
return PreParserIdentifier::Default();
}
- PreParserExpression ThisExpression(int pos = kNoSourcePosition) const {
+ PreParserExpression ThisExpression(int pos = kNoSourcePosition) {
return PreParserExpression::This();
}
PreParserExpression NewSuperPropertyReference(PreParserFactory* factory,
- int pos) const {
+ int pos) {
return PreParserExpression::Default();
}
PreParserExpression NewSuperCallReference(PreParserFactory* factory,
- int pos) const {
+ int pos) {
return PreParserExpression::SuperCallReference();
}
- PreParserExpression NewTargetExpression(int pos) const {
+ PreParserExpression NewTargetExpression(int pos) {
return PreParserExpression::Default();
}
@@ -827,9 +827,10 @@ class PreParserTraits {
return PreParserExpression::Default();
}
- PreParserExpression ExpressionFromIdentifier(
- PreParserIdentifier name, int start_position, int end_position,
- InferName = InferName::kYes) const {
+ PreParserExpression ExpressionFromIdentifier(PreParserIdentifier name,
+ int start_position,
+ int end_position,
+ InferName = InferName::kYes) {
return PreParserExpression::FromIdentifier(name);
}
@@ -855,7 +856,7 @@ class PreParserTraits {
void AddParameterInitializationBlock(
const PreParserFormalParameters& parameters, PreParserStatementList body,
- bool is_async, bool* ok) const {}
+ bool is_async, bool* ok) {}
void ParseAsyncArrowSingleExpressionBody(
PreParserStatementList body, bool accept_IN,
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698