MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / addExtraFile

Function addExtraFile

test/util.ts:192–196  ·  view source on GitHub ↗
(fileName: string, code: string)

Source from the content-addressed store, hash-verified

190
191 protected extraFiles: Record<string, string> = {};
192 public addExtraFile(fileName: string, code: string): this {
193 this.throwIfProgramExists("addExtraFile");
194 this.extraFiles[fileName] = normalizeSlashes(code);
195 return this;
196 }
197
198 private customTransformers?: ts.CustomTransformers;
199 public setCustomTransformers(customTransformers?: ts.CustomTransformers): this {

Callers

nothing calls this directly

Calls 1

normalizeSlashesFunction · 0.90

Tested by

no test coverage detected