Index: pkg/compiler/lib/src/typechecker.dart |
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart |
index b72eab124dacfcab5c1c9cb37cdf6541a74e108b..74b9659d39e1bf3c60dc4a426305e3ca51a394d2 100644 |
--- a/pkg/compiler/lib/src/typechecker.dart |
+++ b/pkg/compiler/lib/src/typechecker.dart |
@@ -7,8 +7,7 @@ library dart2js.typechecker; |
import 'common/tasks.dart' show |
CompilerTask; |
import 'compiler.dart' show |
- Compiler, |
- isPrivateName; |
+ Compiler; |
import 'constants/expressions.dart'; |
import 'constants/values.dart'; |
import 'core_types.dart'; |
@@ -721,7 +720,7 @@ class TypeCheckerVisitor extends Visitor<DartType> { |
void checkPrivateAccess(Node node, Element element, String name) { |
if (name != null && |
- isPrivateName(name) && |
+ Name.isPrivateName(name) && |
element.library != currentLibrary) { |
reportTypeWarning( |
node, |