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

Unified Diff: pkg/analyzer/lib/dart/element/type.dart

Issue 2551023005: Prepare for decoupling analyzer ASTs from element model. (Closed)
Patch Set: Address review comments Created 4 years 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/dart/element/type.dart
diff --git a/pkg/analyzer/lib/dart/element/type.dart b/pkg/analyzer/lib/dart/element/type.dart
index b6923a0fb659c86e39fd80f2caf7b8c71661db85..2ff00f0d4219bfaa9bffc68fe2eca5c6d4947318 100644
--- a/pkg/analyzer/lib/dart/element/type.dart
+++ b/pkg/analyzer/lib/dart/element/type.dart
@@ -22,6 +22,7 @@
*/
library analyzer.dart.element.type;
+import 'package:analyzer/dart/ast/resolution_base_classes.dart';
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/src/dart/element/type.dart' show InterfaceTypeImpl;
import 'package:analyzer/src/generated/type_system.dart' show TypeSystem;
@@ -31,7 +32,7 @@ import 'package:analyzer/src/generated/type_system.dart' show TypeSystem;
*
* Clients may not extend, implement or mix-in this class.
*/
-abstract class DartType {
+abstract class DartType implements ResolutionType {
/**
* An empty list of types.
*/
@@ -698,9 +699,6 @@ abstract class TypeParameterType implements DartType {
*/
static const List<TypeParameterType> EMPTY_LIST = const <TypeParameterType>[];
- @override
- TypeParameterElement get element;
-
/**
* Return the type representing the bound associated with this parameter,
* or `dynamic` if there was no explicit bound.
@@ -715,4 +713,7 @@ abstract class TypeParameterType implements DartType {
* Always consult the bound if that could be relevant.
*/
ElementLocation get definition;
+
+ @override
+ TypeParameterElement get element;
}

Powered by Google App Engine
This is Rietveld 408576698