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

Unified Diff: pkg/analyzer/lib/src/summary/summary_sdk.dart

Issue 2252183002: Fix calling object methods and properties on function types (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix calling object methods and properties on function types Created 4 years, 4 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/analyzer/lib/src/summary/summary_sdk.dart
diff --git a/pkg/analyzer/lib/src/summary/summary_sdk.dart b/pkg/analyzer/lib/src/summary/summary_sdk.dart
index 92b4e48381ff40ecbb9035f325598c18c7d09ab9..d204794e0578c02e37067e7dea146d9fe952bd90 100644
--- a/pkg/analyzer/lib/src/summary/summary_sdk.dart
+++ b/pkg/analyzer/lib/src/summary/summary_sdk.dart
@@ -189,7 +189,9 @@ class SummaryBasedDartSdk implements DartSdk {
* Implementation of [TypeProvider] which can be initialized separately with
* `dart:core` and `dart:async` libraries.
*/
-class SummaryTypeProvider implements TypeProvider {
+class SummaryTypeProvider extends Object
+ with TypeProviderBaseMixin
+ implements TypeProvider {
LibraryElement _coreLibrary;
LibraryElement _asyncLibrary;
@@ -307,16 +309,6 @@ class SummaryTypeProvider implements TypeProvider {
}
@override
- List<InterfaceType> get nonSubtypableTypes => <InterfaceType>[
- nullType,
- numType,
- intType,
- doubleType,
- boolType,
- stringType
- ];
-
- @override
DartObjectImpl get nullObject {
if (_nullObject == null) {
_nullObject = new DartObjectImpl(nullType, NullState.NULL_STATE);

Powered by Google App Engine
This is Rietveld 408576698