Index: pkg/compiler/lib/src/resolution/constructors.dart |
diff --git a/pkg/compiler/lib/src/resolution/constructors.dart b/pkg/compiler/lib/src/resolution/constructors.dart |
index 67e9461470d5be374c0d6fe1698ae81993e614b1..cff366c5327ee36d067c8a8e54f20122f607e92c 100644 |
--- a/pkg/compiler/lib/src/resolution/constructors.dart |
+++ b/pkg/compiler/lib/src/resolution/constructors.dart |
@@ -4,8 +4,7 @@ |
library dart2js.resolution.constructors; |
import '../compiler.dart' show |
- Compiler, |
- isPrivateName; |
+ Compiler; |
import '../constants/constructors.dart' show |
GenerativeConstantConstructor, |
RedirectingGenerativeConstantConstructor; |
@@ -459,7 +458,7 @@ class ConstructorResolver extends CommonResolverVisitor<Element> { |
cls.ensureResolved(compiler); |
Element result = cls.lookupConstructor(constructorName); |
// TODO(johnniwinther): Use [Name] for lookup. |
- if (isPrivateName(constructorName) && |
+ if (Name.isPrivateName(constructorName) && |
resolver.enclosingElement.library != cls.library) { |
result = null; |
} |