MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / get

Method get

src/shared/utils/document_cache.ts:7–9  ·  view source on GitHub ↗
(uri: URI)

Source from the content-addressed store, hash-verified

5 private readonly data = new Map<string, T>();
6
7 public get(uri: URI): T | undefined {
8 return this.data.get(this.key(uri));
9 }
10
11 public getForPath(filePath: string): T | undefined {
12 return this.get(URI.file(filePath));

Callers 1

getForPathMethod · 0.95

Calls 1

keyMethod · 0.95

Tested by

no test coverage detected