2 instantiations of XmlAttributeWithLocation
Microsoft.Build (2)
ElementLocation\XmlDocumentWithLocation.cs (2)
225return new XmlAttributeWithLocation(prefix, localName, namespaceURI, this, _reader.LineNumber, _reader.LinePosition); 229return new XmlAttributeWithLocation(prefix, localName, namespaceURI, this);
27 references to XmlAttributeWithLocation
Microsoft.Build (27)
Construction\ProjectRootElement.cs (1)
1783internal ProjectMetadataElement CreateMetadataElement(XmlAttributeWithLocation attribute)
Construction\ProjectTargetElement.cs (1)
270XmlAttributeWithLocation returnsAttribute = ProjectXmlUtilities.SetOrRemoveAttribute(
Construction\ProjectTaskElement.cs (1)
446foreach (XmlAttributeWithLocation attribute in XmlElement.Attributes)
ElementLocation\XmlElementWithLocation.cs (3)
118public XmlAttributeWithLocation GetAttributeWithLocation(string name) 127return (XmlAttributeWithLocation)attribute; 153XmlAttributeWithLocation attributeWithLocation = GetAttributeWithLocation(name);
Evaluation\ProjectParser.cs (9)
290XmlAttributeWithLocation errorAttribute = remove.Length > 0 ? (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.remove] : (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.update]; 298ProjectXmlUtilities.VerifyThrowProjectInvalidAttribute(exclude.Length == 0 || include.Length > 0, (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.exclude]); 314foreach (XmlAttributeWithLocation attribute in element.Attributes) 653foreach (XmlAttributeWithLocation attribute in element.Attributes) 687XmlAttributeWithLocation itemNameAttribute = element.GetAttributeWithLocation(XMakeAttributes.itemName); 688XmlAttributeWithLocation propertyNameAttribute = element.GetAttributeWithLocation(XMakeAttributes.propertyName); 734foreach (XmlAttributeWithLocation attribute in element.Attributes)
Xml\ProjectXmlUtilities.cs (12)
135internal static void VerifyThrowProjectAttributeEitherMissingOrNotEmpty(XmlElementWithLocation xmlElement, XmlAttributeWithLocation attribute, string attributeName) 153foreach (XmlAttributeWithLocation attribute in element.Attributes) 163internal static void VerifyThrowProjectInvalidAttribute(bool condition, XmlAttributeWithLocation attribute) 185foreach (XmlAttributeWithLocation attribute in element.Attributes) 194internal static void ThrowProjectInvalidAttribute(XmlAttributeWithLocation attribute) 204internal static XmlAttributeWithLocation SetOrRemoveAttribute(XmlElementWithLocation element, string name, string value) 214internal static XmlAttributeWithLocation SetOrRemoveAttribute(XmlElementWithLocation element, string name, string value, bool allowSettingEmptyAttributes) 226XmlAttributeWithLocation attribute = (XmlAttributeWithLocation)element.Attributes[name]; 235internal static string GetAttributeValue(XmlAttributeWithLocation attribute, bool returnNullForNonexistentAttributes) 263XmlAttributeWithLocation attribute = (XmlAttributeWithLocation)element.GetAttributeNode(attributeName);