MCPcopy Create free account
hub / github.com/microsoft/typescript-go / sourceFS

Struct sourceFS

internal/project/snapshotfs.go:643–649  ·  view source on GitHub ↗

sourceFS is a vfs.FS that sources files from a FileSource and tracks seen files.

Source from the content-addressed store, hash-verified

641
642// sourceFS is a vfs.FS that sources files from a FileSource and tracks seen files.
643type sourceFS struct {
644 tracking bool
645 toPath func(fileName string) tspath.Path
646 missingDirectories *collections.SyncSet[tspath.Path]
647 seenFiles *collections.SyncSet[tspath.Path]
648 source FileSource
649}
650
651func newSourceFS(tracking bool, source FileSource, toPath func(fileName string) tspath.Path) *sourceFS {
652 fs := &sourceFS{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected