private static Operation astToSetValue(ASTVariable node) throws SyntaxException { int count = node.jjtGetNumChildren(); Operation[] ops = new Operation[count]; // Convert each of the children to a DML block and ensure that all of // the contained operations can appear in a restricted context. for (int i = 0; i < count; i++) { ops[i] = astToDml((ASTOperation) node.jjtGetChild(i), true); ops[i].checkRestrictedContext(); } return SetValue.getInstance(node.getSourceRange(), node.getName(), ops); }