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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart

Issue 2976753002: Remove deprecated_addNit. (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/kernel/fasta_accessors.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
index e10d123e7c4bb7cb9c1d2dbf47cb91c1357cec79..cde1d58816937f8f30cfd379b507e01196f8bdb4 100644
--- a/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart
@@ -123,6 +123,8 @@ abstract class BuilderHelper {
DartType validatedTypeVariableUse(
TypeParameterType type, int offset, bool nonInstanceAccessIsError);
+ void warning(Message message, int charOffset);
+
void deprecated_warning(String message, [int charOffset]);
void warnUnresolvedSuperGet(Name name, int charOffset);
@@ -956,12 +958,12 @@ class TypeDeclarationAccessor extends ReadOnlyAccessor {
int offset = offsetForToken(token);
if (declaration is KernelInvalidTypeBuilder) {
KernelInvalidTypeBuilder declaration = this.declaration;
- String message = declaration.message;
- helper.library.deprecated_addWarning(declaration.charOffset, message,
- fileUri: declaration.fileUri);
- helper.deprecated_warning(message, offset);
+ helper.library.addWarning(
+ declaration.message, declaration.charOffset, declaration.fileUri);
+ helper.warning(declaration.message, offset);
super.expression = new Throw(
- new StringLiteral(message)..fileOffset = offsetForToken(token))
+ new StringLiteral(declaration.message.message)
+ ..fileOffset = offsetForToken(token))
..fileOffset = offset;
} else {
super.expression = new KernelTypeLiteral(

Powered by Google App Engine
This is Rietveld 408576698