1 write to Module
Microsoft.Maui.Controls.Build.Tasks (1)
SetPropertiesVisitor.cs (1)
31 Module = context.Body.Method.Module;
15 references to Module
Microsoft.Maui.Controls.Build.Tasks (15)
SetPropertiesVisitor.cs (15)
117 Context.IL.Append(ProvideValue(vardefref, Context, Module, node, bpRef: bpRef, propertyRef: propertyRef, propertyDeclaringTypeRef: declaringTypeReference)); 141 Context.IL.Append(parentVar.LoadAs(Context.Cache, Module.GetTypeDefinition(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), Module)); 154 else if (parentVar.VariableType.ImplementsInterface(Context.Cache, Module.ImportReference(Context.Cache, ("mscorlib", "System.Collections", "IEnumerable"))) 155 && parentVar.VariableType.GetMethods(Context.Cache, md => md.Name == "Add" && md.Parameters.Count == 1, Module).Any()) 158 var adderTuple = elementType.GetMethods(Context.Cache, md => md.Name == "Add" && md.Parameters.Count == 1, Module).First(); 159 var adderRef = Module.ImportReference(adderTuple.Item1); 160 adderRef = Module.ImportReference(adderRef.ResolveGenericParameters(adderTuple.Item2, Module)); 163 Context.IL.Append(vardef.LoadAs(Context.Cache, adderRef.Parameters[0].ParameterType.ResolveGenericParameters(adderRef), Module)); 197 var adderTuple = propertyType.GetMethods(Context.Cache, md => md.Name == "Add" && md.Parameters.Count == 1, Module).FirstOrDefault() ?? 200 var adderRef = Module.ImportReference(adderTuple.Item1); 201 adderRef = Module.ImportReference(adderRef.ResolveGenericParameters(adderTuple.Item2, Module)); 203 Context.IL.Append(vardef.LoadAs(Context.Cache, adderRef.Parameters[0].ParameterType.ResolveGenericParameters(adderRef), Module));