43 references to GetTypeDefinition
Microsoft.Maui.Controls.Build.Tasks (43)
CompiledConverters\GridLengthTypeConverter.cs (3)
37
type: module.
GetTypeDefinition
(context.Cache, ("Microsoft.Maui", "Microsoft.Maui", "GridLength")),
38
parameterTypes: new[] { module.TypeSystem.Double, module.
GetTypeDefinition
(context.Cache, ("Microsoft.Maui", "Microsoft.Maui", "GridUnitType")) }));
45
type: module.
GetTypeDefinition
(context.Cache, ("Microsoft.Maui", "Microsoft.Maui", "GridLength")),
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))
CompiledValueProviders\SetterValueProvider.cs (1)
38
foreach (var instruction in vardefref.VariableDefinition.LoadAs(context.Cache, module.
GetTypeDefinition
(context.Cache, setterType), module))
ModuleDefinitionExtensions.cs (16)
16
return cache.GetOrAddTypeReference(module, typeKey, x => module.ImportReference(module.ImportReference(cache, type).MakeGenericInstanceType(classArguments.Select(gp => module.
GetTypeDefinition
(cache, (gp.assemblyName, gp.clrNamespace, gp.typeName))).ToArray())));
53
return cache.GetOrAddMethodReference(module, ctorKey, x => x.module.ImportCtorReference(cache, x.module.
GetTypeDefinition
(cache, type), null, md => md.Parameters.Count == paramCount));
65
return cache.GetOrAddMethodReference(module, ctorKey, x => x.module.ImportCtorReference(cache, x.module.
GetTypeDefinition
(cache, type), classArguments.Select(args => x.module.
GetTypeDefinition
(cache, args)).ToArray(), md => md.Parameters.Count == paramCount));
71
return cache.GetOrAddMethodReference(module, ctorKey, x => x.module.ImportCtorReference(cache, x.module.
GetTypeDefinition
(cache, type), classArguments, predicate: md => md.Parameters.Count == paramCount));
77
return cache.GetOrAddMethodReference(module, ctorKey, x => x.module.ImportCtorReference(cache, x.module.
GetTypeDefinition
(cache, type), classArguments.Select(args => x.module.
GetTypeDefinition
(cache, args)).ToArray(), md =>
91
return cache.GetOrAddMethodReference(module, ctorKey, x => x.module.ImportCtorReference(cache, x.module.
GetTypeDefinition
(cache, type), classArguments: null, predicate: md =>
120
return cache.GetOrAddMethodReference(module, getterKey, x => x.module.ImportPropertyGetterReference(cache, x.module.
GetTypeDefinition
(cache, type), propertyName, pd => pd.GetMethod.IsStatic == isStatic, flatten, caseSensitive: caseSensitive));
140
return cache.GetOrAddMethodReference(module, setterKey, x => x.module.ImportPropertySetterReference(cache, x.module.
GetTypeDefinition
(cache, type), propertyName, pd => pd.SetMethod.IsStatic == isStatic));
196
x.module.
GetTypeDefinition
(cache, type),
209
classArguments: classArguments?.Select(gp => x.module.
GetTypeDefinition
(cache, (gp.assemblyName, gp.clrNamespace, gp.typeName))).ToArray()));
222
x.module.
GetTypeDefinition
(cache, type),
232
classArguments: classArguments?.Select(gp => x.module.
GetTypeDefinition
(cache, (gp.assemblyName, gp.clrNamespace, gp.typeName))).ToArray()));
250
return cache.GetOrAddFieldReference((module, fieldKey), _ => module.ImportFieldReference(cache, module.
GetTypeDefinition
(cache, type), fieldName: fieldName, predicate: fd => fd.IsStatic == isStatic, caseSensitive: caseSensitive));
275
return module.
GetTypeDefinition
(cache, ("System.Reflection", type.clrNamespace, type.typeName));
SetNamescopesAndRegisterNamesVisitor.cs (7)
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));
179
var elementTypeRef = module.
GetTypeDefinition
(Context.Cache, elementType);
SetPropertiesVisitor.cs (12)
141
Context.IL.Append(parentVar.LoadAs(Context.Cache, Module.
GetTypeDefinition
(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")), 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))
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))
1535
foreach (var instruction in parent.LoadAs(context.Cache, module.
GetTypeDefinition
(context.Cache, bindableObjectType), module))
1733
module.
GetTypeDefinition
(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary")),
1823
parentContext.IL.Append(parentVar.LoadAs(parentContext.Cache, module.
GetTypeDefinition
(parentContext.Cache, dataTemplateType), module));
XamlCache.cs (1)
42
GetOrAdd(_typeReferenceCache, (module, type.ToString()), x => x.module.ImportReference(x.module.
GetTypeDefinition
(this, type)));
XmlTypeExtensions.cs (1)
80
var type = module.
GetTypeDefinition
(cache, (typeInfo.assemblyName, typeInfo.clrNamespace, typeName));