System.Xml.Xsl.IlGen.XmlILNamespaceAnalyzer.Analyze C# (CSharp) Method

Analyze() public method

Perform scan.
public Analyze ( QilNode nd, bool defaultNmspInScope ) : void
nd QilNode
defaultNmspInScope bool
return void
        public void Analyze(QilNode nd, bool defaultNmspInScope) {
            this.addInScopeNmsp = false;
            this.cntNmsp = 0;

            // If xmlns="" is in-scope, push it onto the namespace stack
            if (defaultNmspInScope) {
                this.nsmgr.PushScope();
                this.nsmgr.AddNamespace(string.Empty, string.Empty);
                this.cntNmsp++;
            }

            AnalyzeContent(nd);

            if (defaultNmspInScope)
                this.nsmgr.PopScope();
        }