Fix the windows bot
Change-Id: Id15e2a4191fc11cf145ba5a10f3970d7135b0863 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/268520 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
committed by
Commit Queue
parent
6a249fdcb0
commit
e61ac810fe
@@ -628,16 +628,16 @@ abstract class ImportAnalyzerTest extends PubPackageAnalysisServerTest {
|
||||
Map<_ExpectedElement, List<String>>? expectedStayingReferences}) async {
|
||||
createDefaultFiles();
|
||||
var testCode = TestCode.parse(code);
|
||||
addTestFile(testCode.code);
|
||||
var pathToInclude = newFile(testFilePath, testCode.code).path;
|
||||
var context = AnalysisContextCollection(
|
||||
includedPaths: [testFilePath],
|
||||
includedPaths: [pathToInclude],
|
||||
resourceProvider: resourceProvider,
|
||||
sdkPath: sdkRoot.path)
|
||||
.contexts[0];
|
||||
var result = await context.currentSession.getResolvedLibrary(testFilePath)
|
||||
var result = await context.currentSession.getResolvedLibrary(pathToInclude)
|
||||
as ResolvedLibraryResult;
|
||||
var analyzer =
|
||||
ImportAnalyzer(result, testFilePath, testCode.range.sourceRange);
|
||||
ImportAnalyzer(result, pathToInclude, testCode.range.sourceRange);
|
||||
|
||||
if (expectedMovingDeclarations != null) {
|
||||
var movingDeclarations = analyzer.movingDeclarations.toList();
|
||||
|
||||
Reference in New Issue
Block a user