MCPcopy Create free account
hub / github.com/BaseXdb/basex / inline

Method inline

basex-core/src/main/java/org/basex/query/expr/If.java:191–200  ·  view source on GitHub ↗
(final InlineContext ic)

Source from the content-addressed store, hash-verified

189 }
190
191 @Override
192 public Expr inline(final InlineContext ic) throws QueryException {
193 boolean changed = ic.inline(exprs, true);
194 final Expr inlined = cond.inline(ic);
195 if(inlined != null) {
196 changed = true;
197 cond = inlined;
198 }
199 return changed ? optimize(ic.cc) : null;
200 }
201
202 @Override
203 public If copy(final CompileContext cc, final IntObjectMap<Var> vm) {

Callers

nothing calls this directly

Calls 2

optimizeMethod · 0.95
inlineMethod · 0.65

Tested by

no test coverage detected