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

Method compile

basex-core/src/main/java/org/basex/query/expr/If.java:56–65  ·  view source on GitHub ↗
(final CompileContext cc)

Source from the content-addressed store, hash-verified

54 }
55
56 @Override
57 public Expr compile(final CompileContext cc) throws QueryException {
58 cond = cond.compile(cc);
59
60 final int el = exprs.length;
61 for(int e = 0; e < el; e++) {
62 exprs[e] = cc.compileOrError(exprs[e], false);
63 }
64 return optimize(cc);
65 }
66
67 @Override
68 public Expr optimize(final CompileContext cc) throws QueryException {

Callers

nothing calls this directly

Calls 3

optimizeMethod · 0.95
compileOrErrorMethod · 0.80
compileMethod · 0.65

Tested by

no test coverage detected