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))
330
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, markupExtension, module))
370
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, markupExtensionType), module))
411
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, valueProviderInterface), module))
552
foreach (var instruction in bindingExt.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindingExtensionType), module))
1246
foreach (var instruction in (context.Root as VariableDefinition).
LoadAs
(context.Cache, ctor.Parameters[0].ParameterType.ResolveGenericParameters(ctor), module))
1290
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceHandlerType), module))
1293
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, dynamicResourceType), module))
1333
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindableObjectType), module))
1336
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, parameterTypes[1]), module))
1402
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindableObjectType), module))
1437
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, bpTypeRef, module))
1467
foreach (var instruction in parent.
LoadAs
(context.Cache, module.GetTypeDefinition(context.Cache, bindableObjectType), module))
1577
foreach (var instruction in context.Variables[elementNode].
LoadAs
(context.Cache, propertyType, module))
1693
foreach (var instruction in vardef.
LoadAs
(context.Cache, adderRef.Parameters[0].ParameterType.ResolveGenericParameters(adderRef), module))
1715
foreach (var instruction in context.Variables[node].
LoadAs
(context.Cache, module.TypeSystem.Object, module))
1755
parentContext.IL.Append(parentVar.
LoadAs
(parentContext.Cache, module.GetTypeDefinition(parentContext.Cache, dataTemplateType), module));
1821
parentIl.Append(kvp.Value.Item1.
LoadAs
(parentContext.Cache, module.ImportReference(parentContext.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Internals", "NameScope")), module));
1842
templateIl.Append(templateContext.Variables[node].
LoadAs
(parentContext.Cache, module.TypeSystem.Object, module));
1852
parentIl.Append((parentContext.Root as VariableDefinition).
LoadAs
(parentContext.Cache, module.TypeSystem.Object, module));