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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |