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

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

Issue 2940453002: Add offsets to the `== null` calls inserted by null-aware desugaring. (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
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 5c2f72a163237e29b82aea3123375b564fdc4437..15de909897d3a81e105fb4ccb417994f0795e5db 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
@@ -328,7 +328,8 @@ abstract class KernelComplexAssignment extends Expression
if (nullAwareCombiner != null) {
var rhsType = inferrer.inferExpression(rhs, writeContext, true);
MethodInvocation equalsInvocation = nullAwareCombiner.condition;
- inferrer.findMethodInvocationMember(writeContext, equalsInvocation);
+ inferrer.findMethodInvocationMember(writeContext, equalsInvocation,
+ silent: true);
return inferrer.typeSchemaEnvironment
.getLeastUpperBound(inferredType, rhsType);
} else if (combiner != null) {

Powered by Google App Engine
This is Rietveld 408576698