11 instantiations of ValueNode
Microsoft.Maui.Controls.Build.Tasks (3)
ExpandMarkupsVisitor.cs (3)
87 return new ValueNode(expression.Substring(2), null); 180 childnodes.Add((childname, new ValueNode(typeArguments, nsResolver))); 184 var childnode = parsed.value as INode ?? new ValueNode(parsed.strValue, nsResolver);
Microsoft.Maui.Controls.Xaml (8)
ExpandMarkupsVisitor.cs (3)
81 return new ValueNode(expression.Substring(2), null); 171 childnodes.Add((childname, new ValueNode(typeArguments, nsResolver))); 175 var childnode = parsed.value as INode ?? new ValueNode(parsed.strValue, nsResolver);
XamlNode.cs (1)
125 public override INode Clone() => new ValueNode(Value, NamespaceResolver, LineNumber, LinePosition)
XamlParser.cs (4)
127 node.CollectionItems.Add(new ValueNode(reader.Value.Trim(), (IXmlNamespaceResolver)reader)); 181 node = new ValueNode(reader.Value.Trim(), (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 322 return new ValueNode(valueString.Substring(2), (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber, 330 return new ValueNode(value, (IXmlNamespaceResolver)reader, ((IXmlLineInfo)reader).LineNumber,
95 references to ValueNode
Microsoft.Maui.Controls.Build.Tasks (64)
CompiledConverters\BindablePropertyConverter.cs (2)
81 => ((node as ElementNode).Properties[new XmlName("", "TargetType")] as ValueNode)?.Value as string; 102 return ((target?.Parent as IElementNode)?.Properties[new XmlName("", "TargetType")] as ValueNode)?.Value as string;
CompiledMarkupExtensions\DataTemplateExtension.cs (1)
22 if (!(typeNameNode is ValueNode valueNode))
CompiledMarkupExtensions\StaticExtension.cs (1)
18 var member = ((ValueNode)ntype).Value as string;
CompiledMarkupExtensions\StaticResourceExtension.cs (8)
23 if (!(keyNode is ValueNode keyValueNode)) 35 && xKeyNode is ValueNode xKeyValueNode 40 foreach (var instruction in TryConvert(irn.CollectionItems[0] as ValueNode, eNode, vardefref, module, context)) 56 && xKeyNode2 is ValueNode xKeyValueNode2 61 foreach (var instruction in TryConvert(irn2.CollectionItems[0] as ValueNode, eNode, vardefref, module, context)) 81 && xKeyNode3 is ValueNode xKeyValueNode3 86 foreach (var instruction in TryConvert(irn3.CollectionItems[0] as ValueNode, eNode, vardefref, module, context)) 111 public static IEnumerable<Instruction> TryConvert(ValueNode stringResourceNode, IElementNode node, VariableDefinitionReference vardefref, ModuleDefinition module, ILContext context)
CompiledMarkupExtensions\TypeExtension.cs (1)
22 if (!(typeNameNode is ValueNode valueNode))
CompiledValueProviders\SetterValueProvider.cs (4)
20 var bpNode = ((ValueNode)((IElementNode)node).Properties[new XmlName("", "Property")]); 34 var value = ((string)((ValueNode)valueNode).Value); 42 foreach (var instruction in ((ValueNode)valueNode).PushConvertedValue(context, bpRef, (requiredServices) => valueNode.PushServiceProvider(context, requiredServices, bpRef: bpRef), boxValueTypes: true, unboxValueTypes: false))
CompiledValueProviders\StyleSheetProvider.cs (4)
33 if (styleNode != null && !(styleNode is ValueNode)) 36 if (sourceNode != null && !(sourceNode is ValueNode)) 41 var style = (styleNode as ValueNode).Value as string; 50 var source = (sourceNode as ValueNode)?.Value as string;
CreateObjectVisitor.cs (13)
39 public void Visit(ValueNode node, INode parentNode) 144 var factoryMethod = (string)(node.Properties[XmlName.xFactoryMethod] as ValueNode).Value; 201 ValueNode vnode = null; 202 if (node.CollectionItems.Count == 1 && (vnode = node.CollectionItems.First() as ValueNode) != null && 211 else if (node.CollectionItems.Count == 1 && (vnode = node.CollectionItems.First() as ValueNode) != null && 216 Context.IL.Emit(OpCodes.Ldstr, ((ValueNode)(node.CollectionItems.First())).Value as string); 307 ValueNode vnode = null; 312 else if ((vnode = node as ValueNode) != null) 345 ValueNode vnode = null; 350 else if ((vnode = arg as ValueNode) != null) 395 var hasValue = node.CollectionItems.Count == 1 && node.CollectionItems[0] is ValueNode && 396 ((ValueNode)node.CollectionItems[0]).Value is string; 397 var valueString = hasValue ? ((ValueNode)node.CollectionItems[0]).Value as string : string.Empty;
ExpandMarkupsVisitor.cs (1)
36 public void Visit(ValueNode node, INode parentNode)
NodeILExtensions.cs (6)
18 public static bool CanConvertValue(this ValueNode node, ILContext context, TypeReference targetTypeRef, IEnumerable<ICustomAttributeProvider> attributeProviders) 37 public static bool CanConvertValue(this ValueNode node, ILContext context, FieldReference bpRef) 45 public static bool CanConvertValue(this ValueNode node, ILContext context, TypeReference targetTypeRef, TypeReference typeConverter) 99 public static IEnumerable<Instruction> PushConvertedValue(this ValueNode node, ILContext context, 121 public static IEnumerable<Instruction> PushConvertedValue(this ValueNode node, ILContext context, FieldReference bpRef, 148 public static IEnumerable<Instruction> PushConvertedValue(this ValueNode node, ILContext context,
SetFieldVisitor.cs (2)
29 public void Visit(ValueNode node, INode parentNode) 57 static bool IsXNameProperty(ValueNode node, INode parentNode)
SetNamescopesAndRegisterNamesVisitor.cs (2)
30 public void Visit(ValueNode node, INode parentNode) 98 static bool IsXNameProperty(ValueNode node, INode parentNode)
SetPropertiesVisitor.cs (18)
51 public void Visit(ValueNode node, INode parentNode) 436 var path = (pathNode as ValueNode)?.Value as string; 438 || !Enum.TryParse((modeNode as ValueNode)?.Value as string, true, out BindingMode declaredmode)) 497 string dataType = (dataTypeNode as ValueNode)?.Value as string; 1181 return !attached && valueNode is ValueNode && parent.VariableType.GetEvent(context.Cache, ed => ed.Name == localName, out _) != null; 1204 var value = ((ValueNode)valueNode).Value; 1350 if (node is ValueNode valueNode && valueNode.CanConvertValue(context, bpRef)) 1392 var valueNode = node as ValueNode; 1489 var valueNode = node as ValueNode; 1556 var valueNode = node as ValueNode; 1653 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1707 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1873 bool TrySetRuntimeName(XmlName propertyName, VariableDefinition variableDefinition, ValueNode node)
SetResourcesVisitor.cs (1)
25 public void Visit(ValueNode node, INode parentNode)
Microsoft.Maui.Controls.Xaml (31)
ApplyPropertiesVisitor.cs (5)
49 public void Visit(ValueNode node, INode parentNode) 140 if ((node.Properties[XmlName.xKey] is ValueNode valueNode)) 202 if ((node.Properties[XmlName.xKey] is ValueNode valueNode)) 349 var xKey = node is IElementNode eNode && eNode.Properties.ContainsKey(XmlName.xKey) ? ((ValueNode)eNode.Properties[XmlName.xKey]).Value as string : null; 831 bool TrySetRuntimeName(XmlName propertyName, object source, object value, ValueNode node)
CreateValuesVisitor.cs (6)
38 public void Visit(ValueNode node, INode parentNode) 95 if (value == null && node.CollectionItems.Any() && node.CollectionItems.First() is ValueNode) 98 var converted = ((ValueNode)node.CollectionItems.First()).Value.ConvertTo(type, () => type, 251 var factoryMethod = ((string)((ValueNode)node.Properties[XmlName.xFactoryMethod]).Value); 346 && node.CollectionItems[0] is ValueNode 347 && ((ValueNode)node.CollectionItems[0]).Value is string valuestring)
ExpandMarkupsVisitor.cs (1)
40 public void Visit(ValueNode node, INode parentNode)
FillResourceDictionariesVisitor.cs (1)
28 public void Visit(ValueNode node, INode parentNode)
NamescopingVisitor.cs (1)
21 public void Visit(ValueNode node, INode parentNode) => _scopes[node] = _scopes[parentNode];
PruneIgnoredNodesVisitor.cs (2)
24 if (!((propertyKvp.Value as ValueNode)?.Value is string propertyValue)) 86 public void Visit(ValueNode node, INode parentNode)
RegisterXNamesVisitor.cs (2)
24 public void Visit(ValueNode node, INode parentNode) 75 static bool IsXNameProperty(ValueNode node, INode parentNode)
RemoveDuplicateDesignNodes.cs (1)
14 public void Visit(ValueNode node, INode parentNode)
SimplifyOnPlatformVisitor.cs (1)
35 public void Visit(ValueNode node, INode parentNode)
SimplifyTypeExtensionVisitor.cs (5)
17 public void Visit(ValueNode node, INode parentNode) 33 && IsTypeExtension(node, out ValueNode typeNameValueNode)) 56 static bool IsTypeExtension(ElementNode node, out ValueNode typeNameValueNode) 62 && node.Properties[typeNameXmlName] is ValueNode { Value: string } propertyValueNode) 69 && node.CollectionItems[0] is ValueNode { Value: string } collectionValueNode)
XamlNodeVisitor.cs (2)
13 void Visit(ValueNode node, INode parentNode); 45 public void Visit(ValueNode node, INode parentNode) => action(node, parentNode);
XamlParser.cs (3)
124 if (node.CollectionItems.Count == 1 && node.CollectionItems[0] is ValueNode) 125 ((ValueNode)node.CollectionItems[0]).Value += reader.Value.Trim(); 200 ? ((ValueNode)attributes.First(kvp => kvp.Key == XmlName.xTypeArguments).Value).Value as IList<XmlType>
XamlServiceProvider.cs (1)
369 if (dataTypeNode is ValueNode valueNode)