use of org.ballerinalang.util.codegen.ConnectorInfo in project ballerina by ballerina-lang.
the class CPU method createNewConnector.
private static void createNewConnector(WorkerExecutionContext ctx, int[] operands, WorkerData sf) {
int cpIndex = operands[0];
int i = operands[1];
StructureRefCPEntry structureRefCPEntry = (StructureRefCPEntry) ctx.constPool[cpIndex];
ConnectorInfo connectorInfo = (ConnectorInfo) structureRefCPEntry.getStructureTypeInfo();
BConnector bConnector = new BConnector(connectorInfo.getType());
sf.refRegs[i] = bConnector;
}
Aggregations