MCPcopy Index your code
hub / github.com/processing/p5.js / constructTypeFromIDs

Function constructTypeFromIDs

src/strands/ir_builders.js:281–291  ·  view source on GitHub ↗
(strandsContext, typeInfo, strandsNodesArray)

Source from the content-addressed store, hash-verified

279}
280
281export function constructTypeFromIDs(strandsContext, typeInfo, strandsNodesArray) {
282 const nodeData = DAG.createNodeData({
283 nodeType: NodeType.OPERATION,
284 opCode: OpCode.Nary.CONSTRUCTOR,
285 dimension: typeInfo.dimension,
286 baseType: typeInfo.baseType,
287 dependsOn: strandsNodesArray
288 });
289 const id = DAG.getOrCreateNode(strandsContext.dag, nodeData);
290 return id;
291}
292
293export function primitiveConstructorNode(strandsContext, typeInfo, dependsOn) {
294 const cfg = strandsContext.cfg;

Callers 3

primitiveConstructorNodeFunction · 0.85
structConstructorNodeFunction · 0.85
functionCallNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected