Index: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
index 8957ac05ead5ba8d16e2cea1c354f43854235e55..6a28a294c9e8da390d29b7cb5a6611a9f17e3b7a 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart |
@@ -30,7 +30,7 @@ import 'package:kernel/ast.dart' |
import 'package:kernel/frontend/accessors.dart'; |
import 'package:kernel/type_environment.dart'; |
-import '../errors.dart' show internalError; |
+import '../deprecated_problems.dart' show deprecated_internalProblem; |
/// Computes the return type of a (possibly factory) constructor. |
InterfaceType computeConstructorReturnType(Member constructor) { |
@@ -537,7 +537,7 @@ class KernelDirectMethodInvocation extends DirectMethodInvocation |
// DirectMethodInvocation can only occur as a result of a use of `super`, |
// and `super` can't appear inside a field initializer. So this code should |
// never be reached. |
- internalError( |
+ deprecated_internalProblem( |
'Unexpected call to _collectDependencies for DirectMethodInvocation'); |
} |
@@ -563,7 +563,7 @@ class KernelDirectPropertyGet extends DirectPropertyGet |
// DirectPropertyGet can only occur as a result of a use of `super`, and |
// `super` can't appear inside a field initializer. So this code should |
// never be reached. |
- internalError( |
+ deprecated_internalProblem( |
'Unexpected call to _collectDependencies for DirectPropertyGet'); |
} |
@@ -1445,7 +1445,7 @@ class KernelProcedure extends Procedure implements KernelMember { |
new InstrumentationValueForType(inferredType)); |
function.returnType = inferredType; |
} else { |
- internalError( |
+ deprecated_internalProblem( |
'setInferredType called on a procedure that is not an accessor'); |
} |
} |
@@ -2407,22 +2407,22 @@ class KernelYieldStatement extends YieldStatement implements KernelStatement { |
class _UnfinishedCascade extends Expression { |
accept(v) { |
- return internalError("Internal error: Unsupported operation."); |
+ return deprecated_internalProblem("Internal error: Unsupported operation."); |
} |
accept1(v, arg) { |
- return internalError("Internal error: Unsupported operation."); |
+ return deprecated_internalProblem("Internal error: Unsupported operation."); |
} |
getStaticType(types) { |
- return internalError("Internal error: Unsupported operation."); |
+ return deprecated_internalProblem("Internal error: Unsupported operation."); |
} |
transformChildren(v) { |
- return internalError("Internal error: Unsupported operation."); |
+ return deprecated_internalProblem("Internal error: Unsupported operation."); |
} |
visitChildren(v) { |
- return internalError("Internal error: Unsupported operation."); |
+ return deprecated_internalProblem("Internal error: Unsupported operation."); |
} |
} |