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

Unified Diff: pkg/compiler/lib/src/constants/constructors.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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/compiler/lib/src/constants/constructors.dart
diff --git a/pkg/compiler/lib/src/constants/constructors.dart b/pkg/compiler/lib/src/constants/constructors.dart
index c0b3d12740c8d5d862f0a48e66728bab1ad3bc86..0e1ec121aa51384088a53456d63c202f1ca49a3a 100644
--- a/pkg/compiler/lib/src/constants/constructors.dart
+++ b/pkg/compiler/lib/src/constants/constructors.dart
@@ -39,15 +39,19 @@ abstract class ConstantConstructor {
abstract class ConstantConstructorVisitor<R, A> {
const ConstantConstructorVisitor();
- R visit(ConstantConstructor constantConstructor, A context) {
+ R visit(
+ covariant ConstantConstructor constantConstructor, covariant A context) {
return constantConstructor.accept(this, context);
}
- R visitGenerative(GenerativeConstantConstructor constructor, A arg);
+ R visitGenerative(
+ covariant GenerativeConstantConstructor constructor, covariant A arg);
R visitRedirectingGenerative(
- RedirectingGenerativeConstantConstructor constructor, A arg);
+ covariant RedirectingGenerativeConstantConstructor constructor,
+ covariant A arg);
R visitRedirectingFactory(
- RedirectingFactoryConstantConstructor constructor, A arg);
+ covariant RedirectingFactoryConstantConstructor constructor,
+ covariant A arg);
}
/// A generative constant constructor.
« no previous file with comments | « pkg/compiler/lib/src/constants/constant_constructors.dart ('k') | pkg/compiler/lib/src/constants/evaluation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698