56 references to ResolveCached
Microsoft.Maui.Controls.Build.Tasks (56)
BindablePropertyReferenceExtensions.cs (4)
48
if (propertyType != null && propertyType.
ResolveCached
(cache).HasCustomAttributes)
49
attributes.AddRange(propertyType.
ResolveCached
(cache).CustomAttributes);
52
if (staticGetter != null && staticGetter.ReturnType.ResolveGenericParameters(bpRef.DeclaringType).
ResolveCached
(cache).HasCustomAttributes)
53
attributes.AddRange(staticGetter.ReturnType.ResolveGenericParameters(bpRef.DeclaringType).
ResolveCached
(cache).CustomAttributes);
CompiledMarkupExtensions\StaticExtension.cs (1)
64
if (memberRef.
ResolveCached
(context.Cache).IsEnum)
CompiledMarkupExtensions\StaticResourceExtension.cs (1)
139
[propertyRef, propertyType.
ResolveCached
(context.Cache)],
CreateObjectVisitor.cs (4)
52
TypeDefinition typedef = typeref.
ResolveCached
(Context.Cache);
316
[parameter, parameter.ParameterType.
ResolveCached
(Context.Cache)],
354
[parameter, parameter.ParameterType.
ResolveCached
(Context.Cache)],
459
module.TypeSystem.Object.
ResolveCached
(Context.Cache)
ModuleDefinitionExtensions.cs (6)
27
var ctor = module.ImportReference(type).
ResolveCached
(cache).Methods.FirstOrDefault(md => !md.IsPrivate && !md.IsStatic && md.IsConstructor && (predicate?.Invoke(md) ?? true));
107
.
ResolveCached
(cache)
127
.
ResolveCached
(cache)
147
.
ResolveCached
(cache)
239
.
ResolveCached
(cache)
287
foreach (var property in typedef.BaseType.
ResolveCached
(cache).Properties(cache, flatten: true))
NodeILExtensions.cs (10)
55
if (targetTypeRef.
ResolveCached
(context.Cache).FullName == "System.Nullable`1")
57
if (targetTypeRef.
ResolveCached
(context.Cache).BaseType != null && targetTypeRef.
ResolveCached
(context.Cache).BaseType.FullName == "System.Enum")
129
if (targetTypeRef.
ResolveCached
(context.Cache).FullName == "System.Nullable`1")
192
.
ResolveCached
(context.Cache)
194
: typeConverter.
ResolveCached
(context.Cache)
220
if (targetTypeRef.
ResolveCached
(context.Cache).FullName == "System.Nullable`1")
232
if (targetTypeRef.
ResolveCached
(context.Cache).BaseType != null && targetTypeRef.
ResolveCached
(context.Cache).BaseType.FullName == "System.Enum")
342
var enumDef = enumRef.
ResolveCached
(cache);
SetPropertiesVisitor.cs (17)
242
var typeDef = typeRef.
ResolveCached
(cache);
263
var markExt = markupExtension.
ResolveCached
(context.Cache);
392
var markExt = markupExtension.
ResolveCached
(context.Cache);
602
tPropertyRef = lastProp.propDeclTypeRef.
ResolveCached
(context.Cache);
613
var ctorInfo = module.ImportReference(typedBindingRef.
ResolveCached
(context.Cache).Methods.FirstOrDefault(md =>
666
&& parentTypeRef.
ResolveCached
(context.Cache) is TypeDefinition parentType
755
previousPartTypeRef.
ResolveCached
(context.Cache);
1110
var funcCtor = module.ImportReference(funcObjRef.
ResolveCached
(context.Cache).GetConstructors().First());
1112
var tupleCtor = module.ImportReference(tupleRef.
ResolveCached
(context.Cache).GetConstructors().First());
1284
var invoke = module.ImportReference(eventinfo.EventType.
ResolveCached
(context.Cache).GetMethods().First(eventmd => eventmd.Name == "Invoke"));
1304
var ctor = module.ImportReference(eventinfo.EventType.
ResolveCached
(context.Cache).GetConstructors().First());
1558
if (valueNode != null && valueNode.CanConvertValue(context, propertyType, new ICustomAttributeProvider[] { property, propertyType.
ResolveCached
(context.Cache) }))
1594
module.ImportReference(parent.VariableType.
ResolveCached
(context.Cache));
1620
module.ImportReference(parent.VariableType.
ResolveCached
(context.Cache));
1636
foreach (var instruction in valueNode.PushConvertedValue(context, propertyType, new ICustomAttributeProvider[] { property, propertyType.
ResolveCached
(context.Cache) }, (requiredServices) => valueNode.PushServiceProvider(context, requiredServices, propertyRef: property), false, true))
1660
module.ImportReference(parent.VariableType.
ResolveCached
(context.Cache));
1946
var attributes = variableDefinition.VariableType.
ResolveCached
(Context.Cache)
SetResourcesVisitor.cs (1)
76
|| parentVar.VariableType.
ResolveCached
(Context.Cache).BaseType?.FullName == "Microsoft.Maui.Controls.ResourceDictionary";
TypeDefinitionExtensions.cs (1)
57
self = self.BaseType?.
ResolveCached
(cache);
TypeReferenceExtensions.cs (11)
66
var typeDef = typeRef.
ResolveCached
(cache);
91
var typeDef = typeRef.
ResolveCached
(cache);
112
if (eventDef.EventType.
ResolveCached
(cache).FullName != "System.EventHandler`1")
128
var typeDef = typeRef.
ResolveCached
(cache);
140
var typeDef = typeRef.
ResolveCached
(cache);
154
var typeDef = typeRef.
ResolveCached
(cache);
194
foreach (var parameter in genericInstanceBaseClass.ElementType.
ResolveCached
(cache).GenericParameters)
226
var arrayType = typeRef.
ResolveCached
(cache);
230
arrayGenericInterfaces.Contains(baseClass.
ResolveCached
(cache).FullName) &&
240
var typeDef = typeRef.
ResolveCached
(cache);
277
var typeDef = typeRef.
ResolveCached
(cache);