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

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

Issue 2898983005: Add ClosureClassMaps super interface for ClosureTask (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 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/closure.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/interceptor_data.dart
diff --git a/pkg/compiler/lib/src/js_backend/interceptor_data.dart b/pkg/compiler/lib/src/js_backend/interceptor_data.dart
index f22802f750c9796ac74acf3004de470974dc8cde..f6d8eff280550147f5fb10d54a16c153be437438 100644
--- a/pkg/compiler/lib/src/js_backend/interceptor_data.dart
+++ b/pkg/compiler/lib/src/js_backend/interceptor_data.dart
@@ -6,7 +6,7 @@ library js_backend.interceptor_data;
import '../common/names.dart' show Identifiers;
import '../common_elements.dart' show CommonElements, ElementEnvironment;
-import '../elements/elements.dart' show MemberElement;
+import '../elements/elements.dart' show ConstructorBodyElement;
import '../elements/entities.dart';
import '../elements/types.dart';
import '../js/js.dart' as jsAst;
@@ -89,9 +89,10 @@ class InterceptorDataImpl implements InterceptorData {
this._interceptedClasses,
this._classesMixedIntoInterceptedClasses);
- bool isInterceptedMethod(MemberElement element) {
+ bool isInterceptedMethod(MemberEntity element) {
if (!element.isInstanceMember) return false;
- if (element.isGenerativeConstructorBody) {
+ // TODO(johnniwinther): Avoid this hack.
+ if (element is ConstructorBodyElement) {
return _nativeData.isNativeOrExtendsNative(element.enclosingClass);
}
return _interceptedElements[element.name] != null;
« no previous file with comments | « pkg/compiler/lib/src/closure.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