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

Side by Side Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 2791993002: Fix dart2js warnings and add test to ensure it stays clean. (Closed)
Patch Set: Remove unused method. Created 3 years, 8 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.resolution.members; 5 library dart2js.resolution.members;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Selectors; 8 import '../common/names.dart' show Selectors;
9 import '../common/resolution.dart' show Resolution; 9 import '../common/resolution.dart' show Resolution;
10 import '../compile_time_constants.dart'; 10 import '../compile_time_constants.dart';
(...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 1636
1637 // TODO(23998): Remove these when all information goes through 1637 // TODO(23998): Remove these when all information goes through
1638 // the [SendStructure]. 1638 // the [SendStructure].
1639 registry.useElement(node, target); 1639 registry.useElement(node, target);
1640 registry.setSelector(node, selector); 1640 registry.setSelector(node, selector);
1641 return const NoneResult(); 1641 return const NoneResult();
1642 } 1642 }
1643 1643
1644 /// Handle a [Send] whose selector is an [Operator], like `a && b`, `a is T`, 1644 /// Handle a [Send] whose selector is an [Operator], like `a && b`, `a is T`,
1645 /// `a + b`, and `~a`. 1645 /// `a + b`, and `~a`.
1646 // ignore: MISSING_RETURN
1646 ResolutionResult handleOperatorSend(Send node) { 1647 ResolutionResult handleOperatorSend(Send node) {
1647 String operatorText = node.selector.asOperator().source; 1648 String operatorText = node.selector.asOperator().source;
1648 if (operatorText == 'is') { 1649 if (operatorText == 'is') {
1649 return handleIs(node); 1650 return handleIs(node);
1650 } else if (operatorText == 'as') { 1651 } else if (operatorText == 'as') {
1651 return handleAs(node); 1652 return handleAs(node);
1652 } else if (node.arguments.isEmpty) { 1653 } else if (node.arguments.isEmpty) {
1653 UnaryOperator operator = UnaryOperator.parse(operatorText); 1654 UnaryOperator operator = UnaryOperator.parse(operatorText);
1654 if (operator == null) { 1655 if (operator == null) {
1655 return handleUnresolvedUnary(node, operatorText); 1656 return handleUnresolvedUnary(node, operatorText);
(...skipping 3140 matching lines...) Expand 10 before | Expand all | Expand 10 after
4796 } 4797 }
4797 return const NoneResult(); 4798 return const NoneResult();
4798 } 4799 }
4799 } 4800 }
4800 4801
4801 /// Looks up [name] in [scope] and unwraps the result. 4802 /// Looks up [name] in [scope] and unwraps the result.
4802 Element lookupInScope( 4803 Element lookupInScope(
4803 DiagnosticReporter reporter, Node node, Scope scope, String name) { 4804 DiagnosticReporter reporter, Node node, Scope scope, String name) {
4804 return Elements.unwrap(scope.lookup(name), reporter, node); 4805 return Elements.unwrap(scope.lookup(name), reporter, node);
4805 } 4806 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698