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

Side by Side Diff: pkg/compiler/lib/src/resolution/members.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/parser/parser.dart ('k') | no next file » | 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.resolution.members; 5 library dart2js.resolution.members;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show 8 import '../common/names.dart' show
9 Selectors; 9 Selectors;
10 import '../common/resolution.dart' show 10 import '../common/resolution.dart' show
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 if (node.isIndex) { 658 if (node.isIndex) {
659 return isSet ? new Selector.indexSet() : new Selector.index(); 659 return isSet ? new Selector.indexSet() : new Selector.index();
660 } 660 }
661 661
662 if (node.isOperator) { 662 if (node.isOperator) {
663 String source = node.selector.asOperator().source; 663 String source = node.selector.asOperator().source;
664 String string = source; 664 String string = source;
665 if (identical(string, '!') || 665 if (identical(string, '!') ||
666 identical(string, '&&') || identical(string, '||') || 666 identical(string, '&&') || identical(string, '||') ||
667 identical(string, 'is') || identical(string, 'as') || 667 identical(string, 'is') || identical(string, 'as') ||
668 identical(string, '?') || identical(string, '??') || 668 identical(string, '?') || identical(string, '??')) {
669 identical(string, '>>>')) {
670 return null; 669 return null;
671 } 670 }
672 String op = source; 671 String op = source;
673 if (!isUserDefinableOperator(source)) { 672 if (!isUserDefinableOperator(source)) {
674 op = Elements.mapToUserOperatorOrNull(source); 673 op = Elements.mapToUserOperatorOrNull(source);
675 } 674 }
676 if (op == null) { 675 if (op == null) {
677 // Unsupported operator. An error has been reported during parsing. 676 // Unsupported operator. An error has been reported during parsing.
678 return new Selector.call( 677 return new Selector.call(
679 new Name(source, library), 678 new Name(source, library),
(...skipping 4184 matching lines...) Expand 10 before | Expand all | Expand 10 after
4864 } 4863 }
4865 return const NoneResult(); 4864 return const NoneResult();
4866 } 4865 }
4867 } 4866 }
4868 4867
4869 /// Looks up [name] in [scope] and unwraps the result. 4868 /// Looks up [name] in [scope] and unwraps the result.
4870 Element lookupInScope(DiagnosticReporter reporter, Node node, 4869 Element lookupInScope(DiagnosticReporter reporter, Node node,
4871 Scope scope, String name) { 4870 Scope scope, String name) {
4872 return Elements.unwrap(scope.lookup(name), reporter, node); 4871 return Elements.unwrap(scope.lookup(name), reporter, node);
4873 } 4872 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/parser/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698