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

Side by Side Diff: runtime/vm/parser.h

Issue 1054893003: Better error messages when matching parens and braces (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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 | runtime/vm/parser.cc » ('j') | no next file with comments »
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 "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698