public Operand build(Variable result, Node node) { if (node == null) return null; if (hasListener()) manager.getIRScopeListener().startBuildOperand(node, scope); Operand operand = buildOperand(result, node); if (hasListener()) manager.getIRScopeListener().endBuildOperand(node, scope, operand); return operand; }
public Operand build(Variable result, Node node) { if (node == null) return null; if (hasListener()) manager.getIRScopeListener().startBuildOperand(node, scope); Operand operand = buildOperand(result, node); if (hasListener()) manager.getIRScopeListener().endBuildOperand(node, scope, operand); return operand; }
public Operand build(Node node, IRScope s) { if (node == null) return null; if (s == null) { System.out.println("Got a null scope!"); throw new NotCompilableException("Unknown node encountered in builder: " + node); } if (hasListener()) { IRScopeListener listener = manager.getIRScopeListener(); listener.startBuildOperand(node, s); } Operand operand = buildOperand(node, s); if (hasListener()) { IRScopeListener listener = manager.getIRScopeListener(); listener.endBuildOperand(node, s, operand); } return operand; }
public Operand build(Node node, IRScope s) { if (node == null) return null; if (s == null) { System.out.println("Got a null scope!"); throw new NotCompilableException("Unknown node encountered in builder: " + node); } if (hasListener()) { IRScopeListener listener = manager.getIRScopeListener(); listener.startBuildOperand(node, s); } Operand operand = buildOperand(node, s); if (hasListener()) { IRScopeListener listener = manager.getIRScopeListener(); listener.endBuildOperand(node, s, operand); } return operand; }