Index: pkg/compiler/lib/src/resolution/resolution.dart |
diff --git a/pkg/compiler/lib/src/resolution/resolution.dart b/pkg/compiler/lib/src/resolution/resolution.dart |
index 3209c07cbbcdbff3f0ad97d4ffc656bf73075bf2..d10e886e0d8436a20874319b650d0c16002081e4 100644 |
--- a/pkg/compiler/lib/src/resolution/resolution.dart |
+++ b/pkg/compiler/lib/src/resolution/resolution.dart |
@@ -6,6 +6,8 @@ library dart2js.resolution; |
import 'dart:collection' show Queue; |
+import '../common/names.dart' show |
+ Identifiers; |
import '../common/tasks.dart' show |
CompilerTask, |
DeferredAction; |
@@ -249,7 +251,7 @@ class ResolverTask extends CompilerTask { |
// TODO(9631): support noSuchMethod on native classes. |
if (Elements.isInstanceMethod(element) && |
- element.name == Compiler.NO_SUCH_METHOD && |
+ element.name == Identifiers.noSuchMethod_ && |
_isNativeClassOrExtendsNativeClass(enclosingClass)) { |
error(tree, MessageKind.NO_SUCH_METHOD_IN_NATIVE); |
} |
@@ -616,7 +618,7 @@ class ResolverTask extends CompilerTask { |
} |
}); |
- computeClassMember(element, Compiler.CALL_OPERATOR_NAME); |
+ computeClassMember(element, Identifiers.call); |
} |
void computeClassMembers(ClassElement element) { |