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

Unified Diff: pkg/compiler/lib/src/js_backend/namer.dart

Issue 2688413003: Extract BackendUsage, MirrorsData, and CheckedModeHelpers from Backend. (Closed)
Patch Set: Cleanup Created 3 years, 10 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/js_backend/namer.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
index bc9a88045acc18dc73298010dbec79f6d3138afb..e6d28dd670189c0888b4a7341364669c791c29b0 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -13,10 +13,11 @@ import '../common.dart';
import '../common/names.dart' show Identifiers, Selectors;
import '../constants/values.dart';
import '../core_types.dart' show CommonElements;
-import '../elements/resolution_types.dart';
import '../diagnostics/invariant.dart' show DEBUG_MODE;
import '../elements/elements.dart';
import '../elements/entities.dart';
+import '../elements/resolution_types.dart';
+import '../elements/types.dart';
import '../js/js.dart' as jsAst;
import '../js/js.dart' show js;
import '../tree/tree.dart';
@@ -1587,7 +1588,7 @@ class Namer {
});
}
- jsAst.Name operatorIsType(ResolutionDartType type) {
+ jsAst.Name operatorIsType(DartType type) {
if (type.isFunctionType) {
// TODO(erikcorry): Reduce from $isx to ix when we are minifying.
return new CompoundName([
@@ -1596,7 +1597,8 @@ class Namer {
getFunctionTypeName(type)
]);
}
- return operatorIs(type.element);
+ InterfaceType interfaceType = type;
+ return operatorIs(interfaceType.element);
}
jsAst.Name operatorIs(ClassElement element) {
@@ -1614,7 +1616,7 @@ class Namer {
return name;
}
- jsAst.Name substitutionName(Element element) {
+ jsAst.Name substitutionName(ClassElement element) {
return new CompoundName(
[new StringBackedName(operatorAsPrefix), runtimeTypeName(element)]);
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/mirrors_data.dart ('k') | pkg/compiler/lib/src/js_backend/type_variable_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698