MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / makeNode

Method makeNode

contributed/jsonparser/jsonparser.js:189–191  ·  view source on GitHub ↗
(nodeType, prev = undefined)

Source from the content-addressed store, hash-verified

187
188 // Creates a new Node with the specified type and previous node.
189 makeNode(nodeType, prev = undefined) {
190 return new Node({ type: nodeType, prev });
191 }
192
193 /*
194 // Uncomment this helper method for trace messages when needed.

Callers 4

constructorMethod · 0.95
pushMethod · 0.95
pushMethod · 0.45
pushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected