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

Function recordInBasicBlock

src/strands/ir_cfg.js:53–62  ·  view source on GitHub ↗
(graph, blockID, nodeID)

Source from the content-addressed store, hash-verified

51}
52
53export function recordInBasicBlock(graph, blockID, nodeID) {
54 if (nodeID === undefined) {
55 FES.internalError('undefined nodeID in `recordInBasicBlock()`');
56 }
57 if (blockID === undefined) {
58 FES.internalError('undefined blockID in `recordInBasicBlock()');
59 }
60 graph.blockInstructions[blockID] = graph.blockInstructions[blockID] || [];
61 graph.blockInstructions[blockID].push(nodeID);
62}
63
64export function getBlockDataFromID(graph, id) {
65 return {

Callers 2

bridgeMethod · 0.90
bridgeSwizzleMethod · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected