Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: vm/parser.h

Issue 9334007: Fix http://dartbug.com/1133: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | vm/parser.cc » ('j') | vm/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void SkipStringLiteral(); 166 void SkipStringLiteral();
167 void SkipQualIdent(); 167 void SkipQualIdent();
168 168
169 void CheckConstructorCallTypeArguments( 169 void CheckConstructorCallTypeArguments(
170 intptr_t pos, 170 intptr_t pos,
171 Function& constructor, 171 Function& constructor,
172 const AbstractTypeArguments& type_arguments); 172 const AbstractTypeArguments& type_arguments);
173 173
174 // Format an error or warning message into the message_buffer. 174 // Format an error or warning message into the message_buffer.
175 // A null script means no source and a negative token_index means no position. 175 // A null script means no source and a negative token_index means no position.
176 static void FormatMessage(const Script& script, 176 static RawString* FormatMessage(const Script& script,
177 intptr_t token_index, 177 intptr_t token_index,
178 const char* message_header, 178 const char* message_header,
179 char* message_buffer, 179 const char* format,
180 intptr_t message_buffer_size, 180 va_list args);
181 const char* format,
182 va_list args);
183 181
184 // Reports error message at location of current token. 182 // Reports error message at location of current token.
185 void ErrorMsg(const char* msg, ...); 183 void ErrorMsg(const char* msg, ...);
186 void ErrorMsg(intptr_t token_index, const char* msg, ...); 184 void ErrorMsg(intptr_t token_index, const char* msg, ...);
187 void Warning(const char* msg, ...); 185 void Warning(const char* msg, ...);
188 void Warning(intptr_t token_index, const char* msg, ...); 186 void Warning(intptr_t token_index, const char* msg, ...);
189 void Unimplemented(const char* msg); 187 void Unimplemented(const char* msg);
190 188
191 const Instance& EvaluateConstExpr(AstNode* expr); 189 const Instance& EvaluateConstExpr(AstNode* expr);
192 void RunStaticFieldInitializer(const Field& field); 190 void RunStaticFieldInitializer(const Field& field);
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 // code at all points in the try block where an exit from the block is 453 // code at all points in the try block where an exit from the block is
456 // done using 'return', 'break' or 'continue' statements. 454 // done using 'return', 'break' or 'continue' statements.
457 TryBlocks* try_blocks_list_; 455 TryBlocks* try_blocks_list_;
458 456
459 DISALLOW_COPY_AND_ASSIGN(Parser); 457 DISALLOW_COPY_AND_ASSIGN(Parser);
460 }; 458 };
461 459
462 } // namespace dart 460 } // namespace dart
463 461
464 #endif // VM_PARSER_H_ 462 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | vm/parser.cc » ('j') | vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698