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

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

Issue 8515024: Require legacy form of type parameters in factories and report errors if a factory class does not... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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 | « frog/leg/util/link_implementation.dart ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void SkipPostfixExpr(); 157 void SkipPostfixExpr();
158 void SkipPrimary(); 158 void SkipPrimary();
159 void SkipCompoundLiteral(); 159 void SkipCompoundLiteral();
160 void SkipNewOperator(); 160 void SkipNewOperator();
161 void SkipActualParameters(); 161 void SkipActualParameters();
162 void SkipMapLiteral(); 162 void SkipMapLiteral();
163 void SkipArrayLiteral(); 163 void SkipArrayLiteral();
164 void SkipFunctionLiteral(); 164 void SkipFunctionLiteral();
165 void SkipStringLiteral(); 165 void SkipStringLiteral();
166 166
167 void CheckConstructorCallTypeArguments(
168 intptr_t pos, Function& constructor, const TypeArguments& type_arguments);
169
167 // Reports error message at location of current token. 170 // Reports error message at location of current token.
168 void ErrorMsg(const char* msg, ...); 171 void ErrorMsg(const char* msg, ...);
169 void ErrorMsg(intptr_t token_index, const char* msg, ...); 172 void ErrorMsg(intptr_t token_index, const char* msg, ...);
170 void Warning(const char* msg, ...); 173 void Warning(const char* msg, ...);
171 void Unimplemented(const char* msg); 174 void Unimplemented(const char* msg);
172 175
173 const Instance& EvaluateConstExpr(AstNode* expr); 176 const Instance& EvaluateConstExpr(AstNode* expr);
174 void RunStaticFieldInitializer(const Field& field); 177 void RunStaticFieldInitializer(const Field& field);
175 RawInstance* EvaluateConstConstructorCall(const Class& type_class, 178 RawInstance* EvaluateConstConstructorCall(const Class& type_class,
176 const TypeArguments& type_arguments, 179 const TypeArguments& type_arguments,
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 TryBlocks* try_blocks_list_; 447 TryBlocks* try_blocks_list_;
445 448
446 char error_msg_[kErrorBuflen]; 449 char error_msg_[kErrorBuflen];
447 450
448 DISALLOW_COPY_AND_ASSIGN(Parser); 451 DISALLOW_COPY_AND_ASSIGN(Parser);
449 }; 452 };
450 453
451 } // namespace dart 454 } // namespace dart
452 455
453 #endif // VM_PARSER_H_ 456 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « frog/leg/util/link_implementation.dart ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698