MCPcopy Create free account
hub / github.com/Snapchat/Valdi / openSourceFile

Method openSourceFile

compiler/companion/src/project/Project.ts:72–74  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

70 }
71
72 openSourceFile(path: string): ts.SourceFile {
73 return this.sourceFileManager.getOrCreateSourceFile(path, this.compilerOptions.target ?? ts.ScriptTarget.Latest);
74 }
75
76 getOpenedSourceFile(path: string): ts.SourceFile | undefined {
77 return this.sourceFileManager.getSourceFile(path);

Callers 4

createSourceFileMethod · 0.95
addSourceFileAtPathMethod · 0.80
doOpenFileMethod · 0.80
Project.spec.tsFile · 0.80

Calls 1

getOrCreateSourceFileMethod · 0.80

Tested by

no test coverage detected