116 instantiations of XamlNode
System.Xaml (116)
System\Xaml\InfosetObjects\XamlXmlReader.cs (2)
224_endOfStreamNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 238_current = new XamlNode(XamlNode.InternalNodeType.StartOfStream); // user must call Read() before using properties.
System\Xaml\Parser\MePullParser.cs (7)
480var startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 487return new XamlNode(XamlNodeType.EndObject); 495XamlNode startMember = new XamlNode(XamlNodeType.StartMember, member); 502return new XamlNode(XamlNodeType.EndMember); 509XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters); 521return new XamlNode(XamlNodeType.EndMember); 527XamlNode textNode = new XamlNode(XamlNodeType.Value, text);
System\Xaml\Parser\NodeStreamSorter.cs (4)
218XamlNode node = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(uriString, prefix)); 249var startProperty = new XamlNode(XamlNodeType.StartMember, xmlDirectiveProperty); 253var textNode = new XamlNode(XamlNodeType.Value, textValue); 258_buffer.Enqueue(new XamlNode(XamlNodeType.EndMember));
System\Xaml\Parser\XamlPullParser.cs (20)
289yield return new XamlNode(XamlNodeType.Value, string.Empty); 618yield return new XamlNode(XamlNodeType.Value, trimmed); 719yield return new XamlNode(XamlNodeType.Value, trimmed); 750yield return new XamlNode(XamlNodeType.Value, trimmed); 803XamlNode lineInfoNode = new XamlNode(lineInfo); 811XamlNode addNs = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(xamlNs, prefix)); 821XamlNode startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 832XamlNode endObj = new XamlNode(XamlNodeType.EndObject); 846XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, property); 859XamlNode textNode = new XamlNode(XamlNodeType.Value, text.AttributeText); 863yield return new XamlNode(XamlNodeType.EndMember); 868var endOfAttributes = new XamlNode(XamlNode.InternalNodeType.EndOfAttributes); 883var startMember = new XamlNode(XamlNodeType.StartMember, member); 892return new XamlNode(XamlNodeType.EndMember); 903var startProperty = new XamlNode(XamlNodeType.StartMember, property); 914var startProperty = new XamlNode(XamlNodeType.StartMember, initProperty); 963var startObj = new XamlNode(XamlNodeType.GetObject); 972var startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items); 1042yield return new XamlNode(XamlNodeType.NamespaceDeclaration, nsDecl); 1049yield return new XamlNode(XamlNodeType.Value, typeNameString);
System\Xaml\ReaderDelegate.cs (1)
23_currentNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream);
System\Xaml\ReaderMultiIndexDelegate.cs (2)
22static XamlNode s_StartOfStream = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 23static XamlNode s_EndOfStream = new XamlNode(XamlNode.InternalNodeType.EndOfStream);
System\Xaml\XamlBackgroundReader.cs (4)
78_currentNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 156AddToBuffer(new XamlNode(nodeType, data)); 161AddToBuffer(new XamlNode(XamlNode.InternalNodeType.EndOfStream)); 173XamlNode node = new XamlNode(lineInfo);
System\Xaml\XamlNodeList.cs (2)
74XamlNode node = new XamlNode(nodeType, data); 95XamlNode node = new XamlNode(new LineInfo(lineNumber, linePosition));
System\Xaml\XamlNodeQueue.cs (3)
27_endOfStreamNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 65XamlNode node = new XamlNode(nodeType, data); 77XamlNode node = new XamlNode(lineInfo);
System\Xaml\XamlObjectReader.cs (58)
50currentXamlNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 95currentXamlNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 371XamlNode = new XamlNode(XamlNodeType.StartMember, attachedProperty), 417MemberMarkupInfo itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 462XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Key), 539XamlNode = new XamlNode(XamlNodeType.StartMember, property), 544XamlNode = new XamlNode(XamlNodeType.GetObject), 567XamlNode = new XamlNode(XamlNodeType.StartMember, property), 572XamlNode = new XamlNode(XamlNodeType.GetObject), 610XamlNode = new XamlNode(XamlNodeType.StartMember, property), 615XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.XData), 620XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.XData.GetMember("Text")), 625XamlNode = new XamlNode(XamlNodeType.Value, sb.ToString()) 649XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Lang), 657XamlNode = new XamlNode(XamlNodeType.StartMember, xamlProperty), 686objectInfo.XamlNode = new XamlNode(XamlNodeType.GetObject); 724var itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 870valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, propertyValue) }; 883valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, propertyValue ?? string.Empty) }; 890valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, propertyValue) }; 967EndObjectMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.EndObject); } 976EndMemberMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.EndMember); } 1252XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.FactoryMethod), 1254Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, methodName) } } 1307XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) 1312XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Arguments) 1332XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) 1352positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, stringValue) }); 1369positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, stringValue) }); 1374positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, argument) }); 1762XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Name), 1763Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, Name) } } 1773XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType); 1814var items = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 1822XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Array), 1829XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.GetMember("Type")), // x:ArrayExtension.Type 1834XamlNode = new XamlNode(XamlNodeType.Value, context.ConvertXamlTypeToString(elementType)) 1845XamlNode = new XamlNode(XamlNodeType.GetObject), 1855XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.ContentProperty), 1905return new ObjectMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Null) }; 2033XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType), 2047XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType), 2070XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType), 2080XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Initialization), 2081Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, value) } } 2350XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Reference); 2351nameProperty = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) }; 2359nameProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, Target.Name) }); 2554return namespaceMapList.ConvertAll<XamlNode>(pair => new XamlNode(XamlNodeType.NamespaceDeclaration, 2905nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.NamespaceDeclaration, reader.Namespace) }); 2914nodes.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartObject, reader.Type) }); 2922nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.NamespaceDeclaration, reader.Namespace) }); 2926nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.StartObject, reader.Type) }); 2930nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.GetObject) }); 2934nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.EndObject) }); 2938nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.StartMember, reader.Member) }); 2942nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.EndMember) }); 2946nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.Value, reader.Value) });
System\Xaml\XamlXmlWriter.cs (13)
1822writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.StartObject, type)); 1827writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.GetObject)); 1839writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.EndObject)); 1860writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.StartMember, property)); 1872writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.EndMember)); 1884writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.NamespaceDeclaration, namespaceDeclaration)); 1896writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.Value, value)); 1973writer.ppStateInfo.NodesList[i].Insert(0, new XamlNode(XamlNodeType.StartMember, member)); 1974writer.ppStateInfo.NodesList[i].Add(new XamlNode(XamlNodeType.EndMember)); 2070XamlNode node = new XamlNode(XamlNodeType.StartObject, type); 2093XamlNode node = new XamlNode(XamlNodeType.EndObject); 2106XamlNode node = new XamlNode(XamlNodeType.StartMember, property); 2136XamlNode node = new XamlNode(XamlNodeType.Value, value);
170 references to XamlNode
System.Xaml (170)
System\Xaml\InfosetObjects\XamlNodes.cs (2)
23internal delegate XamlNode XamlNodeNextDelegate(); 24internal delegate XamlNode XamlNodeIndexDelegate(int idx);
System\Xaml\InfosetObjects\XamlXmlReader.cs (5)
20IEnumerator<XamlNode> _nodeStream; 22XamlNode _current; 24XamlNode _endOfStreamNode; 224_endOfStreamNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 238_current = new XamlNode(XamlNode.InternalNodeType.StartOfStream); // user must call Read() before using properties.
System\Xaml\Parser\MePullParser.cs (32)
37public IEnumerable<XamlNode> Parse(string text, int lineNumber, int linePosition) 43foreach (XamlNode node in P_MarkupExtension(f)) 89private IEnumerable<XamlNode> P_MarkupExtension(Found f) 121foreach (XamlNode node in P_Arguments(f2)) 153private IEnumerable<XamlNode> P_Arguments(Found f) 166foreach (XamlNode node in P_PositionalArgs(f2)) 187foreach (XamlNode node in P_NamedArgs(f2)) 197foreach (XamlNode node in P_NamedArgs(f2)) 214private IEnumerable<XamlNode> P_PositionalArgs(Found f) 230foreach (XamlNode node in P_Value(f2)) 252foreach (XamlNode node in P_PositionalArgs(f3)) 275foreach (XamlNode node in P_NamedArg(f2)) 297private IEnumerable<XamlNode> P_NamedArgs(Found f) 305foreach (XamlNode node in P_NamedArg(f2)) 319foreach (XamlNode node in P_NamedArg(f2)) 336private IEnumerable<XamlNode> P_Value(Found f) 353foreach (XamlNode node in nestedParser.Parse(_tokenizer.TokenText, LineNumber, LinePosition)) 364foreach (XamlNode node in P_MarkupExtension(f2)) 380private IEnumerable<XamlNode> P_NamedArg(Found f) 408foreach (XamlNode node in nestedParser.Parse(_tokenizer.TokenText, LineNumber, LinePosition)) 419foreach (XamlNode node in P_Value(f2)) 470private XamlNode Logic_StartElement(XamlType xamlType, string xamlNamespace) 480var startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 484private XamlNode Logic_EndObject() 490private XamlNode Logic_StartMember() 495XamlNode startMember = new XamlNode(XamlNodeType.StartMember, member); 499private XamlNode Logic_EndMember() 505private XamlNode Logic_StartPositionalParameters() 509XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters); 513private XamlNode Logic_EndPositionalParameters() 524private XamlNode Logic_Text() 527XamlNode textNode = new XamlNode(XamlNodeType.Value, text);
System\Xaml\Parser\NodeStreamSorter.cs (14)
15internal class NodeStreamSorter: IEnumerator<XamlNode> 19IEnumerator<XamlNode> _source; 20Queue<XamlNode> _buffer; 21XamlNode _current; 24XamlNode[] _originalNodesInOrder; 100_buffer = new Queue<XamlNode>(); 109public XamlNode Current 176XamlNode node; 218XamlNode node = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(uriString, prefix)); 249var startProperty = new XamlNode(XamlNodeType.StartMember, xmlDirectiveProperty); 253var textNode = new XamlNode(XamlNodeType.Value, textValue); 300XamlNode node; 374XamlNode node = _source.Current; 411private bool CheckForOutOfOrderCtorDirectives(XamlNode node)
System\Xaml\Parser\XamlPullParser.cs (58)
56public IEnumerable<XamlNode> Parse() 77foreach (XamlNode node in P_Element()) 88public IEnumerable<XamlNode> P_Element() 95foreach (XamlNode node in P_EmptyElement()) 103foreach (XamlNode node in P_StartElement()) 108foreach (XamlNode node in P_ElementBody()) 122public IEnumerable<XamlNode> P_EmptyElement() 140foreach (XamlNode node in LogicStream_Attribute()) 154foreach (XamlNode node in LogicStream_Attribute()) 173public IEnumerable<XamlNode> P_StartElement() 191foreach (XamlNode node in LogicStream_Attribute()) 207public IEnumerable<XamlNode> P_ElementBody() 211foreach (XamlNode node in LogicStream_Attribute()) 235foreach (XamlNode node in P_PropertyElement()) 249foreach (XamlNode node in P_ElementContent()) 319public IEnumerable<XamlNode> P_PropertyElement() 326foreach (XamlNode node in P_EmptyPropertyElement()) 333foreach (XamlNode node in P_NonemptyPropertyElement()) 348public IEnumerable<XamlNode> P_EmptyPropertyElement() 368public IEnumerable<XamlNode> P_NonemptyPropertyElement() 395foreach (XamlNode node in P_PropertyContent()) 449public IEnumerable<XamlNode> P_ElementContent() 453List<XamlNode> savedPrefixDefinitions = null; 485savedPrefixDefinitions = new List<XamlNode>(); 567foreach (XamlNode node in LogicStream_CheckForStartGetCollectionFromMember()) 628foreach (XamlNode node in P_Element()) 649public IEnumerable<XamlNode> P_PropertyContent() 652List<XamlNode> _savedPrefixDefinitions = null; 696_savedPrefixDefinitions = new List<XamlNode>(); 728foreach (XamlNode node in LogicStream_CheckForStartGetCollectionFromMember()) 770foreach (XamlNode node in P_Element()) 800private XamlNode Logic_LineInfo() 803XamlNode lineInfoNode = new XamlNode(lineInfo); 807private XamlNode Logic_PrefixDefinition() 811XamlNode addNs = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(xamlNs, prefix)); 815private XamlNode Logic_StartObject(XamlType xamlType, string xamlNamespace) 821XamlNode startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 825private XamlNode Logic_EndObject() 832XamlNode endObj = new XamlNode(XamlNodeType.EndObject); 836private IEnumerable<XamlNode> LogicStream_Attribute() 846XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, property); 852foreach (XamlNode node in me.Parse(text.Text, LineNumber, LinePosition)) 859XamlNode textNode = new XamlNode(XamlNodeType.Value, text.AttributeText); 866private XamlNode Logic_EndOfAttributes() 868var endOfAttributes = new XamlNode(XamlNode.InternalNodeType.EndOfAttributes); 872private XamlNode Logic_StartMember(XamlMember member) 883var startMember = new XamlNode(XamlNodeType.StartMember, member); 887private XamlNode Logic_EndMember() 895private XamlNode Logic_StartContentProperty(XamlMember property) 903var startProperty = new XamlNode(XamlNodeType.StartMember, property); 908private XamlNode Logic_StartInitProperty(XamlType ownerType) 914var startProperty = new XamlNode(XamlNodeType.StartMember, initProperty); 957private XamlNode Logic_StartGetObjectFromMember(XamlType realType) 963var startObj = new XamlNode(XamlNodeType.GetObject); 967private XamlNode Logic_StartItemsProperty(XamlType collectionType) 972var startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items); 1022private IEnumerable<XamlNode> LogicStream_CheckForStartGetCollectionFromMember()
System\Xaml\ReaderBaseDelegate.cs (1)
18protected XamlNode _currentNode;
System\Xaml\ReaderDelegate.cs (1)
23_currentNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream);
System\Xaml\ReaderMultiIndexDelegate.cs (4)
22static XamlNode s_StartOfStream = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 23static XamlNode s_EndOfStream = new XamlNode(XamlNode.InternalNodeType.EndOfStream);
System\Xaml\WriterDelegate.cs (1)
76_addDelegate(XamlNodeType.None, XamlNode.InternalNodeType.EndOfStream);
System\Xaml\XamlBackgroundReader.cs (13)
20XamlNode[] _incoming; 22XamlNode[] _outgoing; 26XamlNode _currentNode; 50_incoming = new XamlNode[bufferSize]; 51_outgoing = new XamlNode[bufferSize]; 78_currentNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 127XamlNode[] tmp = _incoming; 136private void AddToBuffer(XamlNode node) 160Debug.Assert(XamlNode.IsEof_Helper(nodeType, data)); 161AddToBuffer(new XamlNode(XamlNode.InternalNodeType.EndOfStream)); 173XamlNode node = new XamlNode(lineInfo); 177private XamlNode Next() 216private XamlNode Next_ProcessLineInfo()
System\Xaml\XamlNodeList.cs (7)
17List<XamlNode> _nodeList; 38_nodeList = new List<XamlNode>(); 42_nodeList = new List<XamlNode>(size); 74XamlNode node = new XamlNode(nodeType, data); 79Debug.Assert(XamlNode.IsEof_Helper(nodeType, data)); 95XamlNode node = new XamlNode(new LineInfo(lineNumber, linePosition)); 103private XamlNode Index(int idx)
System\Xaml\XamlNodeQueue.cs (9)
16Queue<XamlNode> _nodeQueue; 17XamlNode _endOfStreamNode; 26_nodeQueue = new Queue<XamlNode>(); 27_endOfStreamNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 65XamlNode node = new XamlNode(nodeType, data); 70Debug.Assert(XamlNode.IsEof_Helper(nodeType, data)); 77XamlNode node = new XamlNode(lineInfo); 90private XamlNode Next() 92XamlNode node;
System\Xaml\XamlObjectReader.cs (7)
26XamlNode currentXamlNode; 50currentXamlNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 83foreach (var node in namespaceNodes) 95currentXamlNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 958public XamlNode XamlNode { get; set; } 2545public List<XamlNode> GetSortedNamespaceNodes() 2554return namespaceMapList.ConvertAll<XamlNode>(pair => new XamlNode(XamlNodeType.NamespaceDeclaration,
System\Xaml\XamlXmlWriter.cs (16)
30Stack<List<XamlNode>> meNodesStack; 109meNodesStack = new Stack<List<XamlNode>>(); 895protected internal void WriteNode(XamlXmlWriter writer, XamlNode node) 1629writer.meNodesStack.Push(new List<XamlNode>()); 1812foreach (var node in meNodes) 2046foreach (List<XamlNode> nodesList in ppNodesList) 2048foreach (XamlNode node in nodesList) 2070XamlNode node = new XamlNode(XamlNodeType.StartObject, type); 2073writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2093XamlNode node = new XamlNode(XamlNodeType.EndObject); 2106XamlNode node = new XamlNode(XamlNodeType.StartMember, property); 2110writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2136XamlNode node = new XamlNode(XamlNodeType.Value, value); 2139writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2159public List<List<XamlNode>> NodesList 2193NodesList = new List<List<XamlNode>>();