Exemplo n.º 1
0
 internal XmlElementReference(XmlContainerReference parent, SourceContext sourceContext, SourceContext startTagContext, bool beginTracking)
     : base(parent, parent.TextBuffer, sourceContext, beginTracking)
 {
     if (beginTracking && startTagContext.EndCol > startTagContext.StartCol)
     {
         this.startTagRange = XamlSourceContext.ToTextRange(this.TextBuffer, startTagContext);
     }
     this.xmlSpace = parent.XmlSpace;
 }
Exemplo n.º 2
0
 protected XamlSourceContext(XmlContainerReference parent, IReadableSelectableTextBuffer textBuffer, SourceContext sourceContext, bool beginTracking)
 {
     this.parent = parent;
     if (!beginTracking)
     {
         return;
     }
     this.textRange = XamlSourceContext.ToTextRange(textBuffer, sourceContext);
     this.ordering  = sourceContext.StartCol;
 }
Exemplo n.º 3
0
        internal override void CloneCopy(XamlSourceContext other, bool keepOldRanges)
        {
            XmlContainerReference containerReference = (XmlContainerReference)other;

            if (this.ChildNodesToPreserveCount > 0)
            {
                foreach (XmlContainerReference.ChildNode childNode in this.ChildNodesToPreserve)
                {
                    containerReference.AddChildNode(childNode);
                }
            }
            base.CloneCopy(other, keepOldRanges);
        }
Exemplo n.º 4
0
 protected XmlContainerReference(XmlContainerReference parent, IReadableSelectableTextBuffer textBuffer, SourceContext sourceContext, bool beginTracking)
     : base(parent, textBuffer, sourceContext, beginTracking)
 {
 }
Exemplo n.º 5
0
 public ChildNode(XmlContainerReference.ChildType type, XmlContainerReference parent, Microsoft.Expression.DesignModel.Markup.Xml.Node node)
 {
     this.type          = type;
     this.sourceContext = (XamlSourceContext) new UnprocessedNodeReference(parent, node.SourceContext);
     this.text          = node.SourceContext.SourceText;
 }
Exemplo n.º 6
0
 protected XamlSourceContext(XmlContainerReference parent, SourceContext sourceContext)
     : this(parent, parent.TextBuffer, sourceContext, true)
 {
 }
Exemplo n.º 7
0
 protected XamlSourceContext(XmlContainerReference parent)
 {
     this.parent = parent;
 }
Exemplo n.º 8
0
 internal XmlElementReference(XmlContainerReference parent, XmlElement xmlElement, bool beginTracking)
     : this(parent, beginTracking ? xmlElement.SourceContext : new SourceContext(), !beginTracking || xmlElement.EndTagContext.EndCol <= xmlElement.EndTagContext.StartCol ? new SourceContext() : xmlElement.StartTagContext, beginTracking)
 {
 }
 public UnprocessedNodeReference(XmlContainerReference parent, SourceContext context)
     : base(parent, context)
 {
 }
Exemplo n.º 10
0
 public UnprocessedNodeReference(XmlContainerReference parent)
     : base(parent)
 {
 }