1 type derived from ElementNode
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
226 abstract class RootNode : ElementNode
8 instantiations of ElementNode
Microsoft.Maui.Controls.Build.Tasks (2)
ExpandMarkupsVisitor.cs (2)
200 ? new ElementNode(type, "", nsResolver) 201 : new ElementNode(type, "", nsResolver, xmlLineInfo.LineNumber, xmlLineInfo.LinePosition);
Microsoft.Maui.Controls.Xaml (6)
ExpandMarkupsVisitor.cs (2)
205 ? new ElementNode(xmltype, null, nsResolver) 206 : new ElementNode(xmltype, null, nsResolver, xmlLineInfo.LineNumber, xmlLineInfo.LinePosition);
XamlLoader.cs (2)
175 resources = new ElementNode(new XmlType(XamlParser.MauiUri, nameof(ResourceDictionary), null), XamlParser.MauiUri, rootNode.NamespaceResolver); 180 resources = new ElementNode(new XmlType(XamlParser.MauiUri, nameof(ResourceDictionary), null), XamlParser.MauiUri, rootNode.NamespaceResolver);
XamlNode.cs (1)
212 var clone = new ElementNode(XmlType, NamespaceURI, NamespaceResolver, LineNumber, LinePosition)
XamlParser.cs (1)
169 node = new ElementNode(new XmlType(elementNsUri, elementName, typeArguments), elementNsUri,
88 references to ElementNode
Microsoft.Maui.Controls.Build.Tasks (46)
CompiledConverters\BindablePropertyConverter.cs (6)
37 if ((node.Parent as ElementNode)?.XmlType.NamespaceUri == XamlParser.MauiUri 38 && ((node.Parent as ElementNode)?.XmlType.Name == nameof(Setter) 39 || (node.Parent as ElementNode)?.XmlType.Name == nameof(PropertyCondition))) 54 else if ((node.Parent as ElementNode)?.XmlType.NamespaceUri == XamlParser.MauiUri && (node.Parent as ElementNode)?.XmlType.Name == nameof(Trigger)) 81 => ((node as ElementNode).Properties[new XmlName("", "TargetType")] as ValueNode)?.Value as string;
CompiledMarkupExtensions\ArrayExtension.cs (1)
32 context.IL.Append(SetPropertiesVisitor.ProvideValue(vardefref, context, module, node as ElementNode));
CompiledMarkupExtensions\StaticResourceExtension.cs (4)
18 var eNode = node as ElementNode; 26 var n = eNode; 98 n = n.Parent as ElementNode;
CreateObjectVisitor.cs (8)
32 public bool IsResourceDictionary(ElementNode node) 49 public void Visit(ElementNode node, INode parentNode) 277 bool ValidateCtorArguments(MethodDefinition ctorinfo, ElementNode enode, out string firstMissingProperty) 295 IEnumerable<Instruction> PushCtorArguments(MethodReference ctorinfo, ElementNode enode) 324 IEnumerable<Instruction> PushCtorXArguments(MethodReference factoryCtorInfo, ElementNode enode) 330 var node = enode.Properties[XmlName.xArguments] as ElementNode; 392 IEnumerable<Instruction> PushValueFromLanguagePrimitive(TypeDefinition typedef, ElementNode node)
ExpandMarkupsVisitor.cs (2)
29 public bool IsResourceDictionary(ElementNode node) 56 public void Visit(ElementNode node, INode parentNode)
MethodDefinitionExtensions.cs (3)
9 public static bool MatchXArguments(this MethodDefinition methodDef, ElementNode enode, TypeReference declaringTypeRef, ModuleDefinition module, ILContext context) 15 var node = enode.Properties[XmlName.xArguments] as ElementNode;
SetFieldVisitor.cs (2)
22 public bool IsResourceDictionary(ElementNode node) 45 public void Visit(ElementNode node, INode parentNode)
SetNamescopesAndRegisterNamesVisitor.cs (6)
23 public bool IsResourceDictionary(ElementNode node) 44 public void Visit(ElementNode node, INode parentNode) 94 static bool IsStyle(INode node, INode parentNode) => parentNode is ElementNode pnode && pnode.XmlType.Name == "Style"; 96 static bool IsVisualStateGroupList(ElementNode node) => node != null && node.XmlType.Name == "VisualStateGroup" && node.Parent is IListNode; 101 VariableDefinition GetOrCreateNameScope(ElementNode node) 137 void SetNameScope(ElementNode node, VariableDefinition ns)
SetPropertiesVisitor.cs (10)
42 public bool IsResourceDictionary(ElementNode node) 83 public void Visit(ElementNode node, INode parentNode) 254 ModuleDefinition module, ElementNode node, FieldReference bpRef = null, 427 static bool TryCompileBindingPath(ElementNode node, ILContext context, VariableDefinition bindingExt, (string, string, string) bindingExtensionType, out IEnumerable<Instruction> instructions) 489 if (dataTypeNode is ElementNode enode 584 static bool IsBindingContextBinding(ElementNode node) 753 static IEnumerable<Instruction> CompiledBindingGetGetter(TypeReference tSourceRef, TypeReference tPropertyRef, IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, ElementNode node, ILContext context) 847 static IEnumerable<Instruction> CompiledBindingGetSetter(TypeReference tSourceRef, TypeReference tPropertyRef, IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, ElementNode node, ILContext context) 972 static IEnumerable<Instruction> CompiledBindingGetHandlers(TypeReference tSourceRef, TypeReference tPropertyRef, IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, ElementNode node, ILContext context) 1748 static void SetDataTemplate(IElementNode parentNode, ElementNode node, ILContext parentContext,
SetResourcesVisitor.cs (4)
38 public void Visit(ElementNode node, INode parentNode) 70 public bool IsResourceDictionary(ElementNode node) => IsResourceDictionary((IElementNode)node); 81 var enode = node as ElementNode;
Microsoft.Maui.Controls.Xaml (42)
ApplyPropertiesVisitor.cs (4)
47 public bool IsResourceDictionary(ElementNode node) => Context.Types.TryGetValue(node, out var type) && typeof(ResourceDictionary).IsAssignableFrom(type); 75 var name = new XmlName(((ElementNode)parentNode).NamespaceURI, contentProperty); 89 public void Visit(ElementNode node, INode parentNode) 257 void ProvideValue(ref object value, ElementNode node, object source, XmlName propertyName)
CreateValuesVisitor.cs (4)
36 public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]); 47 public void Visit(ElementNode node, INode parentNode) 289 if (node is ElementNode elementNode) 300 array[i] = Values[(ElementNode)listnode.CollectionItems[i]];
ExpandMarkupsVisitor.cs (2)
38 public bool IsResourceDictionary(ElementNode node) => false; 65 public void Visit(ElementNode node, INode parentNode)
FillResourceDictionariesVisitor.cs (3)
26 public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]); 40 public void Visit(ElementNode node, INode parentNode) 79 if (!(node is ElementNode))
NamescopingVisitor.cs (4)
19 public bool IsResourceDictionary(ElementNode node) => false; 24 public void Visit(ElementNode node, INode parentNode) 43 static bool IsStyle(INode node, INode parentNode) => (parentNode as ElementNode)?.XmlType.Name == "Style"; 44 static bool IsVisualStateGroupList(ElementNode node) => node?.XmlType.Name == "VisualStateGroup" && node?.Parent is IListNode;
PruneIgnoredNodesVisitor.cs (3)
17 public bool IsResourceDictionary(ElementNode node) => false; 19 public void Visit(ElementNode node, INode parentNode) 68 Visit((ElementNode)node, node);
RegisterXNamesVisitor.cs (2)
22 public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]); 63 public void Visit(ElementNode node, INode parentNode)
RemoveDuplicateDesignNodes.cs (3)
12 public bool IsResourceDictionary(ElementNode node) => false; 22 public void Visit(ElementNode node, INode parentNode) 42 Visit((ElementNode)node, parentNode);
SimplifyOnPlatformVisitor.cs (2)
32 public bool IsResourceDictionary(ElementNode node) => false; 44 public void Visit(ElementNode node, INode parentNode)
SimplifyTypeExtensionVisitor.cs (5)
14 public bool IsResourceDictionary(ElementNode node) => false; 26 public void Visit(ElementNode node, INode parentNode) 38 static bool IsValueOfXDataTypeOrTargetType(ElementNode node, INode parentNode, out XmlName propertyName) 44 && parentNode is ElementNode { XmlType: var parentType } 56 static bool IsTypeExtension(ElementNode node, out ValueNode typeNameValueNode)
XamlLoader.cs (5)
129 cvv.Visit((ElementNode)rootnode, null); 173 if (resources is ElementNode resourcesEN && (resourcesEN.XmlType.NamespaceUri != XamlParser.MauiUri || resourcesEN.XmlType.Name != nameof(ResourceDictionary))) 176 ((ElementNode)resources).CollectionItems.Add(resourcesEN); 182 ((ElementNode)resources).CollectionItems.Add(n); 184 cvv.Visit((ElementNode)resources, null);
XamlNode.cs (1)
212 var clone = new ElementNode(XmlType, NamespaceURI, NamespaceResolver, LineNumber, LinePosition)
XamlNodeVisitor.cs (4)
15 void Visit(ElementNode node, INode parentNode); 19 bool IsResourceDictionary(ElementNode node); 47 public void Visit(ElementNode node, INode parentNode) => action(node, parentNode); 51 public bool IsResourceDictionary(ElementNode node) => false;