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

Side by Side Diff: pkg/front_end/lib/src/fasta/scanner/recover.dart

Issue 2957593002: Spelling fixes e to i. (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 licenset hat can be found in the LICENSE file. 3 // BSD-style licenset hat can be found in the LICENSE file.
4 4
5 library fasta.scanner.recover; 5 library fasta.scanner.recover;
6 6
7 import '../../scanner/token.dart' show TokenType; 7 import '../../scanner/token.dart' show TokenType;
8 8
9 import '../fasta_codes.dart' 9 import '../fasta_codes.dart'
10 show 10 show
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return errorTail.next; 145 return errorTail.next;
146 } 146 }
147 147
148 recoverComment() { 148 recoverComment() {
149 // TODO(ahe): Improve this. 149 // TODO(ahe): Improve this.
150 return skipToEof(errorTail); 150 return skipToEof(errorTail);
151 } 151 }
152 152
153 recoverUnmatched() { 153 recoverUnmatched() {
154 // TODO(ahe): Try to use top-level keywords (such as `class`, `typedef`, 154 // TODO(ahe): Try to use top-level keywords (such as `class`, `typedef`,
155 // and `enum`) and identation to recover. 155 // and `enum`) and indentation to recover.
156 return errorTail.next; 156 return errorTail.next;
157 } 157 }
158 158
159 for (Token current = tokens; !current.isEof; current = current.next) { 159 for (Token current = tokens; !current.isEof; current = current.next) {
160 while (current is ErrorToken) { 160 while (current is ErrorToken) {
161 ErrorToken first = current; 161 ErrorToken first = current;
162 Token next = current; 162 Token next = current;
163 do { 163 do {
164 current = next; 164 current = next;
165 if (errorTail == null) { 165 if (errorTail == null) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 String closeBraceFor(String openBrace) { 239 String closeBraceFor(String openBrace) {
240 return const { 240 return const {
241 '(': ')', 241 '(': ')',
242 '[': ']', 242 '[': ']',
243 '{': '}', 243 '{': '}',
244 '<': '>', 244 '<': '>',
245 r'${': '}', 245 r'${': '}',
246 }[openBrace]; 246 }[openBrace];
247 } 247 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/base/library_info.dart ('k') | pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698