| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 const char* message_header, | 294 const char* message_header, |
| 295 const char* format, | 295 const char* format, |
| 296 va_list args); | 296 va_list args); |
| 297 | 297 |
| 298 // Reports error/warning message at location of current token. | 298 // Reports error/warning message at location of current token. |
| 299 void ErrorMsg(const char* msg, ...) PRINTF_ATTRIBUTE(2, 3); | 299 void ErrorMsg(const char* msg, ...) PRINTF_ATTRIBUTE(2, 3); |
| 300 void Warning(const char* msg, ...) PRINTF_ATTRIBUTE(2, 3); | 300 void Warning(const char* msg, ...) PRINTF_ATTRIBUTE(2, 3); |
| 301 void Unimplemented(const char* msg); | 301 void Unimplemented(const char* msg); |
| 302 | 302 |
| 303 // Reports error message at given location. | 303 // Reports error message at given location. |
| 304 void ErrorMsg(intptr_t token_pos, const char* msg, ...) | 304 void ErrorMsg(intptr_t token_pos, const char* msg, ...) const |
| 305 PRINTF_ATTRIBUTE(3, 4); | 305 PRINTF_ATTRIBUTE(3, 4); |
| 306 void Warning(intptr_t token_pos, const char* msg, ...) | 306 void Warning(intptr_t token_pos, const char* msg, ...) |
| 307 PRINTF_ATTRIBUTE(3, 4); | 307 PRINTF_ATTRIBUTE(3, 4); |
| 308 | 308 |
| 309 // Reports an already formatted error message. | 309 // Reports an already formatted error message. |
| 310 void ErrorMsg(const Error& error); | 310 void ErrorMsg(const Error& error); |
| 311 | 311 |
| 312 // Concatenates two error messages, the previous and the current one. | 312 // Concatenates two error messages, the previous and the current one. |
| 313 void AppendErrorMsg( | 313 void AppendErrorMsg( |
| 314 const Error& prev_error, intptr_t token_pos, const char* format, ...) | 314 const Error& prev_error, intptr_t token_pos, const char* format, ...) |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 // code at all points in the try block where an exit from the block is | 674 // code at all points in the try block where an exit from the block is |
| 675 // done using 'return', 'break' or 'continue' statements. | 675 // done using 'return', 'break' or 'continue' statements. |
| 676 TryBlocks* try_blocks_list_; | 676 TryBlocks* try_blocks_list_; |
| 677 | 677 |
| 678 DISALLOW_COPY_AND_ASSIGN(Parser); | 678 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 679 }; | 679 }; |
| 680 | 680 |
| 681 } // namespace dart | 681 } // namespace dart |
| 682 | 682 |
| 683 #endif // VM_PARSER_H_ | 683 #endif // VM_PARSER_H_ |
| OLD | NEW |