System.Xml.Xsl.Xslt.XsltLoader.LoadGlobalVariableOrParameter C# (CSharp) Method

LoadGlobalVariableOrParameter() private method

private LoadGlobalVariableOrParameter ( NsDecl stylesheetNsList, XslNodeType nodeType ) : void
stylesheetNsList NsDecl
nodeType XslNodeType
return void
        private void LoadGlobalVariableOrParameter(NsDecl stylesheetNsList, XslNodeType nodeType)
        {
            Debug.Assert(_curTemplate == null);
            Debug.Assert(_input.CanHaveApplyImports == false);
            VarPar var = XslVarPar();
            // Preserving namespaces to parse content later
            var.Namespaces = MergeNamespaces(var.Namespaces, stylesheetNsList);
            CheckError(!_curStylesheet.AddVarPar(var), /*[XT0630]*/SR.Xslt_DupGlobalVariable, var.Name.QualifiedName);
        }