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

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

Issue 11049038: Change compile-time errors into dynamic errors in instance creation expression (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 AstNode* node, 551 AstNode* node,
552 LocalScope* scope); 552 LocalScope* scope);
553 553
554 SequenceNode* MakeImplicitConstructor(const Function& func); 554 SequenceNode* MakeImplicitConstructor(const Function& func);
555 AstNode* MakeStaticCall(const String& cls_name, 555 AstNode* MakeStaticCall(const String& cls_name,
556 const String& func_name, 556 const String& func_name,
557 ArgumentListNode* arguments); 557 ArgumentListNode* arguments);
558 String& Interpolate(ArrayNode* values); 558 String& Interpolate(ArrayNode* values);
559 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 559 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
560 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type); 560 AstNode* ThrowTypeError(intptr_t type_pos, const AbstractType& type);
561 AstNode* ThrowNoSuchMethodError(intptr_t call_pos, const String& name);
561 562
562 void CheckFunctionIsCallable(intptr_t token_pos, const Function& function); 563 void CheckFunctionIsCallable(intptr_t token_pos, const Function& function);
563 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token); 564 void CheckOperatorArity(const MemberDesc& member, Token::Kind operator_token);
564 565
565 const LocalVariable* GetIncrementTempLocal(); 566 const LocalVariable* GetIncrementTempLocal();
566 void EnsureExpressionTemp(); 567 void EnsureExpressionTemp();
567 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs); 568 AstNode* CreateAssignmentNode(AstNode* original, AstNode* rhs);
568 AstNode* InsertClosureCallNodes(AstNode* condition); 569 AstNode* InsertClosureCallNodes(AstNode* condition);
569 570
570 ConstructorCallNode* CreateConstructorCallNode( 571 ConstructorCallNode* CreateConstructorCallNode(
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 612
612 // Allocate temporary only once per function. 613 // Allocate temporary only once per function.
613 LocalVariable* expression_temp_; 614 LocalVariable* expression_temp_;
614 615
615 DISALLOW_COPY_AND_ASSIGN(Parser); 616 DISALLOW_COPY_AND_ASSIGN(Parser);
616 }; 617 };
617 618
618 } // namespace dart 619 } // namespace dart
619 620
620 #endif // VM_PARSER_H_ 621 #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