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; }
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; }
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); }
protected XmlContainerReference(XmlContainerReference parent, IReadableSelectableTextBuffer textBuffer, SourceContext sourceContext, bool beginTracking) : base(parent, textBuffer, sourceContext, beginTracking) { }
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; }
protected XamlSourceContext(XmlContainerReference parent, SourceContext sourceContext) : this(parent, parent.TextBuffer, sourceContext, true) { }
protected XamlSourceContext(XmlContainerReference parent) { this.parent = parent; }
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) { }
public UnprocessedNodeReference(XmlContainerReference parent) : base(parent) { }