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

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

Issue 9414005: Fix issue 979: operator arity must be verified. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 AstNode* node, 416 AstNode* node,
417 LocalScope* scope); 417 LocalScope* scope);
418 418
419 SequenceNode* MakeImplicitConstructor(const Function& func); 419 SequenceNode* MakeImplicitConstructor(const Function& func);
420 AstNode* MakeStaticCall(const char* class_name, 420 AstNode* MakeStaticCall(const char* class_name,
421 const char* function_name, 421 const char* function_name,
422 ArgumentListNode* arguments); 422 ArgumentListNode* arguments);
423 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 423 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
424 424
425 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); 425 void CheckFunctionIsCallable(intptr_t token_index, const Function& function);
426 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token);
427
426 428
427 const Script& script_; 429 const Script& script_;
428 const TokenStream& tokens_; 430 const TokenStream& tokens_;
429 intptr_t token_index_; 431 intptr_t token_index_;
430 Token::Kind token_kind_; // Cached token kind for the token_index_. 432 Token::Kind token_kind_; // Cached token kind for the token_index_.
431 Block* current_block_; 433 Block* current_block_;
432 434
433 // is_top_level_ is true if parsing the "top level" of a compilation unit, 435 // is_top_level_ is true if parsing the "top level" of a compilation unit,
434 // that is interface and class definitions. 436 // that is interface and class definitions.
435 bool is_top_level_; 437 bool is_top_level_;
(...skipping 20 matching lines...) Expand all
456 // code at all points in the try block where an exit from the block is 458 // code at all points in the try block where an exit from the block is
457 // done using 'return', 'break' or 'continue' statements. 459 // done using 'return', 'break' or 'continue' statements.
458 TryBlocks* try_blocks_list_; 460 TryBlocks* try_blocks_list_;
459 461
460 DISALLOW_COPY_AND_ASSIGN(Parser); 462 DISALLOW_COPY_AND_ASSIGN(Parser);
461 }; 463 };
462 464
463 } // namespace dart 465 } // namespace dart
464 466
465 #endif // VM_PARSER_H_ 467 #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