@@ -334,9 +334,10 @@ class FileResolver {
334334 var bytes = _errorResultsCache.get (errorsKey);
335335 if (bytes != null ) {
336336 var data = CiderUnitErrors .fromBuffer (bytes);
337- diagnostics = data.errors.map ((error) {
338- return ErrorEncoding .decode (file.source, error)! ;
339- }).toList ();
337+ diagnostics =
338+ data.errors.map ((error) {
339+ return ErrorEncoding .decode (file.source, error)! ;
340+ }).toList ();
340341 } else {
341342 var unitResult = await resolve (path: path, performance: performance);
342343 diagnostics = unitResult.diagnostics;
@@ -655,15 +656,16 @@ class FileResolver {
655656 });
656657 });
657658
658- var resolvedUnits = results.map ((fileResult) {
659- var file = fileResult.file;
660- return ResolvedUnitResultImpl (
661- session: contextObjects! .analysisSession,
662- fileState: file,
663- unit: fileResult.unit,
664- diagnostics: fileResult.diagnostics,
665- );
666- }).toList ();
659+ var resolvedUnits =
660+ results.map ((fileResult) {
661+ var file = fileResult.file;
662+ return ResolvedUnitResultImpl (
663+ session: contextObjects! .analysisSession,
664+ fileState: file,
665+ unit: fileResult.unit,
666+ diagnostics: fileResult.diagnostics,
667+ );
668+ }).toList ();
667669
668670 var libraryUnit = resolvedUnits.first;
669671 var result = ResolvedLibraryResultImpl (
@@ -696,12 +698,13 @@ class FileResolver {
696698 return ;
697699 }
698700
699- var analysisOptions = (AnalysisOptionsBuilder ()
700- ..strictInference = fileAnalysisOptions.strictInference
701- ..contextFeatures =
702- FeatureSet .latestLanguageVersion () as ExperimentStatus
703- ..nonPackageFeatureSet = FeatureSet .latestLanguageVersion ())
704- .build ();
701+ var analysisOptions =
702+ (AnalysisOptionsBuilder ()
703+ ..strictInference = fileAnalysisOptions.strictInference
704+ ..contextFeatures =
705+ FeatureSet .latestLanguageVersion () as ExperimentStatus
706+ ..nonPackageFeatureSet = FeatureSet .latestLanguageVersion ())
707+ .build ();
705708
706709 if (fsState == null ) {
707710 var featureSetProvider = FeatureSetProvider .build (
@@ -730,6 +733,7 @@ class FileResolver {
730733 onNewFile: (file) {},
731734 testData: testData? .fileSystem,
732735 unlinkedUnitStore: UnlinkedUnitStoreImpl (),
736+ withFineDependencies: false ,
733737 );
734738 }
735739
@@ -759,8 +763,12 @@ class FileResolver {
759763 sourceFactory: sourceFactory,
760764 externalSummaries: SummaryDataStore (),
761765 packagesFile: null ,
766+ withFineDependencies: false ,
762767 testData: testData? .libraryContext,
763- linkedBundleProvider: LinkedBundleProvider (byteStore: byteStore),
768+ linkedBundleProvider: LinkedBundleProvider (
769+ byteStore: byteStore,
770+ withFineDependencies: false ,
771+ ),
764772 );
765773
766774 contextObjects! .analysisSession.elementFactory =
@@ -783,8 +791,8 @@ class FileResolver {
783791 YamlMap ? optionMap;
784792
785793 var separator = resourceProvider.pathContext.separator;
786- var isThirdParty = path
787- .contains ('${separator }third_party${separator }dart$separator ' ) ||
794+ var isThirdParty =
795+ path .contains ('${separator }third_party${separator }dart$separator ' ) ||
788796 path.contains ('${separator }third_party${separator }dart_lang$separator ' );
789797
790798 File ? optionsFile;
@@ -882,15 +890,16 @@ class FileResolver {
882890 );
883891 unitResult.unit.accept (visitor);
884892 var lineInfo = unitResult.lineInfo;
885- var infos = visitor.results
886- .map (
887- (searchResult) => CiderSearchInfo (
888- lineInfo.getLocation (searchResult.offset),
889- searchResult.length,
890- MatchKind .REFERENCE ,
891- ),
892- )
893- .toList ();
893+ var infos =
894+ visitor.results
895+ .map (
896+ (searchResult) => CiderSearchInfo (
897+ lineInfo.getLocation (searchResult.offset),
898+ searchResult.length,
899+ MatchKind .REFERENCE ,
900+ ),
901+ )
902+ .toList ();
894903 results.add (CiderSearchMatch (unitPath, infos));
895904 }
896905 return results;
0 commit comments