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

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

Issue 2743633003: [fasta] Add and correct more offsets (Closed)
Patch Set: Fix long line Created 3 years, 9 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 fasta.parser.parser; 5 library fasta.parser.parser;
6 6
7 import '../scanner.dart' show ErrorToken; 7 import '../scanner.dart' show ErrorToken;
8 8
9 import '../scanner/recover.dart' show closeBraceFor, skipToEof; 9 import '../scanner/recover.dart' show closeBraceFor, skipToEof;
10 10
(...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after
3005 token = token.next; 3005 token = token.next;
3006 token = parseExpression(token); 3006 token = parseExpression(token);
3007 } else { 3007 } else {
3008 break; 3008 break;
3009 } 3009 }
3010 ++interpolationCount; 3010 ++interpolationCount;
3011 // Parsing the infix/suffix, for instance y and z' of 'x${id}y${id}z' 3011 // Parsing the infix/suffix, for instance y and z' of 'x${id}y${id}z'
3012 token = parseStringPart(token); 3012 token = parseStringPart(token);
3013 kind = token.kind; 3013 kind = token.kind;
3014 } 3014 }
3015 listener.endLiteralString(interpolationCount); 3015 listener.endLiteralString(interpolationCount, token);
3016 return token; 3016 return token;
3017 } 3017 }
3018 3018
3019 Token parseLiteralBool(Token token) { 3019 Token parseLiteralBool(Token token) {
3020 listener.handleLiteralBool(token); 3020 listener.handleLiteralBool(token);
3021 return token.next; 3021 return token.next;
3022 } 3022 }
3023 3023
3024 Token parseLiteralNull(Token token) { 3024 Token parseLiteralNull(Token token) {
3025 listener.handleLiteralNull(token); 3025 listener.handleLiteralNull(token);
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
3578 break; 3578 break;
3579 } 3579 }
3580 if (isRecoverable) { 3580 if (isRecoverable) {
3581 listener.handleRecoverableError(token, kind, arguments); 3581 listener.handleRecoverableError(token, kind, arguments);
3582 return null; 3582 return null;
3583 } else { 3583 } else {
3584 return listener.handleUnrecoverableError(token, kind, arguments); 3584 return listener.handleUnrecoverableError(token, kind, arguments);
3585 } 3585 }
3586 } 3586 }
3587 } 3587 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698