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

Unified Diff: pkg/dev_compiler/lib/src/compiler/extension_types.dart

Issue 2748713002: Invoke native methods directly (Closed)
Patch Set: Address comments / cleanup Created 3 years, 9 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/dev_compiler/lib/src/compiler/extension_types.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/extension_types.dart b/pkg/dev_compiler/lib/src/compiler/extension_types.dart
index 7afb9f38a5127a8f9fbe47df2d6c0cbef6defce6..1e26fb46598c49dc8d9497d8dcc3cfd41001c060 100644
--- a/pkg/dev_compiler/lib/src/compiler/extension_types.dart
+++ b/pkg/dev_compiler/lib/src/compiler/extension_types.dart
@@ -144,11 +144,11 @@ class ExtensionTypeSet {
bool isNativeClass(Element element) => _setContains(_nativeTypes, element);
- bool _isNativeInterface(Element element) =>
+ bool isNativeInterface(Element element) =>
_setContains(_extensibleTypes, element);
bool hasNativeSubtype(DartType type) =>
- _isNativeInterface(type.element) || isNativeClass(type.element);
+ isNativeInterface(type.element) || isNativeClass(type.element);
/// Collects all supertypes that may themselves contain native subtypes,
/// excluding [Object], for example `List` is implemented by several native

Powered by Google App Engine
This is Rietveld 408576698