Skip to content

Commit 2d588d0

Browse files
kallentuCommit Queue
authored and
Commit Queue
committed
[analyzer] Dot shorthands: Fix missed isDotShorthand(node) usage.
Missed one refactor in the binary_expression_resolver. Following up to comments on: https://dart-review.googlesource.com/c/sdk/+/422941/12/pkg/analyzer/lib/src/dart/resolver/binary_expression_resolver.dart#111 Bug: #59835 Change-Id: Ia210ddc5141222e13bda163681e1ae2b05dc55bb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423960 Commit-Queue: Kallen Tu <[email protected]> Reviewed-by: Paul Berry <[email protected]>
1 parent 5de031c commit 2d588d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/lib/src/dart/resolver/binary_expression_resolver.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class BinaryExpressionResolver {
108108

109109
// When evaluating exactly a dot shorthand in the RHS, we save the LHS type
110110
// to provide the context type for the shorthand.
111-
if (node.rightOperand is DotShorthandMixin) {
111+
if (_resolver.isDotShorthand(node.rightOperand)) {
112112
_resolver.pushDotShorthandContext(
113113
node.rightOperand,
114114
SharedTypeSchemaView(left.typeOrThrow),

0 commit comments

Comments
 (0)