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

Side by Side Diff: pkg/dart_scanner/lib/src/abstract_scanner.dart

Issue 2627093007: Update scanner so tests pass. (Closed)
Patch Set: Rebased on CL 2629543008. Created 3 years, 11 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
« no previous file with comments | « pkg/dart_scanner/lib/scanner.dart ('k') | pkg/dart_scanner/lib/src/array_based_scanner.dart » ('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 library scanner.abstract_scanner; 5 library dart_scanner.abstract_scanner;
6 6
7 import '../scanner.dart' show 7 import '../scanner.dart' show
8 Scanner; 8 Scanner;
9 9
10 import 'keyword.dart' show 10 import 'keyword.dart' show
11 KeywordState, 11 KeywordState,
12 Keyword; 12 Keyword;
13 13
14 import 'precedence.dart'; 14 import 'precedence.dart';
15 15
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 1165
1166 PrecedenceInfo closeBraceInfoFor(BeginGroupToken begin) { 1166 PrecedenceInfo closeBraceInfoFor(BeginGroupToken begin) {
1167 return const { 1167 return const {
1168 '(': CLOSE_PAREN_INFO, 1168 '(': CLOSE_PAREN_INFO,
1169 '[': CLOSE_SQUARE_BRACKET_INFO, 1169 '[': CLOSE_SQUARE_BRACKET_INFO,
1170 '{': CLOSE_CURLY_BRACKET_INFO, 1170 '{': CLOSE_CURLY_BRACKET_INFO,
1171 '<': GT_INFO, 1171 '<': GT_INFO,
1172 r'${': CLOSE_CURLY_BRACKET_INFO, 1172 r'${': CLOSE_CURLY_BRACKET_INFO,
1173 }[begin.value]; 1173 }[begin.value];
1174 } 1174 }
OLDNEW
« no previous file with comments | « pkg/dart_scanner/lib/scanner.dart ('k') | pkg/dart_scanner/lib/src/array_based_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698