MCPcopy
hub / github.com/MadAppGang/dingo / Size

Method Size

pkg/lsp/sourcemap_cache.go:153–157  ·  view source on GitHub ↗

Size returns the number of cached source maps

()

Source from the content-addressed store, hash-verified

151
152// Size returns the number of cached source maps
153func (c *SourceMapCache) Size() int {
154 c.mu.RLock()
155 defer c.mu.RUnlock()
156 return len(c.maps)
157}
158
159// calculateDmapPath calculates the .dmap file path in the project root .dmap/ folder.
160// Example: /project/examples/03_option/user.dingo -> /project/.dmap/examples/03_option/user.dmap

Callers 4

TestSourceMapCacheNewFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestSourceMapCacheNewFunction · 0.76