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

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

Issue 1504313003: Fix mismatched parenthesis error message (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add fixes from previous CL review feedback Created 5 years 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
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | 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 #include "vm/parser.h" 5 #include "vm/parser.h"
6 #include "vm/flags.h" 6 #include "vm/flags.h"
7 7
8 #ifndef DART_PRECOMPILED 8 #ifndef DART_PRECOMPILED
9 9
10 #include "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 opening_token = token_stack.RemoveLast(); 1689 opening_token = token_stack.RemoveLast();
1690 opening_pos = token_pos_stack.RemoveLast(); 1690 opening_pos = token_pos_stack.RemoveLast();
1691 is_match = opening_token == Token::kLPAREN; 1691 is_match = opening_token == Token::kLPAREN;
1692 break; 1692 break;
1693 case Token::kRBRACK: 1693 case Token::kRBRACK:
1694 opening_token = token_stack.RemoveLast(); 1694 opening_token = token_stack.RemoveLast();
1695 opening_pos = token_pos_stack.RemoveLast(); 1695 opening_pos = token_pos_stack.RemoveLast();
1696 is_match = opening_token == Token::kLBRACK; 1696 is_match = opening_token == Token::kLBRACK;
1697 break; 1697 break;
1698 case Token::kEOS: 1698 case Token::kEOS:
1699 opening_token = token_stack.RemoveLast();
1700 opening_pos = token_pos_stack.RemoveLast();
1699 unexpected_token_found = true; 1701 unexpected_token_found = true;
1700 break; 1702 break;
1701 default: 1703 default:
1702 // nothing. 1704 // nothing.
1703 break; 1705 break;
1704 } 1706 }
1705 } while (!token_stack.is_empty() && is_match && !unexpected_token_found); 1707 } while (!token_stack.is_empty() && is_match && !unexpected_token_found);
1706 if (!is_match) { 1708 if (!is_match) {
1707 const Error& error = Error::Handle( 1709 const Error& error = Error::Handle(
1708 LanguageError::NewFormatted(Error::Handle(), 1710 LanguageError::NewFormatted(Error::Handle(),
(...skipping 12741 matching lines...) Expand 10 before | Expand all | Expand 10 after
14450 const ArgumentListNode& function_args, 14452 const ArgumentListNode& function_args,
14451 const LocalVariable* temp_for_last_arg, 14453 const LocalVariable* temp_for_last_arg,
14452 bool is_super_invocation) { 14454 bool is_super_invocation) {
14453 UNREACHABLE(); 14455 UNREACHABLE();
14454 return NULL; 14456 return NULL;
14455 } 14457 }
14456 14458
14457 } // namespace dart 14459 } // namespace dart
14458 14460
14459 #endif // DART_PRECOMPILED 14461 #endif // DART_PRECOMPILED
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698