MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / copyFnDef

Function copyFnDef

src/code-gen/test/external.ts:4–8  ·  view source on GitHub ↗
(fn: CodeGenFunction)

Source from the content-addressed store, hash-verified

2import { generateFunctionCode, generateInternalLibraryCall } from "../codegen-helpers";
3
4const copyFnDef = (fn: CodeGenFunction) => ({
5 ...fn,
6 inputs: [...fn.inputs.map(i => ({ ...i }))],
7 outputs: [...fn.outputs.map(i => ({ ...i }))],
8})
9
10function generateExternalFunction(fn: CodeGenFunction, structStorageName: string, libraryName: string) {
11 // const functionName = `test${fn.name.toPascalCase()}`;

Callers 1

generateExternalFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected