Skip to content

Commit

Permalink
[element model] migrate assigned_variables_test
Browse files Browse the repository at this point in the history
Change-Id: Ib67e86ba6e4165651031e1f4c99298a4a6a83d27
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401866
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Phil Quitslund <[email protected]>
  • Loading branch information
pq authored and Commit Queue committed Dec 19, 2024
1 parent e5d5a66 commit 3d2fd70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion pkg/analyzer/analyzer_use_new_elements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ test/generated/elements_types_mixin.dart
test/generated/non_error_resolver_test.dart
test/generated/resolver_test_case.dart
test/generated/type_system_test.dart
test/id_tests/assigned_variables_test.dart
test/id_tests/type_constraint_generation_test.dart
test/src/dart/analysis/index_test.dart
test/src/dart/analysis/result_printer.dart
Expand Down
9 changes: 4 additions & 5 deletions pkg/analyzer/test/id_tests/assigned_variables_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ class _AssignedVariablesDataComputer extends DataComputer<_Data> {
@override
void computeUnitData(TestingData testingData, CompilationUnit unit,
Map<Id, ActualData<_Data>> actualMap) {
var unitElement = unit.declaredElement!;
var flowResult = testingData.uriToFlowAnalysisData[unitElement.source.uri]!;
_AssignedVariablesDataExtractor(
unitElement.source.uri, actualMap, flowResult)
.run(unit);
var unitElement = unit.declaredFragment!.element;
var uri = unitElement.firstFragment.source.uri;
var flowResult = testingData.uriToFlowAnalysisData[uri]!;
_AssignedVariablesDataExtractor(uri, actualMap, flowResult).run(unit);
}
}

Expand Down

0 comments on commit 3d2fd70

Please sign in to comment.