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

Method addSection

src/code-gen/context.ts:68–71  ·  view source on GitHub ↗
(title: string, code: ArrayJoinInput<string>[])

Source from the content-addressed store, hash-verified

66 }
67
68 addSection(title: string, code: ArrayJoinInput<string>[]) {
69 this.code.push('', ...toCommentSeparator(title))
70 this.code.push(...code)
71 }
72
73 /**
74 * Add a constant and get the reference to it

Callers 1

addFunctionsMethod · 0.95

Calls 1

toCommentSeparatorFunction · 0.90

Tested by

no test coverage detected