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

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

Issue 9958091: Add missing type checks for top level static initializers (issue 1980 and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void Warning(intptr_t token_index, const char* msg, ...); 226 void Warning(intptr_t token_index, const char* msg, ...);
227 227
228 // Reports an already formatted error message. 228 // Reports an already formatted error message.
229 void ErrorMsg(const Error& error); 229 void ErrorMsg(const Error& error);
230 230
231 // Concatenates two error messages, the previous and the current one. 231 // Concatenates two error messages, the previous and the current one.
232 void AppendErrorMsg( 232 void AppendErrorMsg(
233 const Error& prev_error, intptr_t token_index, const char* format, ...); 233 const Error& prev_error, intptr_t token_index, const char* format, ...);
234 234
235 const Instance& EvaluateConstExpr(AstNode* expr); 235 const Instance& EvaluateConstExpr(AstNode* expr);
236 void RunStaticFieldInitializer(const Field& field); 236 AstNode* RunStaticFieldInitializer(const Field& field);
237 RawObject* EvaluateConstConstructorCall( 237 RawObject* EvaluateConstConstructorCall(
238 const Class& type_class, 238 const Class& type_class,
239 const AbstractTypeArguments& type_arguments, 239 const AbstractTypeArguments& type_arguments,
240 const Function& constructor, 240 const Function& constructor,
241 ArgumentListNode* arguments); 241 ArgumentListNode* arguments);
242 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr); 242 AstNode* FoldConstExpr(intptr_t expr_pos, AstNode* expr);
243 243
244 // Support for parsing of scripts. 244 // Support for parsing of scripts.
245 void ParseTopLevel(); 245 void ParseTopLevel();
246 void ParseClassDefinition(const GrowableObjectArray& pending_classes); 246 void ParseClassDefinition(const GrowableObjectArray& pending_classes);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // code at all points in the try block where an exit from the block is 504 // code at all points in the try block where an exit from the block is
505 // done using 'return', 'break' or 'continue' statements. 505 // done using 'return', 'break' or 'continue' statements.
506 TryBlocks* try_blocks_list_; 506 TryBlocks* try_blocks_list_;
507 507
508 DISALLOW_COPY_AND_ASSIGN(Parser); 508 DISALLOW_COPY_AND_ASSIGN(Parser);
509 }; 509 };
510 510
511 } // namespace dart 511 } // namespace dart
512 512
513 #endif // VM_PARSER_H_ 513 #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