10 instantiations of XmlDocumentWithLocation
Microsoft.Build (3)
Construction\ProjectRootElement.cs (3)
207
var document = new
XmlDocumentWithLocation
();
2092
var document = new
XmlDocumentWithLocation
(loadAsReadOnly ? true : (bool?)null)
2142
var document = new
XmlDocumentWithLocation
{ PreserveWhitespace = preserveFormatting };
Microsoft.Build.Engine.UnitTests (7)
Construction\ElementLocation_Tests.cs (5)
352
var doc = new
XmlDocumentWithLocation
(loadAsReadOnly: true);
367
var doc = new
XmlDocumentWithLocation
(loadAsReadOnly: true);
384
var doc = new
XmlDocumentWithLocation
(loadAsReadOnly: true);
401
var doc = new
XmlDocumentWithLocation
(loadAsReadOnly: true);
424
var doc = new
XmlDocumentWithLocation
(loadAsReadOnly: readOnly);
Definition\ToolsVersion_Tests.cs (1)
984
XmlDocumentWithLocation xmlDocument = new
XmlDocumentWithLocation
();
Utilities_Tests.cs (1)
327
XmlDocumentWithLocation xmldoc = new
XmlDocumentWithLocation
(loadAsReadOnly);
47 references to XmlDocumentWithLocation
Microsoft.Build (35)
Construction\ProjectElement.cs (2)
329
internal
XmlDocumentWithLocation
XmlDocument
334
return (
XmlDocumentWithLocation
)XmlElement?.OwnerDocument;
Construction\ProjectRootElement.cs (17)
182
XmlDocumentWithLocation
document = LoadDocument(xmlReader, preserveFormatting);
207
var
document = new XmlDocumentWithLocation();
242
XmlDocumentWithLocation
document = LoadDocument(path, preserveFormatting, projectRootElementCache.LoadProjectsReadOnly);
255
private ProjectRootElement(
XmlDocumentWithLocation
document, ProjectRootElementCacheBase projectRootElementCache)
274
private ProjectRootElement(
XmlDocumentWithLocation
document)
1675
XmlDocumentWithLocation
DocumentProducer(bool shouldPreserveFormatting) => LoadDocument(path, shouldPreserveFormatting, ProjectRootElementCache.LoadProjectsReadOnly);
1706
XmlDocumentWithLocation
DocumentProducer(bool shouldPreserveFormatting)
1708
var
document = LoadDocument(reader, shouldPreserveFormatting);
1718
private void ReloadFrom(Func<bool,
XmlDocumentWithLocation
> documentProducer, bool throwIfUnsavedChanges, bool? preserveFormatting)
1722
var
oldDocument = XmlDocument;
1723
XmlDocumentWithLocation
newDocument = documentProducer(preserveFormatting ?? PreserveFormatting);
1736
private static void ThrowIfDocumentHasParsingErrors(
XmlDocumentWithLocation
document)
1783
internal static ProjectRootElement Open(
XmlDocumentWithLocation
document)
2088
private
XmlDocumentWithLocation
LoadDocument(string fullPath, bool preserveFormatting, bool loadAsReadOnly)
2092
var
document = new XmlDocumentWithLocation(loadAsReadOnly ? true : (bool?)null)
2140
private static
XmlDocumentWithLocation
LoadDocument(XmlReader reader, bool preserveFormatting)
2142
var
document = new XmlDocumentWithLocation { PreserveWhitespace = preserveFormatting };
Definition\Toolset.cs (2)
37
internal delegate
XmlDocumentWithLocation
LoadXmlFromPath(string path);
1077
XmlDocumentWithLocation
defaultTasks = _loadXmlFromPath(defaultTasksFile);
ElementLocation\XmlAttributeWithLocation.cs (4)
36
XmlDocumentWithLocation
documentWithLocation = (
XmlDocumentWithLocation
)document;
76
XmlDocumentWithLocation
ownerDocumentWithLocation = (
XmlDocumentWithLocation
)OwnerDocument;
ElementLocation\XmlElementWithLocation.cs (6)
32
public XmlElementWithLocation(string prefix, string localName, string namespaceURI,
XmlDocumentWithLocation
document)
40
public XmlElementWithLocation(string prefix, string localName, string namespaceURI,
XmlDocumentWithLocation
document, int lineNumber, int columnNumber)
47
XmlDocumentWithLocation
documentWithLocation = (
XmlDocumentWithLocation
)document;
96
XmlDocumentWithLocation
ownerDocumentWithLocation = (
XmlDocumentWithLocation
)OwnerDocument;
Evaluation\ProjectParser.cs (3)
86
private readonly
XmlDocumentWithLocation
_document;
97
private ProjectParser(
XmlDocumentWithLocation
document, ProjectRootElement project)
114
internal 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)
352
var
doc = new XmlDocumentWithLocation(loadAsReadOnly: true);
367
var
doc = new XmlDocumentWithLocation(loadAsReadOnly: true);
384
var
doc = new XmlDocumentWithLocation(loadAsReadOnly: true);
401
var
doc = new XmlDocumentWithLocation(loadAsReadOnly: true);
424
var
doc = new XmlDocumentWithLocation(loadAsReadOnly: readOnly);
Construction\ProjectRootElement_Tests.cs (2)
72
XmlDocumentWithLocation
.ClearReadOnlyFlags_UnitTestsOnly();
103
XmlDocumentWithLocation
.ClearReadOnlyFlags_UnitTestsOnly();
Definition\ToolsVersion_Tests.cs (2)
981
private
XmlDocumentWithLocation
loadXmlFromPath(string path)
984
XmlDocumentWithLocation
xmlDocument = new XmlDocumentWithLocation();
Utilities_Tests.cs (3)
15
using XmlDocumentWithLocation = Microsoft.Build.Construction.
XmlDocumentWithLocation
;
76
XmlDocumentWithLocation
.ClearReadOnlyFlags_UnitTestsOnly();
327
XmlDocumentWithLocation
xmldoc = new XmlDocumentWithLocation(loadAsReadOnly);