Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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);
        }
Ejemplo n.º 4
0
 protected XmlContainerReference(XmlContainerReference parent, IReadableSelectableTextBuffer textBuffer, SourceContext sourceContext, bool beginTracking)
     : base(parent, textBuffer, sourceContext, beginTracking)
 {
 }
Ejemplo 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;
 }
Ejemplo n.º 6
0
 protected XamlSourceContext(XmlContainerReference parent, SourceContext sourceContext)
     : this(parent, parent.TextBuffer, sourceContext, true)
 {
 }
Ejemplo n.º 7
0
 protected XamlSourceContext(XmlContainerReference parent)
 {
     this.parent = parent;
 }
Ejemplo 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)
 {
 }
Ejemplo n.º 9
0
 public UnprocessedNodeReference(XmlContainerReference parent, SourceContext context)
     : base(parent, context)
 {
 }
Ejemplo n.º 10
0
 public UnprocessedNodeReference(XmlContainerReference parent)
     : base(parent)
 {
 }