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

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

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Created 3 years, 5 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/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 f6d8eff280550147f5fb10d54a16c153be437438..26df3391fd5dc422818a8449dc1db42a116f0fb2 100644
--- a/pkg/compiler/lib/src/js_backend/interceptor_data.dart
+++ b/pkg/compiler/lib/src/js_backend/interceptor_data.dart
@@ -6,7 +6,6 @@ library js_backend.interceptor_data;
import '../common/names.dart' show Identifiers;
import '../common_elements.dart' show CommonElements, ElementEnvironment;
-import '../elements/elements.dart' show ConstructorBodyElement;
import '../elements/entities.dart';
import '../elements/types.dart';
import '../js/js.dart' as jsAst;
@@ -92,7 +91,7 @@ class InterceptorDataImpl implements InterceptorData {
bool isInterceptedMethod(MemberEntity element) {
if (!element.isInstanceMember) return false;
// TODO(johnniwinther): Avoid this hack.
- if (element is ConstructorBodyElement) {
+ if (element is ConstructorBodyEntity) {
return _nativeData.isNativeOrExtendsNative(element.enclosingClass);
}
return _interceptedElements[element.name] != null;

Powered by Google App Engine
This is Rietveld 408576698