Skip to content

Commit 5eec65e

Browse files
pqCommit Queue
authored andcommitted
[element model] migrate yield_statement_resolver
Change-Id: I95d94420e978655970625936fb26e17b282067e6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399961 Auto-Submit: Phil Quitslund <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent ad6cd13 commit 5eec65e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/analyzer/analyzer_use_new_elements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ lib/src/dart/resolver/this_lookup.dart
9393
lib/src/dart/resolver/type_property_resolver.dart
9494
lib/src/dart/resolver/typed_literal_resolver.dart
9595
lib/src/dart/resolver/variable_declaration_resolver.dart
96-
lib/src/dart/resolver/yield_statement_resolver.dart
9796
lib/src/diagnostic/diagnostic_factory.dart
9897
lib/src/error/best_practices_verifier.dart
9998
lib/src/error/correct_override.dart

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ class YieldStatementResolver {
100100
return;
101101
}
102102
} else {
103-
var imposedSequenceType = imposedReturnType.asInstanceOf(
103+
var imposedSequenceType = imposedReturnType.asInstanceOf2(
104104
bodyContext.isSynchronous
105-
? _typeProvider.iterableElement
106-
: _typeProvider.streamElement,
105+
? _typeProvider.iterableElement2
106+
: _typeProvider.streamElement2,
107107
);
108108
if (imposedSequenceType != null) {
109109
var imposedValueType = imposedSequenceType.typeArguments[0];

0 commit comments

Comments
 (0)