| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 void ConsumeRightAngleBracket(); | 209 void ConsumeRightAngleBracket(); |
| 210 void ExpectToken(Token::Kind token_expected); | 210 void ExpectToken(Token::Kind token_expected); |
| 211 void ExpectSemicolon(); | 211 void ExpectSemicolon(); |
| 212 void UnexpectedToken(); | 212 void UnexpectedToken(); |
| 213 String* ExpectClassIdentifier(const char* msg); | 213 String* ExpectClassIdentifier(const char* msg); |
| 214 String* ExpectIdentifier(const char* msg); | 214 String* ExpectIdentifier(const char* msg); |
| 215 bool IsLiteral(const char* literal); | 215 bool IsLiteral(const char* literal); |
| 216 | 216 |
| 217 void SkipIf(Token::Kind); | 217 void SkipIf(Token::Kind); |
| 218 void SkipBlock(); | 218 void SkipBlock(); |
| 219 void SkipMetadata(); |
| 219 void SkipToMatchingParenthesis(); | 220 void SkipToMatchingParenthesis(); |
| 220 void SkipTypeArguments(); | 221 void SkipTypeArguments(); |
| 221 void SkipType(bool allow_void); | 222 void SkipType(bool allow_void); |
| 222 void SkipInitializers(); | 223 void SkipInitializers(); |
| 223 void SkipExpr(); | 224 void SkipExpr(); |
| 224 void SkipNestedExpr(); | 225 void SkipNestedExpr(); |
| 225 void SkipConditionalExpr(); | 226 void SkipConditionalExpr(); |
| 226 void SkipBinaryExpr(); | 227 void SkipBinaryExpr(); |
| 227 void SkipUnaryExpr(); | 228 void SkipUnaryExpr(); |
| 228 void SkipPostfixExpr(); | 229 void SkipPostfixExpr(); |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 | 607 |
| 607 // Allocate temporary only once per function. | 608 // Allocate temporary only once per function. |
| 608 LocalVariable* expression_temp_; | 609 LocalVariable* expression_temp_; |
| 609 | 610 |
| 610 DISALLOW_COPY_AND_ASSIGN(Parser); | 611 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 611 }; | 612 }; |
| 612 | 613 |
| 613 } // namespace dart | 614 } // namespace dart |
| 614 | 615 |
| 615 #endif // VM_PARSER_H_ | 616 #endif // VM_PARSER_H_ |
| OLD | NEW |