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

Method inline

basex-core/src/main/java/org/basex/query/func/Closure.java:265–280  ·  view source on GitHub ↗
(final InlineContext ic)

Source from the content-addressed store, hash-verified

263 }
264
265 @Override
266 public Expr inline(final InlineContext ic) throws QueryException {
267 boolean changed = false;
268 for(final Entry<Var, Expr> entry : global.entrySet()) {
269 final Expr inlined = entry.getValue().inline(ic);
270 if(inlined != null) {
271 changed = true;
272 entry.setValue(inlined);
273 }
274 }
275 if(!changed) return null;
276
277 // invalidate cached flags, optimize closure
278 map.clear();
279 return optimize(ic.cc);
280 }
281
282 @Override
283 public Expr copy(final CompileContext cc, final IntObjectMap<Var> vm) {

Callers

nothing calls this directly

Calls 12

optimizeMethod · 0.95
getKeyMethod · 0.80
inlineMethod · 0.65
infoMethod · 0.65
addMethod · 0.65
getValueMethod · 0.45
setValueMethod · 0.45
clearMethod · 0.45
inlineableMethod · 0.45
hasMethod · 0.45
copyMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected