| 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 "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 void SkipSelectors(); | 280 void SkipSelectors(); |
| 281 void SkipPrimary(); | 281 void SkipPrimary(); |
| 282 void SkipCompoundLiteral(); | 282 void SkipCompoundLiteral(); |
| 283 void SkipNewOperator(); | 283 void SkipNewOperator(); |
| 284 void SkipActualParameters(); | 284 void SkipActualParameters(); |
| 285 void SkipMapLiteral(); | 285 void SkipMapLiteral(); |
| 286 void SkipListLiteral(); | 286 void SkipListLiteral(); |
| 287 void SkipFunctionLiteral(); | 287 void SkipFunctionLiteral(); |
| 288 void SkipStringLiteral(); | 288 void SkipStringLiteral(); |
| 289 void SkipQualIdent(); | 289 void SkipQualIdent(); |
| 290 void SkipFunctionPreamble(); |
| 290 | 291 |
| 291 void CheckConstructorCallTypeArguments( | 292 void CheckConstructorCallTypeArguments( |
| 292 intptr_t pos, | 293 intptr_t pos, |
| 293 Function& constructor, | 294 Function& constructor, |
| 294 const AbstractTypeArguments& type_arguments); | 295 const AbstractTypeArguments& type_arguments); |
| 295 | 296 |
| 296 // A null script means no source and a negative token_pos means no position. | 297 // A null script means no source and a negative token_pos means no position. |
| 297 static RawString* FormatMessage(const Script& script, | 298 static RawString* FormatMessage(const Script& script, |
| 298 intptr_t token_pos, | 299 intptr_t token_pos, |
| 299 const char* message_header, | 300 const char* message_header, |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 // Each try in this function gets its own try index. | 692 // Each try in this function gets its own try index. |
| 692 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } | 693 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } |
| 693 intptr_t last_used_try_index_; | 694 intptr_t last_used_try_index_; |
| 694 | 695 |
| 695 DISALLOW_COPY_AND_ASSIGN(Parser); | 696 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 696 }; | 697 }; |
| 697 | 698 |
| 698 } // namespace dart | 699 } // namespace dart |
| 699 | 700 |
| 700 #endif // VM_PARSER_H_ | 701 #endif // VM_PARSER_H_ |
| OLD | NEW |