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

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

Issue 10828053: Support const modifier in fields, variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/object_test.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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // Adds try block to the list of try blocks seen so far. 384 // Adds try block to the list of try blocks seen so far.
385 void PushTryBlock(Block* try_block); 385 void PushTryBlock(Block* try_block);
386 // Pops the inner most try block from the list. 386 // Pops the inner most try block from the list.
387 TryBlocks* PopTryBlock(); 387 TryBlocks* PopTryBlock();
388 // Add specified node to try block list so that it can be patched with 388 // Add specified node to try block list so that it can be patched with
389 // inlined finally code if needed. 389 // inlined finally code if needed.
390 void AddNodeForFinallyInlining(AstNode* node); 390 void AddNodeForFinallyInlining(AstNode* node);
391 // Add the inlined finally block to the specified node. 391 // Add the inlined finally block to the specified node.
392 void AddFinallyBlockToNode(AstNode* node, InlinedFinallyNode* finally_node); 392 void AddFinallyBlockToNode(AstNode* node, InlinedFinallyNode* finally_node);
393 AstNode* ParseTryStatement(String* label_name); 393 AstNode* ParseTryStatement(String* label_name);
394 RawAbstractType* ParseFinalVarOrType( 394 RawAbstractType* ParseConstFinalVarOrType(
395 ClassFinalizer::FinalizationKind finalization); 395 ClassFinalizer::FinalizationKind finalization);
396 AstNode* ParseVariableDeclaration(const AbstractType& type, bool is_const); 396 AstNode* ParseVariableDeclaration(const AbstractType& type,
397 bool is_final,
398 bool is_const);
397 AstNode* ParseVariableDeclarationList(); 399 AstNode* ParseVariableDeclarationList();
398 AstNode* ParseFunctionStatement(bool is_literal); 400 AstNode* ParseFunctionStatement(bool is_literal);
399 AstNode* ParseStatement(); 401 AstNode* ParseStatement();
400 SequenceNode* ParseNestedStatement(bool parsing_loop_body, 402 SequenceNode* ParseNestedStatement(bool parsing_loop_body,
401 SourceLabel* label); 403 SourceLabel* label);
402 void ParseStatementSequence(); 404 void ParseStatementSequence();
403 bool IsIdentifier(); 405 bool IsIdentifier();
404 bool IsFunctionTypeAliasName(); 406 bool IsFunctionTypeAliasName();
405 bool TryParseTypeParameter(); 407 bool TryParseTypeParameter();
406 bool TryParseOptionalType(); 408 bool TryParseOptionalType();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 554
553 // Allocate temporary only once per function. 555 // Allocate temporary only once per function.
554 LocalVariable* expression_temp_; 556 LocalVariable* expression_temp_;
555 557
556 DISALLOW_COPY_AND_ASSIGN(Parser); 558 DISALLOW_COPY_AND_ASSIGN(Parser);
557 }; 559 };
558 560
559 } // namespace dart 561 } // namespace dart
560 562
561 #endif // VM_PARSER_H_ 563 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698