Skip to content

Commit d7b3812

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Remove a duplication of analysis from some tests
Change-Id: Ib358b943519172afaf32ba9185ebec96c57beeda Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/171322 Reviewed-by: Konstantin Shcheglov <[email protected]> Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent c15faea commit d7b3812

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/analysis_server/test/services/completion/statement/statement_completion_test.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ class StatementCompletionTest extends AbstractSingleUnitTest {
6161
}
6262

6363
Future<void> _computeCompletion(int offset) async {
64-
// TODO(brianwilkerson) I'm fairly confident that `result` is equivalent to
65-
// `testAnalysisResult` and that we're resolving the file twice.
66-
var result = await session.getResolvedUnit(testFile);
67-
var context = StatementCompletionContext(result, offset);
64+
var context = StatementCompletionContext(testAnalysisResult, offset);
6865
var processor = StatementCompletionProcessor(context);
6966
var completion = await processor.compute();
7067
change = completion.change;

0 commit comments

Comments
 (0)