116 instantiations of XamlNode
System.Xaml (116)
System\Xaml\InfosetObjects\XamlXmlReader.cs (2)
218_endOfStreamNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 230_current = new XamlNode(XamlNode.InternalNodeType.StartOfStream); // user must call Read() before using properties.
System\Xaml\Parser\MePullParser.cs (7)
458var startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 465return new XamlNode(XamlNodeType.EndObject); 473XamlNode startMember = new XamlNode(XamlNodeType.StartMember, member); 480return new XamlNode(XamlNodeType.EndMember); 487XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters); 499return new XamlNode(XamlNodeType.EndMember); 505XamlNode textNode = new XamlNode(XamlNodeType.Value, text);
System\Xaml\Parser\NodeStreamSorter.cs (4)
212XamlNode node = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(uriString, prefix)); 241var startProperty = new XamlNode(XamlNodeType.StartMember, xmlDirectiveProperty); 245var textNode = new XamlNode(XamlNodeType.Value, textValue); 250_buffer.Enqueue(new XamlNode(XamlNodeType.EndMember));
System\Xaml\Parser\XamlPullParser.cs (20)
274yield return new XamlNode(XamlNodeType.Value, string.Empty); 583yield return new XamlNode(XamlNodeType.Value, trimmed); 679yield return new XamlNode(XamlNodeType.Value, trimmed); 710yield return new XamlNode(XamlNodeType.Value, trimmed); 762XamlNode lineInfoNode = new XamlNode(lineInfo); 770XamlNode addNs = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(xamlNs, prefix)); 780XamlNode startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 791XamlNode endObj = new XamlNode(XamlNodeType.EndObject); 805XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, property); 818XamlNode textNode = new XamlNode(XamlNodeType.Value, text.AttributeText); 821yield return new XamlNode(XamlNodeType.EndMember); 826var endOfAttributes = new XamlNode(XamlNode.InternalNodeType.EndOfAttributes); 840var startMember = new XamlNode(XamlNodeType.StartMember, member); 849return new XamlNode(XamlNodeType.EndMember); 859var startProperty = new XamlNode(XamlNodeType.StartMember, property); 870var startProperty = new XamlNode(XamlNodeType.StartMember, initProperty); 918var startObj = new XamlNode(XamlNodeType.GetObject); 927var startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items); 994yield return new XamlNode(XamlNodeType.NamespaceDeclaration, nsDecl); 1000yield 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)
76_currentNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 150AddToBuffer(new XamlNode(nodeType, data)); 154AddToBuffer(new XamlNode(XamlNode.InternalNodeType.EndOfStream)); 165XamlNode node = new XamlNode(lineInfo);
System\Xaml\XamlNodeList.cs (2)
72XamlNode node = new XamlNode(nodeType, data); 92XamlNode node = new XamlNode(new LineInfo(lineNumber, linePosition));
System\Xaml\XamlNodeQueue.cs (3)
27_endOfStreamNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 64XamlNode node = new XamlNode(nodeType, data); 75XamlNode 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), 416MemberMarkupInfo itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 461XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Key), 537XamlNode = new XamlNode(XamlNodeType.StartMember, property), 542XamlNode = new XamlNode(XamlNodeType.GetObject), 565XamlNode = new XamlNode(XamlNodeType.StartMember, property), 570XamlNode = new XamlNode(XamlNodeType.GetObject), 608XamlNode = new XamlNode(XamlNodeType.StartMember, property), 613XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.XData), 618XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.XData.GetMember("Text")), 623XamlNode = new XamlNode(XamlNodeType.Value, sb.ToString()) 647XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Lang), 655XamlNode = new XamlNode(XamlNodeType.StartMember, xamlProperty), 688objectInfo.XamlNode = new XamlNode(XamlNodeType.GetObject); 727var itemsInfo = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 872valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, propertyValue) }; 885valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, propertyValue ?? string.Empty) }; 892valueInfo = new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, propertyValue) }; 968EndObjectMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.EndObject); } 977EndMemberMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.EndMember); } 1250XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.FactoryMethod), 1252Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, methodName) } } 1304XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) 1309XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Arguments) 1329XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) 1349positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, stringValue) }); 1365positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, stringValue) }); 1370positionalParametersProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, argument) }); 1752XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Name), 1753Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, Name) } } 1763XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType); 1804var items = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items) }; 1812XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Array), 1819XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.GetMember("Type")), //x:ArrayExtension.Type 1824XamlNode = new XamlNode(XamlNodeType.Value, context.ConvertXamlTypeToString(elementType)) 1835XamlNode = new XamlNode(XamlNodeType.GetObject), 1845XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Array.ContentProperty), 1894return new ObjectMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Null) }; 2020XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType), 2034XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType), 2057XamlNode = new XamlNode(XamlNodeType.StartObject, xamlType), 2067XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Initialization), 2068Children = { new ValueMarkupInfo() { XamlNode = new XamlNode(XamlNodeType.Value, value) } } 2335XamlNode = new XamlNode(XamlNodeType.StartObject, XamlLanguage.Reference); 2336nameProperty = new MemberMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters) }; 2344nameProperty.Children.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.Value, Target.Name) }); 2539return namespaceMapList.ConvertAll<XamlNode>(pair => new XamlNode(XamlNodeType.NamespaceDeclaration, 2883nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.NamespaceDeclaration, reader.Namespace) }); 2892nodes.Add(new ValueMarkupInfo { XamlNode = new XamlNode(XamlNodeType.StartObject, reader.Type) }); 2900nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.NamespaceDeclaration, reader.Namespace) }); 2904nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.StartObject, reader.Type) }); 2908nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.GetObject) }); 2912nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.EndObject) }); 2916nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.StartMember, reader.Member) }); 2920nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.EndMember) }); 2924nodes.Add(new ValueMarkupInfo{ XamlNode = new XamlNode(XamlNodeType.Value, reader.Value) });
System\Xaml\XamlXmlWriter.cs (13)
1783writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.StartObject, type)); 1788writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.GetObject)); 1800writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.EndObject)); 1821writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.StartMember, property)); 1833writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.EndMember)); 1845writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.NamespaceDeclaration, namespaceDeclaration)); 1857writer.meNodesStack.Peek().Add(new XamlNode(XamlNodeType.Value, value)); 1933writer.ppStateInfo.NodesList[i].Insert(0, new XamlNode(XamlNodeType.StartMember, member)); 1934writer.ppStateInfo.NodesList[i].Add(new XamlNode(XamlNodeType.EndMember)); 2028XamlNode node = new XamlNode(XamlNodeType.StartObject, type); 2051XamlNode node = new XamlNode(XamlNodeType.EndObject); 2064XamlNode node = new XamlNode(XamlNodeType.StartMember, property); 2094XamlNode 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; 218_endOfStreamNode = new XamlNode(XamlNode.InternalNodeType.EndOfStream); 230_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)) 85private IEnumerable<XamlNode> P_MarkupExtension(Found f) 117foreach (XamlNode node in P_Arguments(f2)) 148private IEnumerable<XamlNode> P_Arguments(Found f) 161foreach (XamlNode node in P_PositionalArgs(f2)) 181foreach (XamlNode node in P_NamedArgs(f2)) 190foreach (XamlNode node in P_NamedArgs(f2)) 206private IEnumerable<XamlNode> P_PositionalArgs(Found f) 222foreach (XamlNode node in P_Value(f2)) 242foreach (XamlNode node in P_PositionalArgs(f3)) 261foreach (XamlNode node in P_NamedArg(f2)) 281private IEnumerable<XamlNode> P_NamedArgs(Found f) 289foreach (XamlNode node in P_NamedArg(f2)) 302foreach (XamlNode node in P_NamedArg(f2)) 318private IEnumerable<XamlNode> P_Value(Found f) 335foreach (XamlNode node in nestedParser.Parse(_tokenizer.TokenText, LineNumber, LinePosition)) 345foreach (XamlNode node in P_MarkupExtension(f2)) 360private IEnumerable<XamlNode> P_NamedArg(Found f) 388foreach (XamlNode node in nestedParser.Parse(_tokenizer.TokenText, LineNumber, LinePosition)) 398foreach (XamlNode node in P_Value(f2)) 448private XamlNode Logic_StartElement(XamlType xamlType, string xamlNamespace) 458var startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 462private XamlNode Logic_EndObject() 468private XamlNode Logic_StartMember() 473XamlNode startMember = new XamlNode(XamlNodeType.StartMember, member); 477private XamlNode Logic_EndMember() 483private XamlNode Logic_StartPositionalParameters() 487XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.PositionalParameters); 491private XamlNode Logic_EndPositionalParameters() 502private XamlNode Logic_Text() 505XamlNode 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; 98_buffer = new Queue<XamlNode>(); 107public XamlNode Current 171XamlNode node; 212XamlNode node = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(uriString, prefix)); 241var startProperty = new XamlNode(XamlNodeType.StartMember, xmlDirectiveProperty); 245var textNode = new XamlNode(XamlNodeType.Value, textValue); 291XamlNode node; 359XamlNode node = _source.Current; 392private bool CheckForOutOfOrderCtorDirectives(XamlNode node)
System\Xaml\Parser\XamlPullParser.cs (58)
56public IEnumerable<XamlNode> Parse() 76foreach (XamlNode node in P_Element()) 87public IEnumerable<XamlNode> P_Element() 94foreach (XamlNode node in P_EmptyElement()) 101foreach (XamlNode node in P_StartElement()) 105foreach (XamlNode node in P_ElementBody()) 118public IEnumerable<XamlNode> P_EmptyElement() 135foreach (XamlNode node in LogicStream_Attribute()) 147foreach (XamlNode node in LogicStream_Attribute()) 165public IEnumerable<XamlNode> P_StartElement() 182foreach (XamlNode node in LogicStream_Attribute()) 197public IEnumerable<XamlNode> P_ElementBody() 201foreach (XamlNode node in LogicStream_Attribute()) 224foreach (XamlNode node in P_PropertyElement()) 237foreach (XamlNode node in P_ElementContent()) 301public IEnumerable<XamlNode> P_PropertyElement() 308foreach (XamlNode node in P_EmptyPropertyElement()) 314foreach (XamlNode node in P_NonemptyPropertyElement()) 328public IEnumerable<XamlNode> P_EmptyPropertyElement() 347public IEnumerable<XamlNode> P_NonemptyPropertyElement() 373foreach (XamlNode node in P_PropertyContent()) 423public IEnumerable<XamlNode> P_ElementContent() 427List<XamlNode> savedPrefixDefinitions = null; 458savedPrefixDefinitions = new List<XamlNode>(); 533foreach (XamlNode node in LogicStream_CheckForStartGetCollectionFromMember()) 593foreach (XamlNode node in P_Element()) 613public IEnumerable<XamlNode> P_PropertyContent() 616List<XamlNode> _savedPrefixDefinitions = null; 659_savedPrefixDefinitions = new List<XamlNode>(); 688foreach (XamlNode node in LogicStream_CheckForStartGetCollectionFromMember()) 730foreach (XamlNode node in P_Element()) 759private XamlNode Logic_LineInfo() 762XamlNode lineInfoNode = new XamlNode(lineInfo); 766private XamlNode Logic_PrefixDefinition() 770XamlNode addNs = new XamlNode(XamlNodeType.NamespaceDeclaration, new NamespaceDeclaration(xamlNs, prefix)); 774private XamlNode Logic_StartObject(XamlType xamlType, string xamlNamespace) 780XamlNode startObj = new XamlNode(XamlNodeType.StartObject, xamlType); 784private XamlNode Logic_EndObject() 791XamlNode endObj = new XamlNode(XamlNodeType.EndObject); 795private IEnumerable<XamlNode> LogicStream_Attribute() 805XamlNode startProperty = new XamlNode(XamlNodeType.StartMember, property); 811foreach (XamlNode node in me.Parse(text.Text, LineNumber, LinePosition)) 818XamlNode textNode = new XamlNode(XamlNodeType.Value, text.AttributeText); 824private XamlNode Logic_EndOfAttributes() 826var endOfAttributes = new XamlNode(XamlNode.InternalNodeType.EndOfAttributes); 830private XamlNode Logic_StartMember(XamlMember member) 840var startMember = new XamlNode(XamlNodeType.StartMember, member); 844private XamlNode Logic_EndMember() 852private XamlNode Logic_StartContentProperty(XamlMember property) 859var startProperty = new XamlNode(XamlNodeType.StartMember, property); 864private XamlNode Logic_StartInitProperty(XamlType ownerType) 870var startProperty = new XamlNode(XamlNodeType.StartMember, initProperty); 912private XamlNode Logic_StartGetObjectFromMember(XamlType realType) 918var startObj = new XamlNode(XamlNodeType.GetObject); 922private XamlNode Logic_StartItemsProperty(XamlType collectionType) 927var startProperty = new XamlNode(XamlNodeType.StartMember, XamlLanguage.Items); 974private 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]; 76_currentNode = new XamlNode(XamlNode.InternalNodeType.StartOfStream); 122XamlNode[] tmp = _incoming; 131private void AddToBuffer(XamlNode node) 153Debug.Assert(XamlNode.IsEof_Helper(nodeType, data)); 154AddToBuffer(new XamlNode(XamlNode.InternalNodeType.EndOfStream)); 165XamlNode node = new XamlNode(lineInfo); 169private XamlNode Next() 206private XamlNode Next_ProcessLineInfo()
System\Xaml\XamlNodeList.cs (7)
17List<XamlNode> _nodeList; 38_nodeList = new List<XamlNode>(); 42_nodeList = new List<XamlNode>(size); 72XamlNode node = new XamlNode(nodeType, data); 76Debug.Assert(XamlNode.IsEof_Helper(nodeType, data)); 92XamlNode node = new XamlNode(new LineInfo(lineNumber, linePosition)); 100private 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); 64XamlNode node = new XamlNode(nodeType, data); 68Debug.Assert(XamlNode.IsEof_Helper(nodeType, data)); 75XamlNode node = new XamlNode(lineInfo); 87private XamlNode Next() 89XamlNode 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); 959public XamlNode XamlNode { get; set; } 2530public List<XamlNode> GetSortedNamespaceNodes() 2539return namespaceMapList.ConvertAll<XamlNode>(pair => new XamlNode(XamlNodeType.NamespaceDeclaration,
System\Xaml\XamlXmlWriter.cs (16)
30Stack<List<XamlNode>> meNodesStack; 109meNodesStack = new Stack<List<XamlNode>>(); 879protected internal void WriteNode(XamlXmlWriter writer, XamlNode node) 1596writer.meNodesStack.Push(new List<XamlNode>()); 1773foreach (var node in meNodes) 2004foreach (List<XamlNode> nodesList in ppNodesList) 2006foreach (XamlNode node in nodesList) 2028XamlNode node = new XamlNode(XamlNodeType.StartObject, type); 2031writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2051XamlNode node = new XamlNode(XamlNodeType.EndObject); 2064XamlNode node = new XamlNode(XamlNodeType.StartMember, property); 2068writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2094XamlNode node = new XamlNode(XamlNodeType.Value, value); 2097writer.ppStateInfo.NodesList.Add(new List<XamlNode> { node }); 2117public List<List<XamlNode>> NodesList 2151NodesList = new List<List<XamlNode>>();