resolveFile method
Resolves a Dart source file at filePath.
Implementation
Future<ResolvedUnitResult> resolveFile(String filePath) async {
var file = getFile(filePath);
var analysisContext = contextFor2(file);
await analysisContext.applyPendingFileChanges();
var session = analysisContext.currentSession;
return await session.getResolvedUnit(file.path) as ResolvedUnitResult;
}