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

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

Issue 1719193002: Remove triple-shift from dart2js. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/resolution/members.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 dart2js.parser; 5 library dart2js.parser;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../tokens/keyword.dart' show 8 import '../tokens/keyword.dart' show
9 Keyword; 9 Keyword;
10 import '../tokens/precedence.dart' show 10 import '../tokens/precedence.dart' show
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 int count = 0; 773 int count = 0;
774 do { 774 do {
775 token = stuffParser(token.next); 775 token = stuffParser(token.next);
776 ++count; 776 ++count;
777 } while (optional(',', token)); 777 } while (optional(',', token));
778 Token next = token.next; 778 Token next = token.next;
779 if (identical(token.stringValue, '>>')) { 779 if (identical(token.stringValue, '>>')) {
780 token = new SymbolToken(GT_INFO, token.charOffset); 780 token = new SymbolToken(GT_INFO, token.charOffset);
781 token.next = new SymbolToken(GT_INFO, token.charOffset + 1); 781 token.next = new SymbolToken(GT_INFO, token.charOffset + 1);
782 token.next.next = next; 782 token.next.next = next;
783 } else if (identical(token.stringValue, '>>>')) {
784 token = new SymbolToken(GT_INFO, token.charOffset);
785 token.next = new SymbolToken(GT_GT_INFO, token.charOffset + 1);
786 token.next.next = next;
787 } 783 }
788 endStuff(count, begin, token); 784 endStuff(count, begin, token);
789 return expect('>', token); 785 return expect('>', token);
790 } 786 }
791 handleNoStuff(token); 787 handleNoStuff(token);
792 return token; 788 return token;
793 } 789 }
794 790
795 Token parseTopLevelMember(Token token) { 791 Token parseTopLevelMember(Token token) {
796 Token start = token; 792 Token start = token;
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
2782 } 2778 }
2783 listener.handleContinueStatement(hasTarget, continueKeyword, token); 2779 listener.handleContinueStatement(hasTarget, continueKeyword, token);
2784 return expectSemicolon(token); 2780 return expectSemicolon(token);
2785 } 2781 }
2786 2782
2787 Token parseEmptyStatement(Token token) { 2783 Token parseEmptyStatement(Token token) {
2788 listener.handleEmptyStatement(token); 2784 listener.handleEmptyStatement(token);
2789 return expectSemicolon(token); 2785 return expectSemicolon(token);
2790 } 2786 }
2791 } 2787 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698