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

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

Issue 11342027: Handle super call to unary operators (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 const Array& interfaces); 359 const Array& interfaces);
360 ArgumentListNode* BuildNoSuchMethodArguments( 360 ArgumentListNode* BuildNoSuchMethodArguments(
361 const String& function_name, const ArgumentListNode& function_args); 361 const String& function_name, const ArgumentListNode& function_args);
362 RawFunction* GetSuperFunction(intptr_t token_pos, 362 RawFunction* GetSuperFunction(intptr_t token_pos,
363 const String& name, 363 const String& name,
364 bool resolve_getter, 364 bool resolve_getter,
365 bool* is_no_such_method); 365 bool* is_no_such_method);
366 AstNode* ParseSuperCall(const String& function_name); 366 AstNode* ParseSuperCall(const String& function_name);
367 AstNode* ParseSuperFieldAccess(const String& field_name); 367 AstNode* ParseSuperFieldAccess(const String& field_name);
368 AstNode* ParseSuperOperator(); 368 AstNode* ParseSuperOperator();
369 AstNode* BuildUnarySuperOperator(Token::Kind op, PrimaryNode* super);
369 370
370 static void SetupDefaultsForOptionalParams(const ParamList* params, 371 static void SetupDefaultsForOptionalParams(const ParamList* params,
371 Array& default_values); 372 Array& default_values);
372 AstNode* CreateImplicitClosureNode(const Function& func, 373 AstNode* CreateImplicitClosureNode(const Function& func,
373 intptr_t token_pos, 374 intptr_t token_pos,
374 AstNode* receiver); 375 AstNode* receiver);
375 void AddFormalParamsToFunction(const ParamList* params, const Function& func); 376 void AddFormalParamsToFunction(const ParamList* params, const Function& func);
376 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); 377 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope);
377 378
378 SequenceNode* ParseConstructor(const Function& func, 379 SequenceNode* ParseConstructor(const Function& func,
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 619
619 // Allocate temporary only once per function. 620 // Allocate temporary only once per function.
620 LocalVariable* expression_temp_; 621 LocalVariable* expression_temp_;
621 622
622 DISALLOW_COPY_AND_ASSIGN(Parser); 623 DISALLOW_COPY_AND_ASSIGN(Parser);
623 }; 624 };
624 625
625 } // namespace dart 626 } // namespace dart
626 627
627 #endif // VM_PARSER_H_ 628 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698