375 references to XamlNodeType
PresentationFramework (68)
System\Windows\FrameworkTemplate.cs (8)
992
case System.Xaml.
XamlNodeType
.None:
993
case System.Xaml.
XamlNodeType
.NamespaceDeclaration:
995
case System.Xaml.
XamlNodeType
.StartObject:
1009
case System.Xaml.
XamlNodeType
.GetObject:
1022
case System.Xaml.
XamlNodeType
.StartMember:
1030
case System.Xaml.
XamlNodeType
.EndMember:
1038
case System.Xaml.
XamlNodeType
.EndObject:
1042
case System.Xaml.
XamlNodeType
.Value:
System\Windows\Markup\Baml2006\Baml2006Reader.cs (5)
160
_xamlNodesReader.NodeType !=
XamlNodeType
.EndObject)
169
override public
XamlNodeType
NodeType
2690
case
XamlNodeType
.StartObject:
2694
case
XamlNodeType
.EndObject:
2698
case
XamlNodeType
.StartMember:
System\Windows\Markup\RestrictiveXamlXmlReader.cs (7)
105
if ((NodeType == System.Xaml.
XamlNodeType
.StartObject && !IsAllowedType(Type.UnderlyingType)) ||
106
(NodeType == System.Xaml.
XamlNodeType
.StartMember && Member is XamlDirective directive && !IsAllowedDirective(directive)))
119
case System.Xaml.
XamlNodeType
.StartObject:
120
case System.Xaml.
XamlNodeType
.StartMember:
121
case System.Xaml.
XamlNodeType
.GetObject:
125
case System.Xaml.
XamlNodeType
.EndObject:
126
case System.Xaml.
XamlNodeType
.EndMember:
System\Windows\Markup\WpfXamlLoader.cs (11)
198
case System.Xaml.
XamlNodeType
.NamespaceDeclaration:
225
case System.Xaml.
XamlNodeType
.StartObject:
228
case System.Xaml.
XamlNodeType
.GetObject:
237
case System.Xaml.
XamlNodeType
.EndObject:
255
case System.Xaml.
XamlNodeType
.StartMember:
287
case System.Xaml.
XamlNodeType
.StartMember:
290
case System.Xaml.
XamlNodeType
.StartObject:
300
case System.Xaml.
XamlNodeType
.EndMember:
308
case System.Xaml.
XamlNodeType
.Value:
327
case System.Xaml.
XamlNodeType
.EndMember:
341
case System.Xaml.
XamlNodeType
.Value:
System\Windows\Markup\XamlReader.cs (4)
406
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartMember)
417
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.Value)
438
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.EndMember)
600
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.Value && _stack.CurrentFrame.Property == synchronousRecordProperty)
System\Windows\ResourceDictionary.cs (5)
1164
if (reader.NodeType == Xaml.
XamlNodeType
.StartObject && reader.Type == xamlTypeStaticResourceExtension)
1168
while (reader.NodeType == Xaml.
XamlNodeType
.StartMember &&
1175
if (reader.NodeType == Xaml.
XamlNodeType
.StartMember)
1179
if (reader.NodeType == Xaml.
XamlNodeType
.StartObject)
1185
else if (reader.NodeType == Xaml.
XamlNodeType
.Value)
System\Windows\TemplateContent.cs (28)
407
case System.Xaml.
XamlNodeType
.StartObject:
451
case System.Xaml.
XamlNodeType
.GetObject:
480
case System.Xaml.
XamlNodeType
.EndObject:
545
case System.Xaml.
XamlNodeType
.StartMember:
642
case System.Xaml.
XamlNodeType
.EndMember:
646
case System.Xaml.
XamlNodeType
.Value:
719
case System.Xaml.
XamlNodeType
.NamespaceDeclaration:
744
case System.Xaml.
XamlNodeType
.None:
752
Debug.Assert(xamlReader.NodeType == Xaml.
XamlNodeType
.StartObject);
763
case Xaml.
XamlNodeType
.StartObject:
764
case Xaml.
XamlNodeType
.GetObject:
767
case Xaml.
XamlNodeType
.EndObject:
798
Debug.Assert(xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartMember);
833
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.Value)
879
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartObject
880
|| xamlReader.NodeType == System.Xaml.
XamlNodeType
.NamespaceDeclaration)
883
if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.NamespaceDeclaration)
886
while (xamlReader.NodeType == System.Xaml.
XamlNodeType
.NamespaceDeclaration)
893
Debug.Assert(xamlReader.NodeType == System.Xaml.
XamlNodeType
.StartObject);
944
case System.Xaml.
XamlNodeType
.StartObject:
953
case System.Xaml.
XamlNodeType
.GetObject:
958
case System.Xaml.
XamlNodeType
.EndObject:
967
case System.Xaml.
XamlNodeType
.StartMember:
977
case System.Xaml.
XamlNodeType
.Value:
1007
else if (xamlReader.NodeType == System.Xaml.
XamlNodeType
.GetObject)
1046
System.Xaml.
XamlNodeType
nodeType = reader.NodeType;
1047
if (nodeType == System.Xaml.
XamlNodeType
.StartMember)
1152
Debug.Assert(xamlReader.NodeType == System.Xaml.
XamlNodeType
.EndMember);
System.Xaml (307)
System\Xaml\InfosetObjects\XamlNodes.cs (32)
21
internal delegate void XamlNodeAddDelegate(
XamlNodeType
nodeType, object data);
31
XamlNodeType
_nodeType;
35
public
XamlNodeType
NodeType
40
public XamlNode(
XamlNodeType
nodeType)
45
case
XamlNodeType
.EndObject:
46
case
XamlNodeType
.EndMember:
47
case
XamlNodeType
.GetObject:
60
public XamlNode(
XamlNodeType
nodeType, object data)
65
case
XamlNodeType
.StartObject:
69
case
XamlNodeType
.StartMember:
73
case
XamlNodeType
.NamespaceDeclaration:
77
case
XamlNodeType
.Value:
81
case
XamlNodeType
.EndObject:
82
case
XamlNodeType
.EndMember:
83
case
XamlNodeType
.GetObject:
102
_nodeType =
XamlNodeType
.None;
109
_nodeType =
XamlNodeType
.None;
119
case
XamlNodeType
.StartObject:
123
case
XamlNodeType
.StartMember:
127
case
XamlNodeType
.Value:
131
case
XamlNodeType
.NamespaceDeclaration:
135
case
XamlNodeType
.None:
163
if (NodeType ==
XamlNodeType
.NamespaceDeclaration)
175
if (NodeType ==
XamlNodeType
.StartObject)
187
if (NodeType ==
XamlNodeType
.Value)
199
if (NodeType ==
XamlNodeType
.StartMember)
211
if (NodeType ==
XamlNodeType
.None)
223
if (NodeType ==
XamlNodeType
.None && _internalNodeType == InternalNodeType.EndOfStream)
235
if (NodeType ==
XamlNodeType
.None && _internalNodeType == InternalNodeType.EndOfAttributes)
247
if (NodeType ==
XamlNodeType
.None && _internalNodeType == InternalNodeType.LineInfo)
255
internal static bool IsEof_Helper(
XamlNodeType
nodeType, object data)
257
if (nodeType !=
XamlNodeType
.None)
System\Xaml\InfosetObjects\XamlXmlReader.cs (3)
244
if (_current.NodeType ==
XamlNodeType
.None)
265
} while (_current.NodeType ==
XamlNodeType
.None);
269
public override
XamlNodeType
NodeType
System\Xaml\Parser\MePullParser.cs (7)
458
var startObj = new XamlNode(
XamlNodeType
.StartObject, xamlType);
465
return new XamlNode(
XamlNodeType
.EndObject);
473
XamlNode startMember = new XamlNode(
XamlNodeType
.StartMember, member);
480
return new XamlNode(
XamlNodeType
.EndMember);
487
XamlNode startProperty = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.PositionalParameters);
499
return new XamlNode(
XamlNodeType
.EndMember);
505
XamlNode textNode = new XamlNode(
XamlNodeType
.Value, text);
System\Xaml\Parser\NodeStreamSorter.cs (38)
81
public
XamlNodeType
XamlNodeType { get; set; }
132
if (_current.NodeType ==
XamlNodeType
.StartObject)
180
case
XamlNodeType
.NamespaceDeclaration:
183
case
XamlNodeType
.StartObject:
189
case
XamlNodeType
.None:
212
XamlNode node = new XamlNode(
XamlNodeType
.NamespaceDeclaration, new NamespaceDeclaration(uriString, prefix));
241
var startProperty = new XamlNode(
XamlNodeType
.StartMember, xmlDirectiveProperty);
245
var textNode = new XamlNode(
XamlNodeType
.Value, textValue);
250
_buffer.Enqueue(new XamlNode(
XamlNodeType
.EndMember));
304
case
XamlNodeType
.StartObject:
308
case
XamlNodeType
.EndObject:
316
case
XamlNodeType
.None:
326
case
XamlNodeType
.StartMember:
336
case
XamlNodeType
.EndMember:
362
case
XamlNodeType
.StartMember:
373
case
XamlNodeType
.EndMember:
377
case
XamlNodeType
.EndObject:
481
case
XamlNodeType
.NamespaceDeclaration:
482
case
XamlNodeType
.EndMember:
483
case
XamlNodeType
.Value:
486
case
XamlNodeType
.GetObject:
487
case
XamlNodeType
.StartObject:
491
case
XamlNodeType
.EndObject:
495
case
XamlNodeType
.StartMember:
519
if (BackupTo(ctorDirectiveIdx,
XamlNodeType
.StartObject, depth, out startObjectIdx))
522
if (AdvanceTo(startObjectIdx,
XamlNodeType
.StartMember, depth, out firstMemberIdx))
558
Debug.Assert(_sortingInfoArray[start].XamlNodeType ==
XamlNodeType
.StartMember);
562
&& _sortingInfoArray[idx].XamlNodeType ==
XamlNodeType
.StartMember)
584
Debug.Assert(_sortingInfoArray[current].XamlNodeType ==
XamlNodeType
.StartMember);
591
if(!AdvanceTo(current,
XamlNodeType
.StartMember, depth, out end))
604
Debug.Assert(_sortingInfoArray[current].XamlNodeType ==
XamlNodeType
.StartMember);
611
if (!AdvanceTo(current,
XamlNodeType
.StartMember, depth, out end))
630
if (!AdvanceTo(current,
XamlNodeType
.StartMember, depth, out end))
632
if (AdvanceTo(current,
XamlNodeType
.EndObject, depth, out end))
669
private bool AdvanceTo(int start,
XamlNodeType
nodeType, int searchDepth, out int end)
673
XamlNodeType
currentNodeType = _sortingInfoArray[idx].XamlNodeType;
693
private bool BackupTo(int start,
XamlNodeType
nodeType, int searchDepth, out int end)
697
XamlNodeType
currentNodeType = _sortingInfoArray[idx].XamlNodeType;
System\Xaml\Parser\XamlPullParser.cs (18)
274
yield return new XamlNode(
XamlNodeType
.Value, string.Empty);
583
yield return new XamlNode(
XamlNodeType
.Value, trimmed);
679
yield return new XamlNode(
XamlNodeType
.Value, trimmed);
710
yield return new XamlNode(
XamlNodeType
.Value, trimmed);
770
XamlNode addNs = new XamlNode(
XamlNodeType
.NamespaceDeclaration, new NamespaceDeclaration(xamlNs, prefix));
780
XamlNode startObj = new XamlNode(
XamlNodeType
.StartObject, xamlType);
791
XamlNode endObj = new XamlNode(
XamlNodeType
.EndObject);
805
XamlNode startProperty = new XamlNode(
XamlNodeType
.StartMember, property);
818
XamlNode textNode = new XamlNode(
XamlNodeType
.Value, text.AttributeText);
821
yield return new XamlNode(
XamlNodeType
.EndMember);
840
var startMember = new XamlNode(
XamlNodeType
.StartMember, member);
849
return new XamlNode(
XamlNodeType
.EndMember);
859
var startProperty = new XamlNode(
XamlNodeType
.StartMember, property);
870
var startProperty = new XamlNode(
XamlNodeType
.StartMember, initProperty);
918
var startObj = new XamlNode(
XamlNodeType
.GetObject);
927
var startProperty = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items);
994
yield return new XamlNode(
XamlNodeType
.NamespaceDeclaration, nsDecl);
1000
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)
142
private void Add(
XamlNodeType
nodeType, object data)
148
if (nodeType !=
XamlNodeType
.None)
265
public override
XamlNodeType
NodeType
System\Xaml\XamlMarkupExtensionWriter.cs (9)
197
public
XamlNodeType
NodeType
316
writer.nodes.Push(new Node { NodeType =
XamlNodeType
.StartObject, XamlType = type });
341
if (node.NodeType !=
XamlNodeType
.StartObject)
355
if (member.NodeType !=
XamlNodeType
.StartMember)
380
if (objectNode.NodeType !=
XamlNodeType
.StartObject)
389
NodeType =
XamlNodeType
.StartMember,
545
if (node.NodeType !=
XamlNodeType
.StartMember || node.XamlProperty != XamlLanguage.PositionalParameters)
584
writer.nodes.Push(new Node { NodeType =
XamlNodeType
.StartObject, XamlType = type });
609
if (member.NodeType !=
XamlNodeType
.StartMember)
System\Xaml\XamlNodeList.cs (2)
66
private void Add(
XamlNodeType
nodeType, object data)
70
if (nodeType !=
XamlNodeType
.None)
System\Xaml\XamlNodeQueue.cs (2)
60
private void Add(
XamlNodeType
nodeType, object data)
62
if (nodeType !=
XamlNodeType
.None)
System\Xaml\XamlObjectReader.cs (73)
93
if (currentXamlNode.NodeType !=
XamlNodeType
.None)
121
public override
XamlNodeType
NodeType
181
return currentXamlNode.NodeType ==
XamlNodeType
.StartObject ? currentInstance : null;
371
XamlNode = new XamlNode(
XamlNodeType
.StartMember, attachedProperty),
416
MemberMarkupInfo itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items) };
461
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Key),
537
XamlNode = new XamlNode(
XamlNodeType
.StartMember, property),
542
XamlNode = new XamlNode(
XamlNodeType
.GetObject),
565
XamlNode = new XamlNode(
XamlNodeType
.StartMember, property),
570
XamlNode = new XamlNode(
XamlNodeType
.GetObject),
608
XamlNode = new XamlNode(
XamlNodeType
.StartMember, property),
613
XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.XData),
618
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.XData.GetMember("Text")),
623
XamlNode = new XamlNode(
XamlNodeType
.Value, sb.ToString())
647
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Lang),
655
XamlNode = new XamlNode(
XamlNodeType
.StartMember, xamlProperty),
688
objectInfo.XamlNode = new XamlNode(
XamlNodeType
.GetObject);
727
var itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items) };
872
valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, propertyValue) };
885
valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, propertyValue ?? string.Empty) };
892
valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, propertyValue) };
968
EndObjectMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.EndObject); }
977
EndMemberMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.EndMember); }
1135
if ((XamlNode.NodeType ==
XamlNodeType
.StartObject && !XamlNode.XamlType.IsMarkupExtension)
1136
|| XamlNode.NodeType ==
XamlNodeType
.GetObject)
1158
if (XamlNode.NodeType ==
XamlNodeType
.StartObject)
1250
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.FactoryMethod),
1252
Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, methodName) } }
1304
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items)
1309
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Arguments)
1329
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.PositionalParameters)
1349
positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, stringValue) });
1365
positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, stringValue) });
1370
positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, argument) });
1752
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Name),
1753
Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, Name) } }
1759
if (XamlNode.NodeType ==
XamlNodeType
.GetObject)
1763
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType);
1804
var items = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Items) };
1812
XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.Array),
1819
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Array.GetMember("Type")), //x:ArrayExtension.Type
1824
XamlNode = new XamlNode(
XamlNodeType
.Value, context.ConvertXamlTypeToString(elementType))
1835
XamlNode = new XamlNode(
XamlNodeType
.GetObject),
1845
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Array.ContentProperty),
1894
return new ObjectMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.Null) };
2020
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType),
2034
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType),
2057
XamlNode = new XamlNode(
XamlNodeType
.StartObject, xamlType),
2067
XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.Initialization),
2068
Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(
XamlNodeType
.Value, value) } }
2335
XamlNode = new XamlNode(
XamlNodeType
.StartObject, XamlLanguage.Reference);
2336
nameProperty = new MemberMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartMember, XamlLanguage.PositionalParameters) };
2344
nameProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.Value, Target.Name) });
2539
return namespaceMapList.ConvertAll<XamlNode>(pair => new XamlNode(
XamlNodeType
.NamespaceDeclaration,
2874
while (reader.Read() && reader.NodeType !=
XamlNodeType
.StartObject)
2876
if (reader.NodeType !=
XamlNodeType
.NamespaceDeclaration)
2883
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.NamespaceDeclaration, reader.Namespace) });
2887
if (reader.NodeType !=
XamlNodeType
.StartObject)
2892
nodes.Add(new ValueMarkupInfo { XamlNode = new XamlNode(
XamlNodeType
.StartObject, reader.Type) });
2899
case
XamlNodeType
.NamespaceDeclaration:
2900
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.NamespaceDeclaration, reader.Namespace) });
2903
case
XamlNodeType
.StartObject:
2904
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.StartObject, reader.Type) });
2907
case
XamlNodeType
.GetObject:
2908
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.GetObject) });
2911
case
XamlNodeType
.EndObject:
2912
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.EndObject) });
2915
case
XamlNodeType
.StartMember:
2916
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.StartMember, reader.Member) });
2919
case
XamlNodeType
.EndMember:
2920
nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(
XamlNodeType
.EndMember) });
2923
case
XamlNodeType
.Value:
2924
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)
106
namespaceScopes.Push(new Frame { AllocatingNodeType =
XamlNodeType
.StartObject });
151
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
341
Debug.Assert(writer.namespaceScopes.Peek().AllocatingNodeType ==
XamlNodeType
.StartMember);
346
if (enumerator.Current.AllocatingNodeType ==
XamlNodeType
.StartMember
352
else if (enumerator.Current.AllocatingNodeType ==
XamlNodeType
.StartObject)
492
if (objectFrame.AllocatingNodeType !=
XamlNodeType
.StartObject &&
493
objectFrame.AllocatingNodeType !=
XamlNodeType
.GetObject)
500
Debug.Assert(objectFrame.AllocatingNodeType ==
XamlNodeType
.StartObject ||
501
objectFrame.AllocatingNodeType ==
XamlNodeType
.GetObject);
515
void WriteDeferredNamespaces(
XamlNodeType
nodeType)
690
public
XamlNodeType
AllocatingNodeType
804
Debug.Assert(frame.AllocatingNodeType ==
XamlNodeType
.StartMember);
822
Debug.Assert(frame.AllocatingNodeType ==
XamlNodeType
.StartMember);
883
case
XamlNodeType
.NamespaceDeclaration:
887
case
XamlNodeType
.StartObject:
891
case
XamlNodeType
.GetObject:
895
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
902
case
XamlNodeType
.EndObject:
906
case
XamlNodeType
.StartMember:
910
case
XamlNodeType
.EndMember:
914
case
XamlNodeType
.Value:
918
case
XamlNodeType
.None:
989
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartMember)
993
AllocatingNodeType =
XamlNodeType
.StartMember,
1005
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartMember)
1009
AllocatingNodeType =
XamlNodeType
.StartMember,
1045
writer.WriteDeferredNamespaces(
XamlNodeType
.StartMember);
1075
if (frame.AllocatingNodeType !=
XamlNodeType
.StartObject &&
1076
frame.AllocatingNodeType !=
XamlNodeType
.GetObject)
1112
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1137
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1146
Debug.Assert(writer.namespaceScopes.Peek().AllocatingNodeType ==
XamlNodeType
.StartObject ||
1147
writer.namespaceScopes.Peek().AllocatingNodeType ==
XamlNodeType
.GetObject);
1151
AllocatingNodeType =
XamlNodeType
.StartMember,
1177
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1186
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1203
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1224
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartObject &&
1225
writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.GetObject)
1227
writer.namespaceScopes.Push(new Frame { AllocatingNodeType =
XamlNodeType
.StartObject });
1235
if (frame.AllocatingNodeType !=
XamlNodeType
.StartMember)
1312
if (frameWithXmlSpacePreserve.AllocatingNodeType ==
XamlNodeType
.StartMember)
1328
if (frame.AllocatingNodeType ==
XamlNodeType
.GetObject)
1332
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
1352
if (writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.StartObject &&
1353
writer.namespaceScopes.Peek().AllocatingNodeType !=
XamlNodeType
.GetObject)
1355
writer.namespaceScopes.Push(new Frame { AllocatingNodeType = isObjectFromMember ?
XamlNodeType
.GetObject :
XamlNodeType
.StartObject });
1374
if (frame.AllocatingNodeType ==
XamlNodeType
.StartMember)
1418
Debug.Assert(memberFrame.AllocatingNodeType ==
XamlNodeType
.StartMember ||
1419
memberFrame.AllocatingNodeType ==
XamlNodeType
.GetObject);
1551
Debug.Assert(memberFrame.AllocatingNodeType ==
XamlNodeType
.StartMember ||
1552
memberFrame.AllocatingNodeType ==
XamlNodeType
.GetObject);
1574
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1602
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1633
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1651
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1721
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1732
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1748
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1767
writer.WriteDeferredNamespaces(
XamlNodeType
.StartObject);
1783
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.StartObject, type));
1788
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.GetObject));
1800
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.EndObject));
1821
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.StartMember, property));
1833
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.EndMember));
1845
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.NamespaceDeclaration, namespaceDeclaration));
1857
writer.meNodesStack.Peek().Add(new XamlNode(
XamlNodeType
.Value, value));
1883
Debug.Assert(frame.AllocatingNodeType ==
XamlNodeType
.StartObject);
1933
writer.ppStateInfo.NodesList[i].Insert(0, new XamlNode(
XamlNodeType
.StartMember, member));
1934
writer.ppStateInfo.NodesList[i].Add(new XamlNode(
XamlNodeType
.EndMember));
2028
XamlNode node = new XamlNode(
XamlNodeType
.StartObject, type);
2051
XamlNode node = new XamlNode(
XamlNodeType
.EndObject);
2064
XamlNode node = new XamlNode(
XamlNodeType
.StartMember, property);
2094
XamlNode node = new XamlNode(
XamlNodeType
.Value, value);