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

Method addSourceFileAtPath

compiler/companion/src/Workspace.ts:163–165  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

161 }
162
163 addSourceFileAtPath(fileName: string) {
164 this.project.openSourceFile(fileName);
165 }
166
167 async openFile(fileName: string): Promise<OpenFileResult> {
168 return new Promise((resolve, reject) => {

Callers 2

compileAsIRStringFunction · 0.95
compileAsCFunction · 0.95

Calls 1

openSourceFileMethod · 0.80

Tested by 2

compileAsIRStringFunction · 0.76
compileAsCFunction · 0.76