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

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

Issue 2940843005: Remove an unnecessary null check (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
index 5eea63328e1fb554cb1da106f990624b210683e0..f62dac93da4edee221530816de912d2ac7f68500 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
@@ -2272,8 +2272,7 @@ class KernelYieldStatement extends YieldStatement implements KernelStatement {
? inferrer.coreTypes.streamClass
: inferrer.coreTypes.iterableClass);
}
- var inferredType = inferrer.inferExpression(
- expression, typeContext, closureContext != null);
+ var inferredType = inferrer.inferExpression(expression, typeContext, true);
closureContext.handleYield(inferrer, isYieldStar, inferredType);
inferrer.listener.yieldStatementExit(this);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698