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

Function generateFileHeader

src/code-gen/context.ts:27–33  ·  view source on GitHub ↗
(withNotice?: boolean, unsafeWarning?: boolean, imports?: string[])

Source from the content-addressed store, hash-verified

25];
26
27export const generateFileHeader = (withNotice?: boolean, unsafeWarning?: boolean, imports?: string[]) => [
28 ...DefaultFileHeader,
29 '',
30 ...(imports ? [...imports, ''] : []),
31 '',
32 ...(withNotice ? [...generateNotice(unsafeWarning), ''] : []),
33]
34
35export class FileContext {
36 constants: string[] = [];

Callers 2

cli.tsFile · 0.90
generateSolFileFunction · 0.90

Calls 1

generateNoticeFunction · 0.90

Tested by

no test coverage detected