resolveUnitOrLibraryAt method

Future<AnalysisResult> resolveUnitOrLibraryAt(
  1. Uri uri
)

Implementation

Future<AnalysisResult> resolveUnitOrLibraryAt(Uri uri) async {
  if (FileSystemEntity.isFileSync(
      uri.toFilePath(windows: Platform.isWindows))) {
    return await resolveUnitAt(uri);
  } else {
    return await resolveLibraryAt(uri);
  }
}