375 references to XamlNodeType
PresentationFramework (68)
System\Windows\FrameworkTemplate.cs (8)
1001
case System.Xaml.
XamlNodeType
.None:
1002
case System.Xaml.
XamlNodeType
.NamespaceDeclaration:
1004
case System.Xaml.
XamlNodeType
.StartObject:
1018
case System.Xaml.
XamlNodeType
.GetObject:
1031
case System.Xaml.
XamlNodeType
.StartMember:
1039
case System.Xaml.
XamlNodeType
.EndMember:
1047
case System.Xaml.
XamlNodeType
.EndObject:
1051
case System.Xaml.
XamlNodeType
.Value:
System\Windows\Markup\Baml2006\Baml2006Reader.cs (5)
164
_xamlNodesReader.NodeType !=
XamlNodeType
.EndObject)
173
override public
XamlNodeType
NodeType
2694
case
XamlNodeType
.StartObject:
2698
case
XamlNodeType
.EndObject:
2702
case
XamlNodeType
.StartMember:
System\Windows\Markup\RestrictiveXamlXmlReader.cs (7)
106
if ((NodeType == System.Xaml.
XamlNodeType
.StartObject && !IsAllowedType(Type.UnderlyingType)) ||
107
(NodeType == System.Xaml.
XamlNodeType
.StartMember && Member is XamlDirective directive && !IsAllowedDirective(directive)))
120
case System.Xaml.
XamlNodeType
.StartObject:
121
case System.Xaml.
XamlNodeType
.StartMember:
122
case System.Xaml.
XamlNodeType
.GetObject:
126
case System.Xaml.
XamlNodeType
.EndObject:
127
case System.Xaml.
XamlNodeType
.EndMember:
System\Windows\Markup\WpfXamlLoader.cs (11)
199
case System.Xaml.
XamlNodeType
.NamespaceDeclaration:
226
case System.Xaml.
XamlNodeType
.StartObject:
229
case System.Xaml.
XamlNodeType
.GetObject:
238
case System.Xaml.
XamlNodeType
.EndObject:
256
case System.Xaml.
XamlNodeType
.StartMember:
288
case System.Xaml.
XamlNodeType
.StartMember:
291
case System.Xaml.
XamlNodeType
.StartObject:
301
case System.Xaml.
XamlNodeType
.EndMember:
309
case System.Xaml.
XamlNodeType
.Value:
328
case System.Xaml.
XamlNodeType
.EndMember:
342
case System.Xaml.
XamlNodeType
.Value:
System\Windows\Markup\XamlReader.cs (4)
419
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartMember)
430
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.Value)
451
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.EndMember)
613
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.Value && _stack.CurrentFrame.Property == synchronousRecordProperty)
System\Windows\ResourceDictionary.cs (5)
1174
if (reader.NodeType == Xaml.
XamlNodeType
.StartObject && reader.Type == xamlTypeStaticResourceExtension)
1178
while (reader.NodeType == Xaml.
XamlNodeType
.StartMember &&
1185
if (reader.NodeType == Xaml.
XamlNodeType
.StartMember)
1189
if (reader.NodeType == Xaml.
XamlNodeType
.StartObject)
1195
else if (reader.NodeType == Xaml.
XamlNodeType
.Value)
System\Windows\TemplateContent.cs (28)
410
case System.Xaml.
XamlNodeType
.StartObject:
454
case System.Xaml.
XamlNodeType
.GetObject:
483
case System.Xaml.
XamlNodeType
.EndObject:
548
case System.Xaml.
XamlNodeType
.StartMember:
645
case System.Xaml.
XamlNodeType
.EndMember:
649
case System.Xaml.
XamlNodeType
.Value:
722
case System.Xaml.
XamlNodeType
.NamespaceDeclaration:
747
case System.Xaml.
XamlNodeType
.None:
755
Debug.Assert(xamlReader.NodeType == Xaml.
XamlNodeType
.StartObject);
766
case Xaml.
XamlNodeType
.StartObject:
767
case Xaml.
XamlNodeType
.GetObject:
770
case Xaml.
XamlNodeType
.EndObject:
801
Debug.Assert(xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartMember);
836
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.Value)
882
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartObject
883
|| xamlReader.NodeType == System.Xaml.
XamlNodeType
.NamespaceDeclaration)
886
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.NamespaceDeclaration)
889
while (xamlReader.NodeType == System.Xaml.
XamlNodeType
.NamespaceDeclaration)
896
Debug.Assert(xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartObject);
947
case System.Xaml.
XamlNodeType
.StartObject:
956
case System.Xaml.
XamlNodeType
.GetObject:
961
case System.Xaml.
XamlNodeType
.EndObject:
970
case System.Xaml.
XamlNodeType
.StartMember:
980
case System.Xaml.
XamlNodeType
.Value:
1010
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.GetObject)
1049
System.Xaml.
XamlNodeType
nodeType = reader.NodeType;
1050
if (nodeType == System.Xaml.
XamlNodeType
.StartMember)
1155
Debug.Assert(xamlReader.NodeType == System.Xaml.
XamlNodeType
.EndMember);
System.Xaml (307)
System\Xaml\InfosetObjects\XamlNodes.cs (32)
23
internal delegate void XamlNodeAddDelegate(
XamlNodeType
nodeType, object data);
33
XamlNodeType
_nodeType;
37
public
XamlNodeType
NodeType
42
public XamlNode(
XamlNodeType
nodeType)
47
case
XamlNodeType
.EndObject:
48
case
XamlNodeType
.EndMember:
49
case
XamlNodeType
.GetObject:
62
public XamlNode(
XamlNodeType
nodeType, object data)
67
case
XamlNodeType
.StartObject:
71
case
XamlNodeType
.StartMember:
75
case
XamlNodeType
.NamespaceDeclaration:
79
case
XamlNodeType
.Value:
83
case
XamlNodeType
.EndObject:
84
case
XamlNodeType
.EndMember:
85
case
XamlNodeType
.GetObject:
104
_nodeType =
XamlNodeType
.None;
111
_nodeType =
XamlNodeType
.None;
121
case
XamlNodeType
.StartObject:
125
case
XamlNodeType
.StartMember:
129
case
XamlNodeType
.Value:
133
case
XamlNodeType
.NamespaceDeclaration:
137
case
XamlNodeType
.None:
165
if (NodeType ==
XamlNodeType
.NamespaceDeclaration)
177
if (NodeType ==
XamlNodeType
.StartObject)
189
if (NodeType ==
XamlNodeType
.Value)
201
if (NodeType ==
XamlNodeType
.StartMember)
213
if (NodeType ==
XamlNodeType
.None)
225
if (NodeType ==
XamlNodeType
.None && _internalNodeType == InternalNodeType.EndOfStream)
237
if (NodeType ==
XamlNodeType
.None && _internalNodeType == InternalNodeType.EndOfAttributes)
249
if (NodeType ==
XamlNodeType
.None && _internalNodeType == InternalNodeType.LineInfo)
257
internal static bool IsEof_Helper(
XamlNodeType
nodeType, object data)
259
if (nodeType !=
XamlNodeType
.None)
System\Xaml\InfosetObjects\XamlXmlReader.cs (3)
246
if (_current.NodeType ==
XamlNodeType
.None)
267
} while (_current.NodeType ==
XamlNodeType
.None);
271
public override
XamlNodeType
NodeType
System\Xaml\Parser\MePullParser.cs (7)
461
var startObj = new XamlNode(
XamlNodeType
.StartObject, xamlType);
468
return new XamlNode(
XamlNodeType
.EndObject);
476
XamlNode startMember = new XamlNode(
XamlNodeType
.StartMember, member);
483
return new XamlNode(
XamlNodeType
.EndMember);
490
XamlNode startProperty = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.PositionalParameters);
502
return new XamlNode(
XamlNodeType
.EndMember);
508
XamlNode textNode = new XamlNode(
XamlNodeType
.Value, text);
System\Xaml\Parser\NodeStreamSorter.cs (38)
84
public
XamlNodeType
XamlNodeType { get; set; }
135
if (_current.NodeType ==
XamlNodeType
.StartObject)
183
case
XamlNodeType
.NamespaceDeclaration:
186
case
XamlNodeType
.StartObject:
192
case
XamlNodeType
.None:
215
XamlNode node = new XamlNode(
XamlNodeType
.NamespaceDeclaration, new NamespaceDeclaration(uriString, prefix));
244
var startProperty = new XamlNode(
XamlNodeType
.StartMember, xmlDirectiveProperty);
248
var textNode = new XamlNode(
XamlNodeType
.Value, textValue);
253
_buffer.Enqueue(new XamlNode(
XamlNodeType
.EndMember));
307
case
XamlNodeType
.StartObject:
311
case
XamlNodeType
.EndObject:
319
case
XamlNodeType
.None:
329
case
XamlNodeType
.StartMember:
339
case
XamlNodeType
.EndMember:
365
case
XamlNodeType
.StartMember:
376
case
XamlNodeType
.EndMember:
380
case
XamlNodeType
.EndObject:
484
case
XamlNodeType
.NamespaceDeclaration:
485
case
XamlNodeType
.EndMember:
486
case
XamlNodeType
.Value:
489
case
XamlNodeType
.GetObject:
490
case
XamlNodeType
.StartObject:
494
case
XamlNodeType
.EndObject:
498
case
XamlNodeType
.StartMember:
522
if (BackupTo(ctorDirectiveIdx,
XamlNodeType
.StartObject, depth, out startObjectIdx))
525
if (AdvanceTo(startObjectIdx,
XamlNodeType
.StartMember, depth, out firstMemberIdx))
561
Debug.Assert(_sortingInfoArray[start].XamlNodeType ==
XamlNodeType
.StartMember);
565
&& _sortingInfoArray[idx].XamlNodeType ==
XamlNodeType
.StartMember)
587
Debug.Assert(_sortingInfoArray[current].XamlNodeType ==
XamlNodeType
.StartMember);
594
if(!AdvanceTo(current,
XamlNodeType
.StartMember, depth, out end))
607
Debug.Assert(_sortingInfoArray[current].XamlNodeType ==
XamlNodeType
.StartMember);
614
if (!AdvanceTo(current,
XamlNodeType
.StartMember, depth, out end))
633
if (!AdvanceTo(current,
XamlNodeType
.StartMember, depth, out end))
635
if (AdvanceTo(current,
XamlNodeType
.EndObject, depth, out end))
672
private bool AdvanceTo(int start,
XamlNodeType
nodeType, int searchDepth, out int end)
676
XamlNodeType
currentNodeType = _sortingInfoArray[idx].XamlNodeType;
696
private bool BackupTo(int start,
XamlNodeType
nodeType, int searchDepth, out int end)
700
XamlNodeType
currentNodeType = _sortingInfoArray[idx].XamlNodeType;
System\Xaml\Parser\XamlPullParser.cs (18)
276
yield return new XamlNode(
XamlNodeType
.Value, string.Empty);
585
yield return new XamlNode(
XamlNodeType
.Value, trimmed);
681
yield return new XamlNode(
XamlNodeType
.Value, trimmed);
712
yield return new XamlNode(
XamlNodeType
.Value, trimmed);
772
XamlNode addNs = new XamlNode(
XamlNodeType
.NamespaceDeclaration, new NamespaceDeclaration(xamlNs, prefix));
782
XamlNode startObj = new XamlNode(
XamlNodeType
.StartObject, xamlType);
793
XamlNode endObj = new XamlNode(
XamlNodeType
.EndObject);
807
XamlNode startProperty = new XamlNode(
XamlNodeType
.StartMember, property);
820
XamlNode textNode = new XamlNode(
XamlNodeType
.Value, text.AttributeText);
823
yield return new XamlNode(
XamlNodeType
.EndMember);
842
var startMember = new XamlNode(
XamlNodeType
.StartMember, member);
851
return new XamlNode(
XamlNodeType
.EndMember);
861
var startProperty = new XamlNode(
XamlNodeType
.StartMember, property);
872
var startProperty = new XamlNode(
XamlNodeType
.StartMember, initProperty);
920
var startObj = new XamlNode(
XamlNodeType
.GetObject);
929
var startProperty = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items);
996
yield return new XamlNode(
XamlNodeType
.NamespaceDeclaration, nsDecl);
1002
yield return new XamlNode(
XamlNodeType
.Value, typeNameString);
System\Xaml\ReaderBaseDelegate.cs (1)
27
public override
XamlNodeType
NodeType
System\Xaml\ReaderDelegate.cs (2)
35
if (_currentNode.NodeType !=
XamlNodeType
.None)
48
} while (_currentNode.NodeType ==
XamlNodeType
.None);
System\Xaml\ReaderMultiIndexDelegate.cs (2)
49
if (_currentNode.NodeType !=
XamlNodeType
.None)
70
} while (_currentNode.NodeType ==
XamlNodeType
.None);
System\Xaml\WriterDelegate.cs (8)
31
_addDelegate(
XamlNodeType
.GetObject, null);
37
_addDelegate(
XamlNodeType
.StartObject, xamlType);
43
_addDelegate(
XamlNodeType
.EndObject, null);
49
_addDelegate(
XamlNodeType
.StartMember, member);
55
_addDelegate(
XamlNodeType
.EndMember, null);
61
_addDelegate(
XamlNodeType
.Value, value);
67
_addDelegate(
XamlNodeType
.NamespaceDeclaration, namespaceDeclaration);
76
_addDelegate(
XamlNodeType
.None, XamlNode.InternalNodeType.EndOfStream);
System\Xaml\XamlBackgroundReader.cs (3)
143
private void Add(
XamlNodeType
nodeType, object data)
149
if (nodeType !=
XamlNodeType
.None)
266
public override
XamlNodeType
NodeType
System\Xaml\XamlMarkupExtensionWriter.cs (9)
198
public
XamlNodeType
NodeType
317
writer.nodes.Push(new Node { NodeType =
XamlNodeType
.StartObject, XamlType = type });
342
if (node.NodeType !=
XamlNodeType
.StartObject)
356
if (member.NodeType !=
XamlNodeType
.StartMember)
381
if (objectNode.NodeType !=
XamlNodeType
.StartObject)
390
NodeType =
XamlNodeType
.StartMember,
546
if (node.NodeType !=
XamlNodeType
.StartMember || node.XamlProperty != XamlLanguage.PositionalParameters)
585
writer.nodes.Push(new Node { NodeType =
XamlNodeType
.StartObject, XamlType = type });
610
if (member.NodeType !=
XamlNodeType
.StartMember)
System\Xaml\XamlNodeList.cs (2)
69
private void Add(
XamlNodeType
nodeType, object data)
73
if (nodeType !=
XamlNodeType
.None)
System\Xaml\XamlNodeQueue.cs (2)
63
private void Add(
XamlNodeType
nodeType, object data)
65
if (nodeType !=
XamlNodeType
.None)
System\Xaml\XamlObjectReader.cs (73)
98
if (currentXamlNode.NodeType !=
XamlNodeType
.None)
126
public override
XamlNodeType
NodeType
186
return currentXamlNode.NodeType ==
XamlNodeType
.StartObject ? currentInstance : null;
376
XamlNode = new XamlNode(
XamlNodeType
.StartMember, attachedProperty),
421
MemberMarkupInfo itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items) };
466
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Key),
542
XamlNode = new XamlNode(
XamlNodeType
.StartMember, property),
547
XamlNode = new XamlNode(
XamlNodeType
.GetObject),
570
XamlNode = new XamlNode(
XamlNodeType
.StartMember, property),
575
XamlNode = new XamlNode(
XamlNodeType
.GetObject),
613
XamlNode = new XamlNode(
XamlNodeType
.StartMember, property),
618
XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.XData),
623
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.XData.GetMember("Text")),
628
XamlNode = new XamlNode(
XamlNodeType
.Value, sb.ToString())
652
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Lang),
660
XamlNode = new XamlNode(
XamlNodeType
.StartMember, xamlProperty),
693
objectInfo.XamlNode = new XamlNode(
XamlNodeType
.GetObject);
732
var itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items) };
877
valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, propertyValue) };
890
valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, propertyValue ?? string.Empty) };
897
valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, propertyValue) };
973
EndObjectMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.EndObject); }
982
EndMemberMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.EndMember); }
1140
if ((XamlNode.NodeType ==
XamlNodeType
.StartObject && !XamlNode.XamlType.IsMarkupExtension)
1141
|| XamlNode.NodeType ==
XamlNodeType
.GetObject)
1163
if (XamlNode.NodeType ==
XamlNodeType
.StartObject)
1255
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.FactoryMethod),
1257
Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, methodName) } }
1309
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items)
1314
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Arguments)
1334
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.PositionalParameters)
1354
positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, stringValue) });
1370
positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, stringValue) });
1375
positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, argument) });
1757
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Name),
1758
Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, Name) } }
1764
if (XamlNode.NodeType ==
XamlNodeType
.GetObject)
1768
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType);
1809
var items = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items) };
1817
XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.Array),
1824
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Array.GetMember("Type")), //x:ArrayExtension.Type
1829
XamlNode = new XamlNode(
XamlNodeType
.Value, context.ConvertXamlTypeToString(elementType))
1840
XamlNode = new XamlNode(
XamlNodeType
.GetObject),
1850
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Array.ContentProperty),
1899
return new ObjectMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.Null) };
2025
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType),
2039
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType),
2062
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType),
2072
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Initialization),
2073
Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, value) } }
2340
XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.Reference);
2341
nameProperty = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.PositionalParameters) };
2349
nameProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, Target.Name) });
2544
return namespaceMapList.ConvertAll<XamlNode>(pair => new XamlNode(
XamlNodeType
.NamespaceDeclaration,
2879
while (reader.Read() && reader.NodeType !=
XamlNodeType
.StartObject)
2881
if (reader.NodeType !=
XamlNodeType
.NamespaceDeclaration)
2888
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.NamespaceDeclaration, reader.Namespace) });
2892
if (reader.NodeType !=
XamlNodeType
.StartObject)
2897
nodes.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartObject, reader.Type) });
2904
case
XamlNodeType
.NamespaceDeclaration:
2905
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.NamespaceDeclaration, reader.Namespace) });
2908
case
XamlNodeType
.StartObject:
2909
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.StartObject, reader.Type) });
2912
case
XamlNodeType
.GetObject:
2913
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.GetObject) });
2916
case
XamlNodeType
.EndObject:
2917
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.EndObject) });
2920
case
XamlNodeType
.StartMember:
2921
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.StartMember, reader.Member) });
2924
case
XamlNodeType
.EndMember:
2925
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.EndMember) });
2928
case
XamlNodeType
.Value:
2929
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.Value, reader.Value) });
System\Xaml\XamlReader.cs (15)
15
public abstract
XamlNodeType
NodeType { get; }
29
case
XamlNodeType
.NamespaceDeclaration:
30
case
XamlNodeType
.Value:
31
case
XamlNodeType
.EndObject:
32
case
XamlNodeType
.EndMember:
33
case
XamlNodeType
.None:
36
case
XamlNodeType
.StartObject:
37
SkipFromTo(
XamlNodeType
.StartObject,
XamlNodeType
.EndObject);
40
case
XamlNodeType
.StartMember:
41
SkipFromTo(
XamlNodeType
.StartMember,
XamlNodeType
.EndMember);
78
private void SkipFromTo(
XamlNodeType
startNodeType,
XamlNodeType
endNodeType)
90
XamlNodeType
nodeType = NodeType;
System\Xaml\XamlSubreader.cs (9)
25
_rootIsStartMember = (reader.NodeType ==
XamlNodeType
.StartMember);
41
public override
XamlNodeType
NodeType
43
get { return IsEmpty ?
XamlNodeType
.None : _reader.NodeType; }
126
XamlNodeType
nodeType = _reader.NodeType;
130
if (nodeType ==
XamlNodeType
.StartMember)
134
else if (nodeType ==
XamlNodeType
.EndMember)
141
if (nodeType ==
XamlNodeType
.StartObject
142
|| nodeType ==
XamlNodeType
.GetObject)
146
else if (nodeType ==
XamlNodeType
.EndObject)
System\Xaml\XamlWriter.cs (8)
28
case
XamlNodeType
.NamespaceDeclaration:
32
case
XamlNodeType
.StartObject:
36
case
XamlNodeType
.GetObject:
40
case
XamlNodeType
.EndObject:
44
case
XamlNodeType
.StartMember:
48
case
XamlNodeType
.EndMember:
52
case
XamlNodeType
.Value:
56
case
XamlNodeType
.None:
System\Xaml\XamlXmlWriter.cs (75)
108
namespaceScopes.Push(new Frame { AllocatingNodeType =
XamlNodeType
.StartObject });
153
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
343
Debug.Assert(writer.namespaceScopes.Peek().AllocatingNodeType ==
XamlNodeType
.StartMember);
348
if (enumerator.Current.AllocatingNodeType ==
XamlNodeType
.StartMember
354
else if (enumerator.Current.AllocatingNodeType ==
XamlNodeType
.StartObject)
494
if (objectFrame.AllocatingNodeType !=
XamlNodeType
.StartObject &&
495
objectFrame.AllocatingNodeType !=
XamlNodeType
.GetObject)
502
Debug.Assert(objectFrame.AllocatingNodeType ==
XamlNodeType
.StartObject ||
503
objectFrame.AllocatingNodeType ==
XamlNodeType
.GetObject);
517
void WriteDeferredNamespaces(
XamlNodeType
nodeType)
692
public
XamlNodeType
AllocatingNodeType
806
Debug.Assert(frame.AllocatingNodeType ==
XamlNodeType
.StartMember);
824
Debug.Assert(frame.AllocatingNodeType ==
XamlNodeType
.StartMember);
885
case
XamlNodeType
.NamespaceDeclaration:
889
case
XamlNodeType
.StartObject:
893
case
XamlNodeType
.GetObject:
897
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
904
case
XamlNodeType
.EndObject:
908
case
XamlNodeType
.StartMember:
912
case
XamlNodeType
.EndMember:
916
case
XamlNodeType
.Value:
920
case
XamlNodeType
.None:
991
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartMember)
995
AllocatingNodeType =
XamlNodeType
.StartMember,
1007
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartMember)
1011
AllocatingNodeType =
XamlNodeType
.StartMember,
1047
writer.WriteDeferredNamespaces(
XamlNodeType
.StartMember);
1077
if (frame.AllocatingNodeType !=
XamlNodeType
.StartObject &&
1078
frame.AllocatingNodeType !=
XamlNodeType
.GetObject)
1114
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1139
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1148
Debug.Assert(writer.namespaceScopes.Peek().AllocatingNodeType ==
XamlNodeType
.StartObject ||
1149
writer.namespaceScopes.Peek().AllocatingNodeType ==
XamlNodeType
.GetObject);
1153
AllocatingNodeType =
XamlNodeType
.StartMember,
1179
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1188
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1205
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1226
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartObject &&
1227
writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.GetObject)
1229
writer.namespaceScopes.Push(new Frame { AllocatingNodeType =
XamlNodeType
.StartObject });
1237
if (frame.AllocatingNodeType !=
XamlNodeType
.StartMember)
1314
if (frameWithXmlSpacePreserve.AllocatingNodeType ==
XamlNodeType
.StartMember)
1330
if (frame.AllocatingNodeType ==
XamlNodeType
.GetObject)
1334
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
1354
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartObject &&
1355
writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.GetObject)
1357
writer.namespaceScopes.Push(new Frame { AllocatingNodeType = isObjectFromMember ?
XamlNodeType
.GetObject :
XamlNodeType
.StartObject });
1376
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
1420
Debug.Assert(memberFrame.AllocatingNodeType ==
XamlNodeType
.StartMember ||
1421
memberFrame.AllocatingNodeType ==
XamlNodeType
.GetObject);
1553
Debug.Assert(memberFrame.AllocatingNodeType ==
XamlNodeType
.StartMember ||
1554
memberFrame.AllocatingNodeType ==
XamlNodeType
.GetObject);
1576
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1604
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1635
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1653
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1723
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1734
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1750
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1769
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1785
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.StartObject, type));
1790
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.GetObject));
1802
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.EndObject));
1823
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.StartMember, property));
1835
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.EndMember));
1847
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.NamespaceDeclaration, namespaceDeclaration));
1859
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.Value, value));
1885
Debug.Assert(frame.AllocatingNodeType ==
XamlNodeType
.StartObject);
1935
writer.ppStateInfo.NodesList[i].Insert(0, new XamlNode(
XamlNodeType
.StartMember, member));
1936
writer.ppStateInfo.NodesList[i].Add(new XamlNode(
XamlNodeType
.EndMember));
2030
XamlNode node = new XamlNode(
XamlNodeType
.StartObject, type);
2053
XamlNode node = new XamlNode(
XamlNodeType
.EndObject);
2066
XamlNode node = new XamlNode(
XamlNodeType
.StartMember, property);
2096
XamlNode node = new XamlNode(
XamlNodeType
.Value, value);