42 references to LoadAs
Microsoft.Maui.Controls.Build.Tasks (42)
CompiledConverters\RDSourceTypeConverter.cs (2)
115
foreach (var instruction in context.Variables[rdNode].
LoadAs
(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule))
132
foreach (var instruction in context.Variables[rdNode].
LoadAs
(context.Cache, currentModule.GetTypeDefinition(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), currentModule))
CompiledMarkupExtensions\ArrayExtension.cs (2)
45
foreach (var instruction in vardef.
LoadAs
(context.Cache, typeTypeRef, module))
53
foreach (var instruction in vardef.
LoadAs
(context.Cache, typeTypeRef, module))
CompiledValueProviders\SetterValueProvider.cs (1)
38
foreach (var instruction in vardefref.VariableDefinition.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, setterType), module))
CreateObjectVisitor.cs (2)
310
foreach (var instruction in vardef.
LoadAs
(Context.Cache, parameter.ParameterType.ResolveGenericParameters(ctorinfo), Module))
348
foreach (var instruction in vardef.
LoadAs
(Context.Cache, parameter.ParameterType.ResolveGenericParameters(factoryCtorInfo), Module))
NodeILExtensions.cs (2)
547
foreach (var instruction in context.Variables[en].
LoadAs
(context.Cache, module.TypeSystem.Object, module))
676
foreach (var instruction in variableDefinition.
LoadAs
(context.Cache, module.TypeSystem.Object, module))
SetFieldVisitor.cs (1)
37
Context.IL.Append(Context.Variables[(IElementNode)parentNode].
LoadAs
(Context.Cache, field.FieldType, Context.Module));
SetNamescopesAndRegisterNamesVisitor.cs (9)
70
Context.IL.Append(Context.Variables[node].
LoadAs
(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module));
71
Context.IL.Append(namescopeVarDef.
LoadAs
(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[1]), module));
111
Context.IL.Append(Context.Variables[node].
LoadAs
(Context.Cache, module.GetTypeDefinition(Context.Cache, namescoperef), module));
144
Context.IL.Append(Context.Variables[node].
LoadAs
(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[0]), module));
145
Context.IL.Append(ns.
LoadAs
(Context.Cache, module.GetTypeDefinition(Context.Cache, parameterTypes[1]), module));
160
Context.IL.Append(namescopeVarDef.
LoadAs
(Context.Cache, module.GetTypeDefinition(Context.Cache, namescopeType), module));
162
Context.IL.Append(element.
LoadAs
(Context.Cache, module.TypeSystem.Object, module));
182
Context.IL.Append(element.
LoadAs
(Context.Cache, elementTypeRef, module));
185
Context.IL.Append(element.
LoadAs
(Context.Cache, elementTypeRef, module));
SetPropertiesVisitor.cs (23)
141
Context.IL.Append(parentVar.
LoadAs
(Context.Cache, Module.GetTypeDefinition(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), Module));
163
Context.IL.Append(vardef.
LoadAs
(Context.Cache, adderRef.Parameters[0].ParameterType.ResolveGenericParameters(adderRef), Module));
203
Context.IL.Append(vardef.
LoadAs
(Context.Cache, adderRef.Parameters[0].ParameterType.ResolveGenericParameters(adderRef), Module));
275
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, markupExtension, module))
398
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, markupExtension, module))
438
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, markupExtensionType), module))
479
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, valueProviderInterface), module))
620
foreach (var instruction in bindingExt.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindingExtensionType), module))
1314
foreach (var instruction in (context.Root as VariableDefinition).
LoadAs
(context.Cache, ctor.Parameters[0].ParameterType.ResolveGenericParameters(ctor), module))
1358
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceHandlerType), module))
1361
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceType), module))
1401
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindableObjectType), module))
1404
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, parameterTypes[1]), module))
1470
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindableObjectType), module))
1505
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, bpTypeRef, module))
1535
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindableObjectType), module))
1645
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, propertyType, module))
1761
foreach (var instruction in vardef.
LoadAs
(context.Cache, adderRef.Parameters[0].ParameterType.ResolveGenericParameters(adderRef), module))
1783
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, module.TypeSystem.Object, module))
1823
parentContext.IL.Append(parentVar.
LoadAs
(parentContext.Cache, module.GetTypeDefinition(parentContext.Cache, dataTemplateType), module));
1889
parentIl.Append(kvp.Value.Item1.
LoadAs
(parentContext.Cache, module.ImportReference(parentContext.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Internals", "NameScope")), module));
1910
templateIl.Append(templateContext.Variables[node].
LoadAs
(parentContext.Cache, module.TypeSystem.Object, module));
1920
parentIl.Append((parentContext.Root as VariableDefinition).
LoadAs
(parentContext.Cache, module.TypeSystem.Object, module));