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

Side by Side Diff: pkg/compiler/lib/src/parser/listener.dart

Issue 2385643003: Fixes in dart2js parser to be able to parse files without the diet-parser (Closed)
Patch Set: Created 4 years, 2 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) 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 dart2js.parser.listener; 5 library dart2js.parser.listener;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../diagnostics/messages.dart' show MessageTemplate; 8 import '../diagnostics/messages.dart' show MessageTemplate;
9 import '../tokens/precedence_constants.dart' as Precedence 9 import '../tokens/precedence_constants.dart' as Precedence
10 show EOF_INFO, IDENTIFIER_INFO; 10 show EOF_INFO, IDENTIFIER_INFO;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void endLiteralMapEntry(Token colon, Token endToken) {} 205 void endLiteralMapEntry(Token colon, Token endToken) {}
206 206
207 void beginLiteralString(Token token) {} 207 void beginLiteralString(Token token) {}
208 208
209 void endLiteralString(int interpolationCount) {} 209 void endLiteralString(int interpolationCount) {}
210 210
211 void handleStringJuxtaposition(int literalCount) {} 211 void handleStringJuxtaposition(int literalCount) {}
212 212
213 void beginMember(Token token) {} 213 void beginMember(Token token) {}
214 214
215 void endMember() {}
216
215 void endMethod(Token getOrSet, Token beginToken, Token endToken) {} 217 void endMethod(Token getOrSet, Token beginToken, Token endToken) {}
216 218
217 void beginMetadataStar(Token token) {} 219 void beginMetadataStar(Token token) {}
218 220
219 void endMetadataStar(int count, bool forParameter) {} 221 void endMetadataStar(int count, bool forParameter) {}
220 222
221 void beginMetadata(Token token) {} 223 void beginMetadata(Token token) {}
222 224
223 void endMetadata(Token beginToken, Token periodBeforeName, Token endToken) {} 225 void endMetadata(Token beginToken, Token periodBeforeName, Token endToken) {}
224 226
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 '<': '>', 628 '<': '>',
627 r'${': '}', 629 r'${': '}',
628 }[openBrace]; 630 }[openBrace];
629 } 631 }
630 632
631 class ParserError { 633 class ParserError {
632 final String reason; 634 final String reason;
633 ParserError(this.reason); 635 ParserError(this.reason);
634 toString() => reason; 636 toString() => reason;
635 } 637 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698