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

Unified Diff: pkg/front_end/lib/src/fasta/builder/builder.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
« no previous file with comments | « pkg/analyzer/tool/summary/mini_ast.dart ('k') | pkg/front_end/lib/src/fasta/builder/class_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/builder/builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/builder.dart b/pkg/front_end/lib/src/fasta/builder/builder.dart
index dffdfec22bc152b13af4e6f4124a10f48c9257df..e3024e862040760b77e766e48fb170ad7cecbd37 100644
--- a/pkg/front_end/lib/src/fasta/builder/builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/builder.dart
@@ -4,7 +4,7 @@
library fasta.builder;
-import '../errors.dart' show internalError;
+import '../deprecated_problems.dart' show deprecated_internalProblem;
export 'class_builder.dart' show ClassBuilder;
@@ -44,7 +44,7 @@ export 'prefix_builder.dart' show PrefixBuilder;
export 'invalid_type_builder.dart' show InvalidTypeBuilder;
-export '../scope.dart' show AccessErrorBuilder, Scope, ScopeBuilder;
+export '../scope.dart' show deprecated_AccessErrorBuilder, Scope, ScopeBuilder;
export 'builtin_type_builder.dart' show BuiltinTypeBuilder;
@@ -124,7 +124,8 @@ abstract class Builder {
bool get isSynthetic => false;
- get target => internalError("Unsupported operation $runtimeType.");
+ get target =>
+ deprecated_internalProblem("Unsupported operation $runtimeType.");
bool get hasProblem => false;
@@ -136,7 +137,7 @@ abstract class Builder {
if (builder is LibraryBuilder) return builder.uri;
builder = builder.parent;
} while (builder != null);
- return internalError("No library parent.");
+ return deprecated_internalProblem("No library parent.");
}
void prepareInitializerInference(
« no previous file with comments | « pkg/analyzer/tool/summary/mini_ast.dart ('k') | pkg/front_end/lib/src/fasta/builder/class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698