private XsltCompileContext GetValueOfContext() { if (_valueOfContext == null) { _valueOfContext = new XsltCompileContext(); } return(_valueOfContext); }
private XsltCompileContext GetMatchesContext() { if (_matchesContext == null) { _matchesContext = new XsltCompileContext(); } return(_matchesContext); }
internal Query GetValueQuery(int key, XsltCompileContext?context) { Debug.Assert(key != Compiler.InvalidQueryKey); TheQuery theQuery = _queryStore[key]; theQuery.CompiledQuery.CheckErrors(); Query expr = _queryList[key]; if (context == null) { context = new XsltCompileContext(theQuery._ScopeManager, this); } else { context.Reinitialize(theQuery._ScopeManager, this); } expr.SetXsltContext(context); return(expr); }