System.Xml.Xsl.XsltOld.TextAction.CompileContent C# (CSharp) Method

CompileContent() private method

private CompileContent ( Compiler compiler ) : void
compiler Compiler
return void
        private void CompileContent(Compiler compiler) {
            if (compiler.Recurse()) {
                NavigatorInput input = compiler.Input;

                this.text = string.Empty;

                do {
                    switch (input.NodeType) {
                    case XPathNodeType.Text:
                    case XPathNodeType.Whitespace:
                    case XPathNodeType.SignificantWhitespace:
                        this.text += input.Value;
                        break;
                    case XPathNodeType.Comment:
                    case XPathNodeType.ProcessingInstruction:
                        break;
                    default:
                        throw compiler.UnexpectedKeyword();
                    }
                } while(compiler.Advance());
                compiler.ToParent();
            }
        }