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

Unified Diff: pkg/analyzer/tool/summary/mini_ast.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/analyzer/tool/summary/mini_ast.dart
diff --git a/pkg/analyzer/tool/summary/mini_ast.dart b/pkg/analyzer/tool/summary/mini_ast.dart
index 3fda95da1e5fb35f357590081e4e14bd5105c1eb..ca4bace019eb707066b96e0c37f73ad74861b174 100644
--- a/pkg/analyzer/tool/summary/mini_ast.dart
+++ b/pkg/analyzer/tool/summary/mini_ast.dart
@@ -2,7 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'package:front_end/src/fasta/errors.dart' show internalError;
+import 'package:front_end/src/fasta/deprecated_problems.dart'
+ show deprecated_internalProblem;
import 'package:front_end/src/fasta/fasta_codes.dart' show FastaMessage;
import 'package:front_end/src/fasta/parser/identifier_context.dart';
import 'package:front_end/src/fasta/parser/parser.dart';
@@ -157,7 +158,7 @@ class MiniAstBuilder extends StackListener {
@override
void addCompileTimeErrorFromMessage(FastaMessage message) {
- internalError(message.message);
+ deprecated_internalProblem(message.message);
}
@override
@@ -214,7 +215,8 @@ class MiniAstBuilder extends StackListener {
void endConditionalUris(int count) {
debugEvent("ConditionalUris");
if (count != 0) {
- internalError('Conditional URIs are not supported by summary codegen');
+ deprecated_internalProblem(
+ 'Conditional URIs are not supported by summary codegen');
}
}
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/front_end/lib/src/fasta/builder/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698