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

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 2341263002: Handle generic factory constructors in kernel_impact (Closed)
Patch Set: Updated cf. comment. Created 4 years, 3 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/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 5994a15203c3a7c8eef2e0c2195f474612f4908f..39bd77da09410c377fe32e9a5e52453bc9734d3a 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -4063,11 +4063,13 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
}
DartType resolveTypeAnnotation(TypeAnnotation node,
- {bool malformedIsError: false, bool deferredIsMalformed: true}) {
+ {bool malformedIsError: false,
+ bool deferredIsMalformed: true,
+ bool registerCheckedModeCheck: true}) {
DartType type = typeResolver.resolveTypeAnnotation(this, node,
malformedIsError: malformedIsError,
deferredIsMalformed: deferredIsMalformed);
- if (!type.isDynamic) {
+ if (registerCheckedModeCheck && !type.isDynamic) {
registry.registerTypeUse(new TypeUse.checkedModeCheck(type));
}
return type;
« no previous file with comments | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | pkg/compiler/lib/src/resolution/type_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698