// Token: 0x060020E8 RID: 8424 RVA: 0x00096FF8 File Offset: 0x000951F8
        public void WriteEndElement()
        {
            this.VerifyEndTagState(BamlRecordType.ElementStart, BamlRecordType.ElementEnd);
            this.ProcessMarkupExtensionNodes();
            int lineNumber   = 0;
            int linePosition = 0;
            int depth        = this._depth - 1;

            this._depth = depth;
            XamlElementEndNode xamlElementEndNode = new XamlElementEndNode(lineNumber, linePosition, depth);

            this._bamlRecordWriter.WriteElementEnd(xamlElementEndNode);
            this._parserContext.PopScope();
        }
Пример #2
0
 /// <summary>
 /// Write the end of element record.
 /// </summary>
 /// <remarks>
 /// An element end marks the ending of an object that exists
 /// in a tree structure.  This may the contents of a complex property,
 /// or an element in the logical tree.
 /// </remarks>
 public void WriteEndElement()
 {
     VerifyEndTagState(BamlRecordType.ElementStart, 
                       BamlRecordType.ElementEnd);
     ProcessMarkupExtensionNodes();
     
     XamlElementEndNode node = new XamlElementEndNode(
                                        0,
                                        0,
                                        --_depth);
     _bamlRecordWriter.WriteElementEnd(node);
     _parserContext.PopScope();
 }