10 instantiations of XmlDocumentWithLocation
Microsoft.Build (3)
Construction\ProjectRootElement.cs (3)
191
var document = new
XmlDocumentWithLocation
();
2057
var document = new
XmlDocumentWithLocation
(loadAsReadOnly ? true : (bool?)null)
2107
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)
986
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)
174
XmlDocumentWithLocation
document = LoadDocument(xmlReader, preserveFormatting);
191
var
document = new XmlDocumentWithLocation();
226
XmlDocumentWithLocation
document = LoadDocument(path, preserveFormatting, projectRootElementCache.LoadProjectsReadOnly);
239
private ProjectRootElement(
XmlDocumentWithLocation
document, ProjectRootElementCacheBase projectRootElementCache)
258
private ProjectRootElement(
XmlDocumentWithLocation
document)
1645
XmlDocumentWithLocation
DocumentProducer(bool shouldPreserveFormatting) => LoadDocument(path, shouldPreserveFormatting, ProjectRootElementCache.LoadProjectsReadOnly);
1676
XmlDocumentWithLocation
DocumentProducer(bool shouldPreserveFormatting)
1678
var
document = LoadDocument(reader, shouldPreserveFormatting);
1688
private void ReloadFrom(Func<bool,
XmlDocumentWithLocation
> documentProducer, bool throwIfUnsavedChanges, bool? preserveFormatting)
1692
var
oldDocument = XmlDocument;
1693
XmlDocumentWithLocation
newDocument = documentProducer(preserveFormatting ?? PreserveFormatting);
1706
private static void ThrowIfDocumentHasParsingErrors(
XmlDocumentWithLocation
document)
1753
internal static ProjectRootElement Open(
XmlDocumentWithLocation
document)
2053
private
XmlDocumentWithLocation
LoadDocument(string fullPath, bool preserveFormatting, bool loadAsReadOnly)
2057
var
document = new XmlDocumentWithLocation(loadAsReadOnly ? true : (bool?)null)
2105
private static
XmlDocumentWithLocation
LoadDocument(XmlReader reader, bool preserveFormatting)
2107
var
document = new XmlDocumentWithLocation { PreserveWhitespace = preserveFormatting };
Definition\Toolset.cs (2)
36
internal delegate
XmlDocumentWithLocation
LoadXmlFromPath(string path);
1067
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)
71
XmlDocumentWithLocation
.ClearReadOnlyFlags_UnitTestsOnly();
102
XmlDocumentWithLocation
.ClearReadOnlyFlags_UnitTestsOnly();
Definition\ToolsVersion_Tests.cs (2)
983
private
XmlDocumentWithLocation
loadXmlFromPath(string path)
986
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);