MCPcopy Create free account
hub / github.com/processing/p5.js / createLogicalNotNode

Method createLogicalNotNode

src/strands/strands_for.js:327–339  ·  view source on GitHub ↗
(conditionNode)

Source from the content-addressed store, hash-verified

325 }
326
327 createLogicalNotNode(conditionNode) {
328 const notOperationNode = DAG.createNodeData({
329 nodeType: NodeType.OPERATION,
330 opCode: OpCode.Unary.LOGICAL_NOT,
331 baseType: BaseType.BOOL,
332 dimension: 1,
333 dependsOn: [conditionNode.id],
334 phiBlocks: [],
335 usedBy: []
336 });
337 const notOperationID = DAG.getOrCreateNode(this.strandsContext.dag, notOperationNode);
338 return createStrandsNode(notOperationID, 1, this.strandsContext);
339 }
340
341 executeBodyCallback(cfg, branchBlock, bodyBlock, phiNode) {
342 CFG.pushBlock(cfg, bodyBlock);

Callers 1

buildUnboundedLoopMethod · 0.95

Calls 1

createStrandsNodeFunction · 0.90

Tested by

no test coverage detected