| OLD | NEW |
| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 RawAbstractType* ParseFinalVarOrType(TypeResolution type_resolution); | 322 RawAbstractType* ParseFinalVarOrType(TypeResolution type_resolution); |
| 323 AstNode* ParseVariableDeclaration(const AbstractType& type, bool is_const); | 323 AstNode* ParseVariableDeclaration(const AbstractType& type, bool is_const); |
| 324 AstNode* ParseVariableDeclarationList(); | 324 AstNode* ParseVariableDeclarationList(); |
| 325 AstNode* ParseFunctionStatement(bool is_literal); | 325 AstNode* ParseFunctionStatement(bool is_literal); |
| 326 AstNode* ParseStatement(); | 326 AstNode* ParseStatement(); |
| 327 SequenceNode* ParseNestedStatement(bool parsing_loop_body, | 327 SequenceNode* ParseNestedStatement(bool parsing_loop_body, |
| 328 SourceLabel* label); | 328 SourceLabel* label); |
| 329 void ParseStatementSequence(); | 329 void ParseStatementSequence(); |
| 330 bool IsIdentifier(); | 330 bool IsIdentifier(); |
| 331 bool IsFunctionTypeAliasName(); | 331 bool IsFunctionTypeAliasName(); |
| 332 bool IsTypeParameter(); | 332 bool TryParseTypeParameter(); |
| 333 bool IsOptionalType(); | 333 bool TryParseOptionalType(); |
| 334 bool IsReturnType(); | 334 bool TryParseReturnType(); |
| 335 bool IsVariableDeclaration(); | 335 bool IsVariableDeclaration(); |
| 336 bool IsFunctionDeclaration(); | 336 bool IsFunctionDeclaration(); |
| 337 bool IsFunctionLiteral(); | 337 bool IsFunctionLiteral(); |
| 338 bool IsForInStatement(); | 338 bool IsForInStatement(); |
| 339 bool IsTopLevelAccessor(); | 339 bool IsTopLevelAccessor(); |
| 340 bool IsTopLevelFunction(); | 340 bool IsTopLevelFunction(); |
| 341 | 341 |
| 342 AstNode* ParseBinaryExpr(int min_preced); | 342 AstNode* ParseBinaryExpr(int min_preced); |
| 343 LiteralNode* ParseConstExpr(); | 343 LiteralNode* ParseConstExpr(); |
| 344 static const bool kRequireConst = true; | 344 static const bool kRequireConst = true; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // code at all points in the try block where an exit from the block is | 454 // code at all points in the try block where an exit from the block is |
| 455 // done using 'return', 'break' or 'continue' statements. | 455 // done using 'return', 'break' or 'continue' statements. |
| 456 TryBlocks* try_blocks_list_; | 456 TryBlocks* try_blocks_list_; |
| 457 | 457 |
| 458 DISALLOW_COPY_AND_ASSIGN(Parser); | 458 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 459 }; | 459 }; |
| 460 | 460 |
| 461 } // namespace dart | 461 } // namespace dart |
| 462 | 462 |
| 463 #endif // VM_PARSER_H_ | 463 #endif // VM_PARSER_H_ |
| OLD | NEW |