10 instantiations of XmlDocumentWithLocation
Microsoft.Build (3)
Construction\ProjectRootElement.cs (3)
191var document = new XmlDocumentWithLocation(); 2057var document = new XmlDocumentWithLocation(loadAsReadOnly ? true : (bool?)null) 2107var document = new XmlDocumentWithLocation { PreserveWhitespace = preserveFormatting };
Microsoft.Build.Engine.UnitTests (7)
Construction\ElementLocation_Tests.cs (5)
352var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 367var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 384var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 401var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 424var doc = new XmlDocumentWithLocation(loadAsReadOnly: readOnly);
Definition\ToolsVersion_Tests.cs (1)
986XmlDocumentWithLocation xmlDocument = new XmlDocumentWithLocation();
Utilities_Tests.cs (1)
327XmlDocumentWithLocation xmldoc = new XmlDocumentWithLocation(loadAsReadOnly);
47 references to XmlDocumentWithLocation
Microsoft.Build (35)
Construction\ProjectElement.cs (2)
329internal XmlDocumentWithLocation XmlDocument 334return (XmlDocumentWithLocation)XmlElement?.OwnerDocument;
Construction\ProjectRootElement.cs (17)
174XmlDocumentWithLocation document = LoadDocument(xmlReader, preserveFormatting); 191var document = new XmlDocumentWithLocation(); 226XmlDocumentWithLocation document = LoadDocument(path, preserveFormatting, projectRootElementCache.LoadProjectsReadOnly); 239private ProjectRootElement(XmlDocumentWithLocation document, ProjectRootElementCacheBase projectRootElementCache) 258private ProjectRootElement(XmlDocumentWithLocation document) 1645XmlDocumentWithLocation DocumentProducer(bool shouldPreserveFormatting) => LoadDocument(path, shouldPreserveFormatting, ProjectRootElementCache.LoadProjectsReadOnly); 1676XmlDocumentWithLocation DocumentProducer(bool shouldPreserveFormatting) 1678var document = LoadDocument(reader, shouldPreserveFormatting); 1688private void ReloadFrom(Func<bool, XmlDocumentWithLocation> documentProducer, bool throwIfUnsavedChanges, bool? preserveFormatting) 1692var oldDocument = XmlDocument; 1693XmlDocumentWithLocation newDocument = documentProducer(preserveFormatting ?? PreserveFormatting); 1706private static void ThrowIfDocumentHasParsingErrors(XmlDocumentWithLocation document) 1753internal static ProjectRootElement Open(XmlDocumentWithLocation document) 2053private XmlDocumentWithLocation LoadDocument(string fullPath, bool preserveFormatting, bool loadAsReadOnly) 2057var document = new XmlDocumentWithLocation(loadAsReadOnly ? true : (bool?)null) 2105private static XmlDocumentWithLocation LoadDocument(XmlReader reader, bool preserveFormatting) 2107var document = new XmlDocumentWithLocation { PreserveWhitespace = preserveFormatting };
Definition\Toolset.cs (2)
36internal delegate XmlDocumentWithLocation LoadXmlFromPath(string path); 1067XmlDocumentWithLocation defaultTasks = _loadXmlFromPath(defaultTasksFile);
ElementLocation\XmlAttributeWithLocation.cs (4)
36XmlDocumentWithLocation documentWithLocation = (XmlDocumentWithLocation)document; 76XmlDocumentWithLocation ownerDocumentWithLocation = (XmlDocumentWithLocation)OwnerDocument;
ElementLocation\XmlElementWithLocation.cs (6)
32public XmlElementWithLocation(string prefix, string localName, string namespaceURI, XmlDocumentWithLocation document) 40public XmlElementWithLocation(string prefix, string localName, string namespaceURI, XmlDocumentWithLocation document, int lineNumber, int columnNumber) 47XmlDocumentWithLocation documentWithLocation = (XmlDocumentWithLocation)document; 96XmlDocumentWithLocation ownerDocumentWithLocation = (XmlDocumentWithLocation)OwnerDocument;
Evaluation\ProjectParser.cs (3)
86private readonly XmlDocumentWithLocation _document; 97private ProjectParser(XmlDocumentWithLocation document, ProjectRootElement project) 114internal static void Parse(XmlDocumentWithLocation document, ProjectRootElement projectRootElement)
XmlUtilities.cs (1)
36(XmlElementWithLocation)((XmlDocumentWithLocation)oldElement.OwnerDocument).CreateElement(newElementName, xmlNamespace ?? string.Empty, oldElement.Location);
Microsoft.Build.Engine.UnitTests (12)
Construction\ElementLocation_Tests.cs (5)
352var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 367var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 384var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 401var doc = new XmlDocumentWithLocation(loadAsReadOnly: true); 424var doc = new XmlDocumentWithLocation(loadAsReadOnly: readOnly);
Construction\ProjectRootElement_Tests.cs (2)
71XmlDocumentWithLocation.ClearReadOnlyFlags_UnitTestsOnly(); 102XmlDocumentWithLocation.ClearReadOnlyFlags_UnitTestsOnly();
Definition\ToolsVersion_Tests.cs (2)
983private XmlDocumentWithLocation loadXmlFromPath(string path) 986XmlDocumentWithLocation xmlDocument = new XmlDocumentWithLocation();
Utilities_Tests.cs (3)
15using XmlDocumentWithLocation = Microsoft.Build.Construction.XmlDocumentWithLocation; 76XmlDocumentWithLocation.ClearReadOnlyFlags_UnitTestsOnly(); 327XmlDocumentWithLocation xmldoc = new XmlDocumentWithLocation(loadAsReadOnly);