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

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

Issue 2927093002: Support user class in compile_from_dill_test (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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/js_backend/backend.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0046aa7818292a891578f20289a0d3946af64470..b85aac59fe6d9446fdffd6cd72a8783fb15cbc11 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -1351,7 +1351,7 @@ class Namer {
}
String suffixForGetInterceptor(Iterable<ClassEntity> classes) {
- String abbreviate(ClassElement cls) {
+ String abbreviate(ClassEntity cls) {
if (cls == _commonElements.objectClass) return "o";
if (cls == _commonElements.jsStringClass) return "s";
if (cls == _commonElements.jsArrayClass) return "a";
@@ -1380,7 +1380,7 @@ class Namer {
/// Property name used for `getInterceptor` or one of its specializations.
jsAst.Name nameForGetInterceptor(Iterable<ClassEntity> classes) {
- MethodElement getInterceptor = _commonElements.getInterceptorMethod;
+ FunctionEntity getInterceptor = _commonElements.getInterceptorMethod;
if (classes.contains(_commonElements.jsInterceptorClass)) {
// If the base Interceptor class is in the set of intercepted classes, we
// need to go through the generic getInterceptorMethod, since any subclass
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698