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

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

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)
Patch Set: Add type variable to Code. 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/kernel_procedure_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart
index 5ae57e92e7f4a32d4ef299e995331f06e3bec24d..267dde41a5fe27d2d8301a9306e0dc38ee478398 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart
@@ -46,7 +46,7 @@ import 'package:kernel/type_algebra.dart' show containsTypeVariable, substitute;
import '../deprecated_problems.dart' show deprecated_internalProblem;
-import '../messages.dart' show deprecated_warning;
+import '../messages.dart' show messageNonInstanceTypeVariableUse, warning;
import '../loader.dart' show Loader;
@@ -151,8 +151,7 @@ abstract class KernelFunctionBuilder
substitution[parameter] = const DynamicType();
}
}
- deprecated_warning(fileUri, charOffset,
- "Can only use type variables in instance methods.");
+ warning(messageNonInstanceTypeVariableUse, charOffset, fileUri);
return substitute(type, substitution);
}

Powered by Google App Engine
This is Rietveld 408576698