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 "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 void CheckToken(Token::Kind token_expected, const char* msg = NULL); | 318 void CheckToken(Token::Kind token_expected, const char* msg = NULL); |
319 void ExpectToken(Token::Kind token_expected); | 319 void ExpectToken(Token::Kind token_expected); |
320 void ExpectSemicolon(); | 320 void ExpectSemicolon(); |
321 void UnexpectedToken(); | 321 void UnexpectedToken(); |
322 String* ExpectUserDefinedTypeIdentifier(const char* msg); | 322 String* ExpectUserDefinedTypeIdentifier(const char* msg); |
323 String* ExpectIdentifier(const char* msg); | 323 String* ExpectIdentifier(const char* msg); |
324 bool IsAwaitKeyword(); | 324 bool IsAwaitKeyword(); |
325 bool IsYieldKeyword(); | 325 bool IsYieldKeyword(); |
326 | 326 |
327 void SkipIf(Token::Kind); | 327 void SkipIf(Token::Kind); |
| 328 void SkipToMatching(); |
| 329 void SkipToMatchingParenthesis(); |
328 void SkipBlock(); | 330 void SkipBlock(); |
329 intptr_t SkipMetadata(); | 331 intptr_t SkipMetadata(); |
330 void SkipToMatchingParenthesis(); | |
331 void SkipTypeArguments(); | 332 void SkipTypeArguments(); |
332 void SkipType(bool allow_void); | 333 void SkipType(bool allow_void); |
333 void SkipInitializers(); | 334 void SkipInitializers(); |
334 void SkipExpr(); | 335 void SkipExpr(); |
335 void SkipNestedExpr(); | 336 void SkipNestedExpr(); |
336 void SkipConditionalExpr(); | 337 void SkipConditionalExpr(); |
337 void SkipBinaryExpr(); | 338 void SkipBinaryExpr(); |
338 void SkipUnaryExpr(); | 339 void SkipUnaryExpr(); |
339 void SkipPostfixExpr(); | 340 void SkipPostfixExpr(); |
340 void SkipSelectors(); | 341 void SkipSelectors(); |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 862 |
862 // Indentation of parser trace. | 863 // Indentation of parser trace. |
863 intptr_t trace_indent_; | 864 intptr_t trace_indent_; |
864 | 865 |
865 DISALLOW_COPY_AND_ASSIGN(Parser); | 866 DISALLOW_COPY_AND_ASSIGN(Parser); |
866 }; | 867 }; |
867 | 868 |
868 } // namespace dart | 869 } // namespace dart |
869 | 870 |
870 #endif // VM_PARSER_H_ | 871 #endif // VM_PARSER_H_ |
OLD | NEW |