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

Side by Side Diff: runtime/vm/parser.h

Issue 10809089: Make sure the "Skip*" functions know about cascades as well. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void SkipToMatchingParenthesis(); 210 void SkipToMatchingParenthesis();
211 void SkipTypeArguments(); 211 void SkipTypeArguments();
212 void SkipType(bool allow_void); 212 void SkipType(bool allow_void);
213 void SkipInitializers(); 213 void SkipInitializers();
214 void SkipExpr(); 214 void SkipExpr();
215 void SkipNestedExpr(); 215 void SkipNestedExpr();
216 void SkipConditionalExpr(); 216 void SkipConditionalExpr();
217 void SkipBinaryExpr(); 217 void SkipBinaryExpr();
218 void SkipUnaryExpr(); 218 void SkipUnaryExpr();
219 void SkipPostfixExpr(); 219 void SkipPostfixExpr();
220 void SkipSelectors();
220 void SkipPrimary(); 221 void SkipPrimary();
221 void SkipCompoundLiteral(); 222 void SkipCompoundLiteral();
222 void SkipNewOperator(); 223 void SkipNewOperator();
223 void SkipActualParameters(); 224 void SkipActualParameters();
224 void SkipMapLiteral(); 225 void SkipMapLiteral();
225 void SkipListLiteral(); 226 void SkipListLiteral();
226 void SkipFunctionLiteral(); 227 void SkipFunctionLiteral();
227 void SkipStringLiteral(); 228 void SkipStringLiteral();
228 void SkipQualIdent(); 229 void SkipQualIdent();
229 230
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 AstNode* ParseNewOperator(); 437 AstNode* ParseNewOperator();
437 438
438 // An implicit argument, if non-null, is prepended to the returned list. 439 // An implicit argument, if non-null, is prepended to the returned list.
439 ArgumentListNode* ParseActualParameters(ArgumentListNode* implicit_arguments, 440 ArgumentListNode* ParseActualParameters(ArgumentListNode* implicit_arguments,
440 bool require_const); 441 bool require_const);
441 AstNode* ParseStaticCall(const Class& cls, 442 AstNode* ParseStaticCall(const Class& cls,
442 const String& method_name, 443 const String& method_name,
443 intptr_t ident_pos); 444 intptr_t ident_pos);
444 AstNode* ParseInstanceCall(AstNode* receiver, const String& method_name); 445 AstNode* ParseInstanceCall(AstNode* receiver, const String& method_name);
445 AstNode* ParseClosureCall(AstNode* closure); 446 AstNode* ParseClosureCall(AstNode* closure);
446 AstNode* ParseInstanceFieldAccess(AstNode* receiver,
447 const String& field_name,
448 bool consume_cascades);
449 AstNode* GenerateStaticFieldLookup(const Field& field, 447 AstNode* GenerateStaticFieldLookup(const Field& field,
450 intptr_t ident_pos); 448 intptr_t ident_pos);
451 AstNode* ParseStaticFieldAccess(const Class& cls, 449 AstNode* ParseStaticFieldAccess(const Class& cls,
452 const String& field_name, 450 const String& field_name,
453 intptr_t ident_pos, 451 intptr_t ident_pos,
454 bool consume_cascades); 452 bool consume_cascades);
455 453
456 LocalVariable* LookupLocalScope(const String& ident); 454 LocalVariable* LookupLocalScope(const String& ident);
457 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name); 455 void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name);
458 RawClass* TypeParametersScopeClass(); 456 RawClass* TypeParametersScopeClass();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 552
555 // Allocate temporary only once per function. 553 // Allocate temporary only once per function.
556 LocalVariable* expression_temp_; 554 LocalVariable* expression_temp_;
557 555
558 DISALLOW_COPY_AND_ASSIGN(Parser); 556 DISALLOW_COPY_AND_ASSIGN(Parser);
559 }; 557 };
560 558
561 } // namespace dart 559 } // namespace dart
562 560
563 #endif // VM_PARSER_H_ 561 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698