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

Unified Diff: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart

Issue 1299413002: Move common identifiers, names and selectors to a separate library. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. 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
Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
index 51c39f58df7681c92c6fb1f14fd291858a2b4775..900bd4796113c2e5f59a81b87b6b6ee86f0134fe 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -550,8 +550,8 @@ class ParameterTypeInformation extends ElementTypeInformation {
return safeType(inferrer);
}
if (function.isInstanceMember &&
- (function.name == Compiler.NO_SUCH_METHOD ||
- (function.name == Compiler.CALL_OPERATOR_NAME &&
+ (function.name == Identifiers.noSuchMethod_ ||
+ (function.name == Identifiers.call &&
disableInferenceForClosures))) {
// Do not infer types for parameters of [noSuchMethod] and
// [call] instance methods.
@@ -767,7 +767,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
return targets.any((Element e) {
return e is FunctionElement &&
e.isInstanceMember &&
- e.name == Compiler.NO_SUCH_METHOD &&
+ e.name == Identifiers.noSuchMethod_ &&
inferrer.backend.isComplexNoSuchMethod(e);
});
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698