2 instantiations of ILContext
Microsoft.Maui.Controls.Build.Tasks (2)
SetPropertiesVisitor.cs (1)
1869 var templateContext = new ILContext(templateIl, loadTemplate.Body, module, parentContext.Cache, parentValues)
XamlCTask.cs (1)
427 var visitorContext = new ILContext(il, body, module, cache)
110 references to ILContext
Microsoft.Maui.Controls.Build.Tasks (110)
CompiledConverters\BindablePropertyConverter.cs (2)
15 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 28 public FieldReference GetBindablePropertyFieldReference(string value, ILContext context, ModuleDefinition module, BaseNode node)
CompiledConverters\BoundsTypeConverter.cs (2)
14 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 59 IEnumerable<Instruction> GenerateIL(ILContext context, double x, double y, double w, double h, ModuleDefinition module)
CompiledConverters\BrushTypeConverter.cs (1)
11 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\ColorTypeConverter.cs (1)
12 public virtual IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\ColumnDefinitionCollectionTypeConverter.cs (1)
12 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\ConstraintTypeConverter.cs (1)
13 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\CornerRadiusTypeConverter.cs (2)
13 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 39 IEnumerable<Instruction> GenerateIL(ILContext context, ModuleDefinition module, params double[] args)
CompiledConverters\EasingTypeConverter.cs (1)
12 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\EnumTypeConverter.cs (1)
11 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\FlexBasisTypeConverter.cs (1)
13 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\FontSizeTypeConverter.cs (1)
12 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\GridLengthTypeConverter.cs (1)
14 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\ICompiledTypeConverter.cs (2)
12 IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node); 21 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\ImageSourceTypeConverter.cs (1)
11 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\LayoutOptionsConverter.cs (1)
13 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\ListStringTypeConverter.cs (1)
14 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\PointTypeConverter.cs (2)
12 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 26 public IEnumerable<Instruction> CreatePoint(ILContext context, ModuleDefinition module, Point point)
CompiledConverters\RDSourceTypeConverter.cs (5)
15 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 78 private static IEnumerable<Instruction> CreateUri(ILContext context, ILRootNode rootNode, string value, BaseNode node, string asmName) 90 ILContext context, 122 ILContext context, 165 internal static string GetPathForType(ILContext context, ModuleDefinition module, TypeReference type)
CompiledConverters\RectangleTypeConverter.cs (2)
14 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 32 IEnumerable<Instruction> GenerateIL(ILContext context, double x, double y, double w, double h, ModuleDefinition module)
CompiledConverters\RowDefinitionCollectionTypeConverter.cs (1)
12 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\StrokeShapeTypeConverter.cs (2)
16 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 217 IEnumerable<Instruction> CreatePointCollection(ILContext context, ModuleDefinition module, PointCollection points)
CompiledConverters\ThicknessTypeConverter.cs (2)
13 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node) 44 IEnumerable<Instruction> GenerateIL(ILContext context, ModuleDefinition module, params double[] args)
CompiledConverters\TypeTypeConverter.cs (1)
14 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledConverters\UriTypeConverter.cs (1)
12 public IEnumerable<Instruction> ConvertFromString(string value, ILContext context, BaseNode node)
CompiledMarkupExtensions\ArrayExtension.cs (2)
11 public IEnumerable<Instruction> ProvideValue(IElementNode node, ModuleDefinition module, ILContext context, out TypeReference memberRef) 20 IEnumerable<Instruction> ProvideValue(TypeReference typeTypeRef, IReadOnlyList<INode> items, ModuleDefinition module, ILContext context)
CompiledMarkupExtensions\DataTemplateExtension.cs (1)
14 public IEnumerable<Instruction> ProvideValue(IElementNode node, ModuleDefinition module, ILContext context, out TypeReference typeRef)
CompiledMarkupExtensions\ICompiledMarkupExtension.cs (1)
10 IEnumerable<Instruction> ProvideValue(IElementNode node, ModuleDefinition module, ILContext context, out TypeReference typeRef);
CompiledMarkupExtensions\NullExtension.cs (1)
12 public IEnumerable<Instruction> ProvideValue(IElementNode node, ModuleDefinition module, ILContext context, out TypeReference typeRef)
CompiledMarkupExtensions\StaticExtension.cs (1)
13 public IEnumerable<Instruction> ProvideValue(IElementNode node, ModuleDefinition module, ILContext context, out TypeReference memberRef)
CompiledMarkupExtensions\StaticResourceExtension.cs (3)
15 public IEnumerable<Instruction> ProvideValue(VariableDefinitionReference vardefref, ModuleDefinition module, BaseNode node, ILContext context) 111 public static IEnumerable<Instruction> TryConvert(ValueNode stringResourceNode, IElementNode node, VariableDefinitionReference vardefref, ModuleDefinition module, ILContext context) 151 public static IEnumerable<Instruction> FallBack(string key, IElementNode node, ModuleDefinition module, ILContext context)
CompiledMarkupExtensions\TypeExtension.cs (1)
14 public IEnumerable<Instruction> ProvideValue(IElementNode node, ModuleDefinition module, ILContext context, out TypeReference memberRef)
CompiledValueProviders\ICompiledValueProvider.cs (1)
10 IEnumerable<Instruction> ProvideValue(VariableDefinitionReference vardefref, ModuleDefinition module, BaseNode node, ILContext context);
CompiledValueProviders\SetterValueProvider.cs (2)
12 public IEnumerable<Instruction> ProvideValue(VariableDefinitionReference vardefref, ModuleDefinition module, BaseNode node, ILContext context) 49 static bool SetterValueIsCollection(FieldReference bindablePropertyReference, ModuleDefinition module, BaseNode node, ILContext context)
CompiledValueProviders\StyleSheetProvider.cs (1)
14 public IEnumerable<Instruction> ProvideValue(VariableDefinitionReference vardefref, ModuleDefinition module, BaseNode node, ILContext context)
CreateObjectVisitor.cs (2)
16 public CreateObjectVisitor(ILContext context) 22 public ILContext Context { get; }
ExpandMarkupsVisitor.cs (5)
19 public ExpandMarkupsVisitor(ILContext context) => Context = context; 21 ILContext Context { get; } 83 static INode ParseExpression(ref string expression, ILContext context, IXmlNamespaceResolver nsResolver, 108 public ILContextProvider(ILContext context) => Context = context; 110 public ILContext Context { get; }
MethodDefinitionExtensions.cs (1)
9 public static bool MatchXArguments(this MethodDefinition methodDef, ElementNode enode, TypeReference declaringTypeRef, ModuleDefinition module, ILContext context)
NodeILExtensions.cs (11)
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, 434 public static IEnumerable<Instruction> PushXmlLineInfo(this INode node, ILContext context) 463 public static IEnumerable<Instruction> PushParentObjectsArray(this INode node, ILContext context) 554 static IEnumerable<Instruction> PushTargetProperty(ILContext context, FieldReference bpRef, PropertyReference propertyRef, TypeReference declaringTypeReference, ModuleDefinition module) 579 static IEnumerable<Instruction> PushNamescopes(INode node, ILContext context, ModuleDefinition module) 605 public static IEnumerable<Instruction> PushServiceProvider(this INode node, ILContext context, TypeReference[] requiredServices, FieldReference bpRef = null, PropertyReference propertyRef = null, TypeReference declaringTypeReference = null)
SetFieldVisitor.cs (2)
9 public SetFieldVisitor(ILContext context) 14 public ILContext Context { get; }
SetNamescopesAndRegisterNamesVisitor.cs (2)
13 public SetNamescopesAndRegisterNamesVisitor(ILContext context) => Context = context; 15 ILContext Context { get; }
SetPropertiesVisitor.cs (34)
28 public SetPropertiesVisitor(ILContext context, bool stopOnResourceDictionary = false) 35 public ILContext Context { get; } 253 public static IEnumerable<Instruction> ProvideValue(VariableDefinitionReference vardefref, ILContext context, 495 static bool TryCompileBindingPath(ElementNode node, ILContext context, VariableDefinition bindingExt, (string, string, string) bindingExtensionType, out IEnumerable<Instruction> instructions) 672 static bool TryParsePath(ILContext context, string path, TypeReference tSourceRef, IXmlLineInfo lineInfo, ModuleDefinition module, out IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> pathProperties) 821 static IEnumerable<Instruction> CompiledBindingGetGetter(TypeReference tSourceRef, TypeReference tPropertyRef, IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, ElementNode node, ILContext context) 915 static IEnumerable<Instruction> CompiledBindingGetSetter(TypeReference tSourceRef, TypeReference tPropertyRef, IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, ElementNode node, ILContext context) 1040 static IEnumerable<Instruction> CompiledBindingGetHandlers(TypeReference tSourceRef, TypeReference tPropertyRef, IList<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, ElementNode node, ILContext context) 1170 public static IEnumerable<Instruction> SetPropertyValue(VariableDefinition parent, XmlName propertyName, INode valueNode, ILContext context, IXmlLineInfo iXmlLineInfo) 1202 public static IEnumerable<Instruction> GetPropertyValue(VariableDefinition parent, XmlName propertyName, ILContext context, IXmlLineInfo lineInfo, out TypeReference propertyType) 1220 static FieldReference GetBindablePropertyReference(VariableDefinition parent, string namespaceURI, ref string localName, out bool attached, ILContext context, IXmlLineInfo iXmlLineInfo) 1223 public static FieldReference GetBindablePropertyReference(TypeReference bpOwnerType, string namespaceURI, ref string localName, out bool attached, ILContext context, IXmlLineInfo iXmlLineInfo) 1247 static bool CanConnectEvent(VariableDefinition parent, string localName, INode valueNode, bool attached, ILContext context) 1252 static IEnumerable<Instruction> ConnectEvent(VariableDefinition parent, string localName, INode valueNode, IXmlLineInfo iXmlLineInfo, ILContext context) 1338 static bool CanSetDynamicResource(FieldReference bpRef, INode valueNode, ILContext context) 1352 static IEnumerable<Instruction> SetDynamicResource(VariableDefinition parent, FieldReference bpRef, IElementNode elementNode, IXmlLineInfo iXmlLineInfo, ILContext context) 1373 static bool CanSetBinding(FieldReference bpRef, INode valueNode, ILContext context) 1391 static IEnumerable<Instruction> SetBinding(VariableDefinition parent, FieldReference bpRef, IElementNode elementNode, IXmlLineInfo iXmlLineInfo, ILContext context) 1411 static bool CanSetValue(FieldReference bpRef, bool attached, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1443 static bool CanGetValue(VariableDefinition parent, FieldReference bpRef, bool attached, IXmlLineInfo iXmlLineInfo, ILContext context, out TypeReference propertyType) 1458 static IEnumerable<Instruction> SetValue(VariableDefinition parent, FieldReference bpRef, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1524 static IEnumerable<Instruction> GetValue(VariableDefinition parent, FieldReference bpRef, IXmlLineInfo iXmlLineInfo, ILContext context, out TypeReference propertyType) 1530 static IEnumerable<Instruction> GetValue(VariableDefinition parent, FieldReference bpRef, IXmlLineInfo iXmlLineInfo, ILContext context) 1545 static bool CanSet(VariableDefinition parent, string localName, INode node, ILContext context) 1582 static bool CanGet(VariableDefinition parent, string localName, ILContext context, out TypeReference propertyType) 1602 static IEnumerable<Instruction> Set(VariableDefinition parent, string localName, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1654 static IEnumerable<Instruction> Get(VariableDefinition parent, string localName, IXmlLineInfo iXmlLineInfo, ILContext context, out TypeReference propertyType) 1677 static bool CanAdd(VariableDefinition parent, XmlName propertyName, INode valueNode, IXmlLineInfo lineInfo, ILContext context) 1713 static bool CanAddToResourceDictionary(VariableDefinition parent, TypeReference collectionType, IElementNode node, IXmlLineInfo lineInfo, ILContext context) 1740 static IEnumerable<Instruction> Add(VariableDefinition parent, XmlName propertyName, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1768 static IEnumerable<Instruction> AddToResourceDictionary(VariableDefinition parent, IElementNode node, IXmlLineInfo lineInfo, ILContext context) 1803 ILContext context, IXmlLineInfo lineInfo) 1816 static void SetDataTemplate(IElementNode parentNode, ElementNode node, ILContext parentContext, 1869 var templateContext = new ILContext(templateIl, loadTemplate.Body, module, parentContext.Cache, parentValues)
SetResourcesVisitor.cs (2)
12 public SetResourcesVisitor(ILContext context) 18 public ILContext Context { get; }
XamlCTask.cs (1)
427 var visitorContext = new ILContext(il, body, module, cache)