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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_loader.dart

Issue 2977713002: Remove deprecated api from LibraryBuilder. (Closed)
Patch Set: Created 3 years, 5 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698