MCPcopy
hub / github.com/loggerhead/json4u / newNode

Function newNode

src/lib/table/createNode.ts:240–245  ·  view source on GitHub ↗
(ctx: CreateContext, type: TableNodeType, id?: string)

Source from the content-addressed store, hash-verified

238}
239
240function newNode(ctx: CreateContext, type: TableNodeType, id?: string) {
241 return new TableNode(type)
242 .setRow(ctx.row)
243 .setLevel(ctx.level)
244 .setId(id || "");
245}

Callers 3

createNodeFunction · 0.85
createArrayNodeFunction · 0.85
createObjectNodeFunction · 0.85

Calls 3

setIdMethod · 0.80
setLevelMethod · 0.80
setRowMethod · 0.80

Tested by

no test coverage detected