Index: pkg/analyzer/lib/src/fasta/mock_type.dart |
diff --git a/pkg/analyzer/lib/src/fasta/mock_type.dart b/pkg/analyzer/lib/src/fasta/mock_type.dart |
index 3eac68b2e53843783800bfc54cf7ab1253021dfd..063ac306697d07df2f4d0413b3cb1c14b3cd7046 100644 |
--- a/pkg/analyzer/lib/src/fasta/mock_type.dart |
+++ b/pkg/analyzer/lib/src/fasta/mock_type.dart |
@@ -10,153 +10,164 @@ import 'package:analyzer/dart/element/type.dart'; |
import 'package:analyzer/src/generated/type_system.dart' show TypeSystem; |
-import 'package:front_end/src/fasta/errors.dart' show internalError; |
+import 'package:front_end/src/fasta/deprecated_problems.dart' |
+ show deprecated_internalProblem; |
abstract class MockType extends DartType { |
- String get displayName => internalError("not supported."); |
+ String get displayName => deprecated_internalProblem("not supported."); |
- Element get element => internalError("not supported."); |
+ Element get element => deprecated_internalProblem("not supported."); |
- bool get isBottom => internalError("not supported."); |
+ bool get isBottom => deprecated_internalProblem("not supported."); |
- bool get isDartAsyncFuture => internalError("not supported."); |
+ bool get isDartAsyncFuture => deprecated_internalProblem("not supported."); |
- bool get isDartAsyncFutureOr => internalError("not supported."); |
+ bool get isDartAsyncFutureOr => deprecated_internalProblem("not supported."); |
- bool get isDartCoreFunction => internalError("not supported."); |
+ bool get isDartCoreFunction => deprecated_internalProblem("not supported."); |
- bool get isDynamic => internalError("not supported."); |
+ bool get isDynamic => deprecated_internalProblem("not supported."); |
- bool get isObject => internalError("not supported."); |
+ bool get isObject => deprecated_internalProblem("not supported."); |
- bool get isUndefined => internalError("not supported."); |
+ bool get isUndefined => deprecated_internalProblem("not supported."); |
- bool get isVoid => internalError("not supported."); |
+ bool get isVoid => deprecated_internalProblem("not supported."); |
- String get name => internalError("not supported."); |
+ String get name => deprecated_internalProblem("not supported."); |
DartType flattenFutures(TypeSystem typeSystem) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
- bool isAssignableTo(DartType type) => internalError("not supported."); |
+ bool isAssignableTo(DartType type) => |
+ deprecated_internalProblem("not supported."); |
- bool isMoreSpecificThan(DartType type) => internalError("not supported."); |
+ bool isMoreSpecificThan(DartType type) => |
+ deprecated_internalProblem("not supported."); |
- bool isSubtypeOf(DartType type) => internalError("not supported."); |
+ bool isSubtypeOf(DartType type) => |
+ deprecated_internalProblem("not supported."); |
- bool isSupertypeOf(DartType type) => internalError("not supported."); |
+ bool isSupertypeOf(DartType type) => |
+ deprecated_internalProblem("not supported."); |
DartType resolveToBound(DartType objectType) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
DartType substitute2( |
List<DartType> argumentTypes, List<DartType> parameterTypes) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
- List<DartType> get typeArguments => internalError("not supported."); |
+ List<DartType> get typeArguments => |
+ deprecated_internalProblem("not supported."); |
List<TypeParameterElement> get typeParameters { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
ParameterizedType instantiate(List<DartType> argumentTypes) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
} |
abstract class MockInterfaceType extends MockType implements InterfaceType { |
- ClassElement get element => internalError("not supported."); |
+ ClassElement get element => deprecated_internalProblem("not supported."); |
List<PropertyAccessorElement> get accessors { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
- List<ConstructorElement> get constructors => internalError("not supported."); |
+ List<ConstructorElement> get constructors => |
+ deprecated_internalProblem("not supported."); |
- List<InterfaceType> get interfaces => internalError("not supported."); |
+ List<InterfaceType> get interfaces => |
+ deprecated_internalProblem("not supported."); |
- List<MethodElement> get methods => internalError("not supported."); |
+ List<MethodElement> get methods => |
+ deprecated_internalProblem("not supported."); |
- List<InterfaceType> get mixins => internalError("not supported."); |
+ List<InterfaceType> get mixins => |
+ deprecated_internalProblem("not supported."); |
- InterfaceType get superclass => internalError("not supported."); |
+ InterfaceType get superclass => deprecated_internalProblem("not supported."); |
PropertyAccessorElement getGetter(String name) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
- MethodElement getMethod(String name) => internalError("not supported."); |
+ MethodElement getMethod(String name) => |
+ deprecated_internalProblem("not supported."); |
PropertyAccessorElement getSetter(String name) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
bool isDirectSupertypeOf(InterfaceType type) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
ConstructorElement lookUpConstructor(String name, LibraryElement library) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
PropertyAccessorElement lookUpGetter(String name, LibraryElement library) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
PropertyAccessorElement lookUpGetterInSuperclass( |
String name, LibraryElement library) => |
- internalError("not supported."); |
+ deprecated_internalProblem("not supported."); |
PropertyAccessorElement lookUpInheritedGetter(String name, |
{LibraryElement library, bool thisType: true}) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
ExecutableElement lookUpInheritedGetterOrMethod(String name, |
{LibraryElement library}) => |
- internalError("not supported."); |
+ deprecated_internalProblem("not supported."); |
MethodElement lookUpInheritedMethod(String name, |
{LibraryElement library, bool thisType: true}) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
PropertyAccessorElement lookUpInheritedSetter(String name, |
{LibraryElement library, bool thisType: true}) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
MethodElement lookUpMethod(String name, LibraryElement library) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
MethodElement lookUpMethodInSuperclass(String name, LibraryElement library) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
PropertyAccessorElement lookUpSetter(String name, LibraryElement library) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
PropertyAccessorElement lookUpSetterInSuperclass( |
String name, LibraryElement library) => |
- internalError("not supported."); |
+ deprecated_internalProblem("not supported."); |
InterfaceType instantiate(List<DartType> argumentTypes) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
InterfaceType substitute2( |
List<DartType> argumentTypes, List<DartType> parameterTypes) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
InterfaceType substitute4(List<DartType> argumentTypes) { |
- return internalError("not supported."); |
+ return deprecated_internalProblem("not supported."); |
} |
- get isDartCoreNull => internalError("not supported."); |
+ get isDartCoreNull => deprecated_internalProblem("not supported."); |
} |