(final QueryContext qc, final InputInfo ii)
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | public Item item(final QueryContext qc, final InputInfo ii) throws QueryException { |
| 36 | final Iter iter = arg(0).unwrappedIter(qc); |
| 37 | for(Item item; (item = qc.next(iter)) != null;) { |
| 38 | if(!(item instanceof final XNode node)) throw UPTRGDELEMPT_X.get(info, item); |
| 39 | // nodes without parents are ignored |
| 40 | if(node.parent() == null) continue; |
| 41 | final Updates updates = qc.updates(); |
| 42 | final DBNode dbnode = updates.determineDataRef(node, qc); |
| 43 | checkWrite(dbnode, qc); |
| 44 | updates.add(new DeleteNode(dbnode.pre(), dbnode.data(), info), qc); |
| 45 | } |
| 46 | return Empty.VALUE; |
| 47 | } |
| 48 | |
| 49 | @Override |
| 50 | public Expr copy(final CompileContext cc, final IntObjectMap<Var> vm) { |
nothing calls this directly
no test coverage detected