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

Unified Diff: pkg/compiler/lib/src/typechecker.dart

Issue 1313893004: Move isPrivateName and isPublicName to Name. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/typedefs.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « pkg/compiler/lib/src/resolution/typedefs.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698