Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
compileAsIRString
Function · 0.95
compileAsC
Function · 0.95
Calls
1
openSourceFile
Method · 0.80
Tested by
2
compileAsIRString
Function · 0.76
compileAsC
Function · 0.76