Index: pkg/front_end/lib/src/fasta/source/source_loader.dart |
diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart |
index 34ae3f3f2967b9ce0fd08a0096940eb0377b294d..aa16d8df1ee800d77f11759b8561084258f0ea92 100644 |
--- a/pkg/front_end/lib/src/fasta/source/source_loader.dart |
+++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart |
@@ -43,7 +43,8 @@ import '../fasta_codes.dart' |
templateExtendingRestricted, |
templateIllegalMixin, |
templateIllegalMixinDueToConstructors, |
- templateIllegalMixinDueToConstructorsCause; |
+ templateIllegalMixinDueToConstructorsCause, |
+ templateUnspecified; |
import '../kernel/kernel_shadow_ast.dart' show KernelTypeInferenceEngine; |
@@ -118,9 +119,10 @@ class SourceLoader<L> extends Loader<L> { |
while (token is ErrorToken) { |
if (!suppressLexicalErrors) { |
ErrorToken error = token; |
- library.deprecated_addCompileTimeError( |
- token.charOffset, error.assertionMessage, |
- fileUri: uri); |
+ library.addCompileTimeError( |
+ templateUnspecified.withArguments(error.assertionMessage), |
+ token.charOffset, |
+ uri); |
} |
token = token.next; |
} |