2 writes to writer
illink (2)
Linker\DgmlDependencyRecorder.cs (2)
44
writer
= XmlWriter.Create (stream, settings);
105
writer
= null;
35 references to writer
illink (35)
Linker\DgmlDependencyRecorder.cs (35)
45
writer
.WriteStartDocument ();
46
writer
.WriteStartElement ("DirectedGraph", "http://schemas.microsoft.com/vs/2009/dgml");
51
Debug.Assert (
writer
!= null);
53
writer
.WriteStartElement ("Nodes");
56
writer
.WriteStartElement ("Node");
57
writer
.WriteAttributeString ("Id", pair.Value.ToString ());
58
writer
.WriteAttributeString ("Label", pair.Key);
59
writer
.WriteEndElement ();
62
writer
.WriteEndElement ();
64
writer
.WriteStartElement ("Links");
67
writer
.WriteStartElement ("Link");
68
writer
.WriteAttributeString ("Source", nodeList[tup.dependent].ToString ());
69
writer
.WriteAttributeString ("Target", nodeList[tup.dependee].ToString ());
70
writer
.WriteAttributeString ("Reason", tup.reason);
71
writer
.WriteEndElement ();
74
writer
.WriteEndElement ();
76
writer
.WriteStartElement ("Properties");
78
writer
.WriteStartElement ("Property");
79
writer
.WriteAttributeString ("Id", "Label");
80
writer
.WriteAttributeString ("Label", "Label");
81
writer
.WriteAttributeString ("DataType", "String");
82
writer
.WriteEndElement ();
84
writer
.WriteStartElement ("Property");
85
writer
.WriteAttributeString ("Id", "Reason");
86
writer
.WriteAttributeString ("Label", "Reason");
87
writer
.WriteAttributeString ("DataType", "String");
88
writer
.WriteEndElement ();
90
writer
.WriteEndElement ();
92
writer
.WriteEndElement ();
93
writer
.WriteEndDocument ();
95
writer
.Flush ();
100
if (
writer
== null)
103
writer
.Dispose ();
111
if (
writer
== null)
123
if (
writer
== null)