(strandsContext, typeInfo, strandsNodesArray)
| 279 | } |
| 280 | |
| 281 | export 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 | |
| 293 | export function primitiveConstructorNode(strandsContext, typeInfo, dependsOn) { |
| 294 | const cfg = strandsContext.cfg; |
no outgoing calls
no test coverage detected