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

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

Issue 8676001: Implement type checking of list literals (issue 220). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/object.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) 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void SkipNestedExpr(); 155 void SkipNestedExpr();
156 void SkipConditionalExpr(); 156 void SkipConditionalExpr();
157 void SkipBinaryExpr(); 157 void SkipBinaryExpr();
158 void SkipUnaryExpr(); 158 void SkipUnaryExpr();
159 void SkipPostfixExpr(); 159 void SkipPostfixExpr();
160 void SkipPrimary(); 160 void SkipPrimary();
161 void SkipCompoundLiteral(); 161 void SkipCompoundLiteral();
162 void SkipNewOperator(); 162 void SkipNewOperator();
163 void SkipActualParameters(); 163 void SkipActualParameters();
164 void SkipMapLiteral(); 164 void SkipMapLiteral();
165 void SkipArrayLiteral(); 165 void SkipListLiteral();
166 void SkipFunctionLiteral(); 166 void SkipFunctionLiteral();
167 void SkipStringLiteral(); 167 void SkipStringLiteral();
168 168
169 void CheckConstructorCallTypeArguments( 169 void CheckConstructorCallTypeArguments(
170 intptr_t pos, Function& constructor, const TypeArguments& type_arguments); 170 intptr_t pos, Function& constructor, const TypeArguments& type_arguments);
171 171
172 // Reports error message at location of current token. 172 // Reports error message at location of current token.
173 void ErrorMsg(const char* msg, ...); 173 void ErrorMsg(const char* msg, ...);
174 void ErrorMsg(intptr_t token_index, const char* msg, ...); 174 void ErrorMsg(intptr_t token_index, const char* msg, ...);
175 void Warning(const char* msg, ...); 175 void Warning(const char* msg, ...);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 static const bool kRequireConst = true; 335 static const bool kRequireConst = true;
336 static const bool kAllowConst = false; 336 static const bool kAllowConst = false;
337 AstNode* ParseExpr(bool require_compiletime_const); 337 AstNode* ParseExpr(bool require_compiletime_const);
338 AstNode* ParseExprList(); 338 AstNode* ParseExprList();
339 AstNode* ParseConditionalExpr(); 339 AstNode* ParseConditionalExpr();
340 AstNode* ParseUnaryExpr(); 340 AstNode* ParseUnaryExpr();
341 AstNode* ParsePostfixExpr(); 341 AstNode* ParsePostfixExpr();
342 AstNode* ParsePrimary(); 342 AstNode* ParsePrimary();
343 AstNode* ParseStringLiteral(); 343 AstNode* ParseStringLiteral();
344 AstNode* ParseCompoundLiteral(); 344 AstNode* ParseCompoundLiteral();
345 AstNode* ParseArrayLiteral(intptr_t type_pos, 345 AstNode* ParseListLiteral(intptr_t type_pos,
346 bool is_const, 346 bool is_const,
347 const TypeArguments& type_arguments); 347 const TypeArguments& type_arguments);
348 AstNode* ParseMapLiteral(intptr_t type_pos, 348 AstNode* ParseMapLiteral(intptr_t type_pos,
349 bool is_const, 349 bool is_const,
350 const TypeArguments& type_arguments); 350 const TypeArguments& type_arguments);
351 AstNode* ParseNewOperator(); 351 AstNode* ParseNewOperator();
352 352
353 // An implicit argument, if non-null, is prepended to the returned list. 353 // An implicit argument, if non-null, is prepended to the returned list.
354 ArgumentListNode* ParseActualParameters(ArgumentListNode* implicit_arguments, 354 ArgumentListNode* ParseActualParameters(ArgumentListNode* implicit_arguments,
355 bool require_const); 355 bool require_const);
356 AstNode* ParseStaticCall(const Class& cls, 356 AstNode* ParseStaticCall(const Class& cls,
357 const String& method_name, 357 const String& method_name,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // code at all points in the try block where an exit from the block is 444 // code at all points in the try block where an exit from the block is
445 // done using 'return', 'break' or 'continue' statements. 445 // done using 'return', 'break' or 'continue' statements.
446 TryBlocks* try_blocks_list_; 446 TryBlocks* try_blocks_list_;
447 447
448 DISALLOW_COPY_AND_ASSIGN(Parser); 448 DISALLOW_COPY_AND_ASSIGN(Parser);
449 }; 449 };
450 450
451 } // namespace dart 451 } // namespace dart
452 452
453 #endif // VM_PARSER_H_ 453 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698