protected IReferenceImpl[] CreateReferencesInternal(IXmlAttributeValue value) {
     Logger.LogMessage("CreateReferencesInternal for {0}", value.GetText());
     IXmlValueToken valueToken = value.ToTreeNode().ValueToken;
     if (valueToken == null) {
         return null;
     }
     return new IReferenceImpl[] {new PropertyNameReference(this, valueToken, valueToken.UnquotedValueRange)};
 }
Ejemplo n.º 2
0
 private void ReplaceAttributeValue(IXmlAttribute attribute, IXmlAttributeValue newElement)
 {
     IXmlAttributeValueNode childNode = attribute.Value.ToTreeNode();
     ITreeNode parent = attribute.ToTreeNode();
     ((CompositeElement)parent).AddChildAfter(newElement.ToTreeNode(), childNode);
     ((CompositeElement)parent).DeleteChildRange(childNode, childNode);
 }