File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 6
6
"sync"
7
7
8
8
"github.com./microsoft/typescript-go/internal/ast"
9
- "github.com./microsoft/typescript-go/internal/collections"
10
9
"github.com./microsoft/typescript-go/internal/compiler/packagejson"
11
10
"github.com./microsoft/typescript-go/internal/core"
12
11
"github.com./microsoft/typescript-go/internal/tspath"
@@ -19,7 +18,11 @@ type caches struct {
19
18
typeReferenceDirectiveCache * resolutionCache [* ResolvedTypeReferenceDirective ]
20
19
packageJsonInfoCache * packagejson.InfoCache
21
20
resolvedTypeReferenceDirectiveLookupLocations map [* ResolvedTypeReferenceDirective ]* LookupLocations
22
- parsedPatternsCache map [* collections.OrderedMap [string , []string ]]parsedPatterns
21
+
22
+ // Cached representation for `core.CompilerOptions.paths`.
23
+ // Doesn't handle other path patterns like in `typesVersions`.
24
+ parsedPatternsForPathsOnce sync.Once
25
+ parsedPatternsForPaths * parsedPatterns
23
26
}
24
27
25
28
func newCaches (
You can’t perform that action at this time.
0 commit comments