use of lucee.runtime.util.QueryStackImpl in project Lucee by lucee.
the class CFTag method doInclude.
void doInclude() throws PageException {
Variables var = pageContext.variablesScope();
pageContext.setVariablesScope(ctVariablesScope);
QueryStack cs = null;
Undefined undefined = pageContext.undefinedScope();
int oldMode = undefined.setMode(Undefined.MODE_NO_LOCAL_AND_ARGUMENTS);
if (oldMode != Undefined.MODE_NO_LOCAL_AND_ARGUMENTS)
callerScope.setScope(var, pageContext.localScope(), pageContext.argumentsScope(), true);
else
callerScope.setScope(var, null, null, false);
if (pageContext.getConfig().allowImplicidQueryCall()) {
cs = undefined.getQueryStack();
undefined.setQueryStack(new QueryStackImpl());
}
try {
pageContext.doInclude(new PageSource[] { source.getPageSource() }, false);
} catch (Throwable t) {
ExceptionUtil.rethrowIfNecessary(t);
throw Caster.toPageException(t);
} finally {
undefined.setMode(oldMode);
// varScopeData=variablesScope.getMap();
pageContext.setVariablesScope(var);
if (pageContext.getConfig().allowImplicidQueryCall()) {
undefined.setQueryStack(cs);
}
}
}
Aggregations