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

Unified Diff: pkg/front_end/lib/src/kernel_generator_impl.dart

Issue 2970273004: Deprecate all diagnostics methods that use strings. (Closed)
Patch Set: Merged with 4df146dd9a465d63344330bf3e45524b927c92ec 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/kernel_generator_impl.dart
diff --git a/pkg/front_end/lib/src/kernel_generator_impl.dart b/pkg/front_end/lib/src/kernel_generator_impl.dart
index 3a36278fb46ec5cde3145c95157769e510ff86c0..fca3fb1e35b08c639ed839a0d517d914ee55bb88 100644
--- a/pkg/front_end/lib/src/kernel_generator_impl.dart
+++ b/pkg/front_end/lib/src/kernel_generator_impl.dart
@@ -12,7 +12,7 @@ import 'package:kernel/kernel.dart' show Program, CanonicalName;
import 'base/processed_options.dart';
import 'fasta/dill/dill_target.dart' show DillTarget;
-import 'fasta/errors.dart' show InputError, reportCrash;
+import 'fasta/deprecated_problems.dart' show deprecated_InputError, reportCrash;
import 'fasta/kernel/kernel_outline_shaker.dart';
import 'fasta/kernel/kernel_target.dart' show KernelTarget;
import 'fasta/kernel/verifier.dart';
@@ -145,8 +145,8 @@ Future<CompilerResult> generateKernelInternal(ProcessedOptions options,
summary: summary,
program: program,
deps: kernelTarget.loader.getDependencies());
- } on InputError catch (e) {
- options.reportError(e.format());
+ } on deprecated_InputError catch (e) {
+ options.reportError(e.deprecated_format());
return null;
} catch (e, t) {
return reportCrash(e, t);
« no previous file with comments | « pkg/front_end/lib/src/fasta/type_inference/type_promotion.dart ('k') | pkg/front_end/test/fasta/shaker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698