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

Side by Side Diff: src/parsing/parser.h

Issue 2458653002: [modules] Move MODULE variable back to Scopes, before resolution (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/ast/scopes.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/base/compiler-specific.h" 10 #include "src/base/compiler-specific.h"
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 VariableProxy* NewUnresolved(const AstRawString* name); 467 VariableProxy* NewUnresolved(const AstRawString* name);
468 Variable* Declare(Declaration* declaration, 468 Variable* Declare(Declaration* declaration,
469 DeclarationDescriptor::Kind declaration_kind, 469 DeclarationDescriptor::Kind declaration_kind,
470 VariableMode mode, InitializationFlag init, bool* ok, 470 VariableMode mode, InitializationFlag init, bool* ok,
471 Scope* declaration_scope = nullptr, 471 Scope* declaration_scope = nullptr,
472 int var_end_pos = kNoSourcePosition); 472 int var_end_pos = kNoSourcePosition);
473 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, 473 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
474 int pos, bool* ok); 474 int pos, bool* ok);
475 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, 475 Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
476 InitializationFlag init, int pos, bool* ok); 476 InitializationFlag init, int pos, bool* ok);
477 Declaration* DeclareModuleImport(const AstRawString* name, int pos, bool* ok);
478 477
479 bool TargetStackContainsLabel(const AstRawString* label); 478 bool TargetStackContainsLabel(const AstRawString* label);
480 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); 479 BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok);
481 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok); 480 IterationStatement* LookupContinueTarget(const AstRawString* label, bool* ok);
482 481
483 Statement* BuildAssertIsCoercible(Variable* var); 482 Statement* BuildAssertIsCoercible(Variable* var);
484 483
485 // Factory methods. 484 // Factory methods.
486 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super, 485 FunctionLiteral* DefaultConstructor(const AstRawString* name, bool call_super,
487 bool requires_class_field_init, int pos, 486 bool requires_class_field_init, int pos,
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 1141
1143 private: 1142 private:
1144 ParserTarget** variable_; 1143 ParserTarget** variable_;
1145 ParserTarget* previous_; 1144 ParserTarget* previous_;
1146 }; 1145 };
1147 1146
1148 } // namespace internal 1147 } // namespace internal
1149 } // namespace v8 1148 } // namespace v8
1150 1149
1151 #endif // V8_PARSING_PARSER_H_ 1150 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698