コード例 #1
0
 private XsltCompileContext GetValueOfContext()
 {
     if (_valueOfContext == null)
     {
         _valueOfContext = new XsltCompileContext();
     }
     return(_valueOfContext);
 }
コード例 #2
0
 private XsltCompileContext GetMatchesContext()
 {
     if (_matchesContext == null)
     {
         _matchesContext = new XsltCompileContext();
     }
     return(_matchesContext);
 }
コード例 #3
0
        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);
        }