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

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

Issue 2690723002: [cleanup] Remove redundant block_scope argument from DeclareClassVariable (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 Statement* DeclareFunction(const AstRawString* variable_name, 353 Statement* DeclareFunction(const AstRawString* variable_name,
354 FunctionLiteral* function, VariableMode mode, 354 FunctionLiteral* function, VariableMode mode,
355 int pos, bool is_sloppy_block_function, 355 int pos, bool is_sloppy_block_function,
356 ZoneList<const AstRawString*>* names, bool* ok); 356 ZoneList<const AstRawString*>* names, bool* ok);
357 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name, 357 V8_INLINE Statement* DeclareClass(const AstRawString* variable_name,
358 Expression* value, 358 Expression* value,
359 ZoneList<const AstRawString*>* names, 359 ZoneList<const AstRawString*>* names,
360 int class_token_pos, int end_pos, bool* ok); 360 int class_token_pos, int end_pos, bool* ok);
361 V8_INLINE void DeclareClassVariable(const AstRawString* name, 361 V8_INLINE void DeclareClassVariable(const AstRawString* name,
362 Scope* block_scope, ClassInfo* class_info, 362 ClassInfo* class_info,
363 int class_token_pos, bool* ok); 363 int class_token_pos, bool* ok);
364 V8_INLINE void DeclareClassProperty(const AstRawString* class_name, 364 V8_INLINE void DeclareClassProperty(const AstRawString* class_name,
365 ClassLiteralProperty* property, 365 ClassLiteralProperty* property,
366 ClassLiteralProperty::Kind kind, 366 ClassLiteralProperty::Kind kind,
367 bool is_static, bool is_constructor, 367 bool is_static, bool is_constructor,
368 ClassInfo* class_info, bool* ok); 368 ClassInfo* class_info, bool* ok);
369 V8_INLINE Expression* RewriteClassLiteral(const AstRawString* name, 369 V8_INLINE Expression* RewriteClassLiteral(const AstRawString* name,
370 ClassInfo* class_info, int pos, 370 ClassInfo* class_info, int pos,
371 bool* ok); 371 bool* ok);
372 V8_INLINE Statement* DeclareNative(const AstRawString* name, int pos, 372 V8_INLINE Statement* DeclareNative(const AstRawString* name, int pos,
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 1178
1179 private: 1179 private:
1180 ParserTarget** variable_; 1180 ParserTarget** variable_;
1181 ParserTarget* previous_; 1181 ParserTarget* previous_;
1182 }; 1182 };
1183 1183
1184 } // namespace internal 1184 } // namespace internal
1185 } // namespace v8 1185 } // namespace v8
1186 1186
1187 #endif // V8_PARSING_PARSER_H_ 1187 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698