System.Xml.Xsl.XsltOld.Compiler.ToParent C# (CSharp) Method

ToParent() private method

private ToParent ( ) : bool
return bool
        internal bool ToParent()
        {
            Debug.Assert(Document != null);
            return Document.ToParent();
        }

Usage Example

Ejemplo n.º 1
0
        internal override void Compile(Compiler compiler)
        {
            CompileAttributes(compiler);
            CheckRequiredAttribute(compiler, _nameAvt, "name");

            _name  = PrecalculateAvt(ref _nameAvt);
            _nsUri = PrecalculateAvt(ref _nsAvt);

            // if both name and ns are not AVT we can calculate qname at compile time and will not need namespace manager anymore
            if (_nameAvt == null && _nsAvt == null)
            {
                if (_name != "xmlns")
                {
                    _qname = CreateElementQName(_name, _nsUri, compiler.CloneScopeManager());
                }
            }
            else
            {
                _manager = compiler.CloneScopeManager();
            }

            if (compiler.Recurse())
            {
                Debug.Assert(_empty == false);
                CompileTemplate(compiler);
                compiler.ToParent();
            }
            _empty = (this.containedActions == null);
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.Compiler::ToParent