1 write to VariableType
illink (1)
Linker.Steps\UnreachableBlocksOptimizer.cs (1)
1601
body_variables[index].
VariableType
= objectType ?? throw new NotSupportedException("Missing predefined 'System.Object' type");
98 references to VariableType
illink (5)
Linker.Dataflow\LocalVariableReferenceValue.cs (1)
9
: ReferenceValue(LocalDefinition.
VariableType
)
Linker.Steps\MarkStep.cs (1)
3874
MarkType(var.
VariableType
, new DependencyInfo(DependencyKind.VariableType, methodIL.Method), origin);
Linker.Steps\UnreachableBlocksOptimizer.cs (1)
2147
return CodeRewriterStep.CreateConstantResultInstruction(context, variables[index].
VariableType
);
Linker\MethodBodyScanner.cs (1)
108
AddIfResolved(types, var.
VariableType
);
Linker\TypeReferenceWalker.cs (1)
186
WalkScopeOfTypeReference(v.
VariableType
);
Microsoft.Maui.Controls.Build.Tasks (90)
CompiledMarkupExtensions\StaticResourceExtension.cs (3)
38
if (context.Variables[irn].
VariableType
.FullName == "System.String")
59
if (context.Variables[irn2].
VariableType
.FullName == "System.String")
84
if (context.Variables[irn3].
VariableType
.FullName == "System.String")
CompiledValueProviders\SetterValueProvider.cs (1)
69
return context.Variables[firstItem].
VariableType
.InheritsFromOrImplements(context.Cache, genericType);
CreateObjectVisitor.cs (3)
35
return parentVar.
VariableType
.FullName == "Microsoft.Maui.Controls.ResourceDictionary"
36
|| parentVar.
VariableType
.Resolve().BaseType?.FullName == "Microsoft.Maui.Controls.ResourceDictionary";
203
(vardef.
VariableType
.IsValueType || isColor))
ExpandMarkupsVisitor.cs (2)
32
return parentVar.
VariableType
.FullName == "Microsoft.Maui.Controls.ResourceDictionary"
33
|| parentVar.
VariableType
.Resolve().BaseType?.FullName == "Microsoft.Maui.Controls.ResourceDictionary";
MethodDefinitionExtensions.cs (1)
36
var argType = context.Variables[arguments[i] as IElementNode].
VariableType
;
SetFieldVisitor.cs (2)
25
return parentVar.
VariableType
.FullName == "Microsoft.Maui.Controls.ResourceDictionary"
26
|| parentVar.
VariableType
.Resolve().BaseType?.FullName == "Microsoft.Maui.Controls.ResourceDictionary";
SetNamescopesAndRegisterNamesVisitor.cs (7)
26
return parentVar.
VariableType
.FullName == "Microsoft.Maui.Controls.ResourceDictionary"
27
|| parentVar.
VariableType
.Resolve().BaseType?.FullName == "Microsoft.Maui.Controls.ResourceDictionary";
60
if (setNameScope && Context.Variables[node].
VariableType
.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
63
else if (Context.Variables[node].
VariableType
.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "Element"))))
81
if (Context.Variables[node].
VariableType
.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
108
if (Context.Variables[node].
VariableType
.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
174
if (!element.
VariableType
.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "Element"))))
SetPropertiesVisitor.cs (64)
45
return parentVar.
VariableType
.FullName == "Microsoft.Maui.Controls.ResourceDictionary"
46
|| parentVar.
VariableType
.Resolve().BaseType?.FullName == "Microsoft.Maui.Controls.ResourceDictionary";
62
if ((contentProperty = GetContentProperty(Context.Cache, parentVar.
VariableType
)) != null)
115
propertyRef = Context.Variables[(IElementNode)parentNode].
VariableType
.GetProperty(Context.Cache, pd => pd.Name == localName, out declaringTypeReference);
139
if (CanAddToResourceDictionary(parentVar, parentVar.
VariableType
, node, node, Context))
144
else if ((contentProperty = GetContentProperty(Context.Cache, parentVar.
VariableType
)) != null)
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())
157
var elementType = parentVar.
VariableType
;
186
var elementType = parent.
VariableType
;
198
throw new BuildException(BuildExceptionCode.AdderMissing, node, null, parent.
VariableType
, localname);
259
if (vardefref.VariableDefinition.
VariableType
.FullName == "Microsoft.Maui.Controls.Xaml.ArrayExtension" &&
260
vardefref.VariableDefinition.
VariableType
.ImplementsGenericInterface(context.Cache, "Microsoft.Maui.Controls.Xaml.IMarkupExtension`1",
284
else if (vardefref.VariableDefinition.
VariableType
.ImplementsGenericInterface(context.Cache, "Microsoft.Maui.Controls.Xaml.IMarkupExtension`1",
287
var acceptEmptyServiceProvider = vardefref.VariableDefinition.
VariableType
.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
288
var requiredServiceType = vardefref.VariableDefinition.
VariableType
.GetRequiredServices(context.Cache, module);
291
context.LoggingHelper.LogWarningOrError(BuildExceptionCode.UnattributedMarkupType, context.XamlFilePath, node.LineNumber, node.LinePosition, 0, 0, vardefref.VariableDefinition.
VariableType
);
293
(string, string, string)? bindingExtensionType = vardefref.VariableDefinition.
VariableType
.FullName switch
408
else if (context.Variables[node].
VariableType
.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IMarkupExtension"))))
410
var acceptEmptyServiceProvider = context.Variables[node].
VariableType
.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
411
var requiredServiceType = vardefref.VariableDefinition.
VariableType
.GetRequiredServices(context.Cache, module);
414
context.LoggingHelper.LogWarningOrError(BuildExceptionCode.UnattributedMarkupType, context.XamlFilePath, node.LineNumber, node.LinePosition, 0, 0, vardefref.VariableDefinition.
VariableType
);
418
var compiledValueProviderName = context.Variables[node].
VariableType
.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "ProvideCompiledAttribute"))?.ConstructorArguments?[0].Value as string;
451
else if (context.Variables[node].
VariableType
.ImplementsInterface(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IValueProvider"))))
453
var acceptEmptyServiceProvider = context.Variables[node].
VariableType
.GetCustomAttribute(context.Cache, module, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "AcceptEmptyServiceProviderAttribute")) != null;
454
var requiredServiceType = vardefref.VariableDefinition.
VariableType
.GetRequiredServices(context.Cache, module);
457
context.LoggingHelper.LogWarningOrError(BuildExceptionCode.UnattributedMarkupType, context.XamlFilePath, node.LineNumber, node.LinePosition, 0, 0, vardefref.VariableDefinition.
VariableType
);
459
var valueProviderType = context.Variables[node].
VariableType
;
1217
throw new BuildException(PropertyResolution, lineInfo, null, localName, parent.
VariableType
.FullName);
1221
=> GetBindablePropertyReference(parent.
VariableType
, namespaceURI, ref localName, out attached, context, iXmlLineInfo);
1249
return !attached && valueNode is ValueNode && parent.
VariableType
.GetEvent(context.Cache, ed => ed.Name == localName, out _) != null;
1254
var elementType = parent.
VariableType
;
1349
return varValue.
VariableType
.FullName == typeof(DynamicResource).FullName;
1384
var implicitOperator = varValue.
VariableType
.GetImplicitOperatorTo(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindingBase")), module);
1388
return varValue.
VariableType
.InheritsFromOrImplements(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindingBase")));
1430
if (varValue.
VariableType
.FullName == "System.Object")
1432
var implicitOperator = varValue.
VariableType
.GetImplicitOperatorTo(context.Cache, bpTypeRef, module);
1437
if (varValue.
VariableType
.IsValueType && bpTypeRef.FullName == "System.Object")
1440
return varValue.
VariableType
.InheritsFromOrImplements(context.Cache, bpTypeRef) || varValue.
VariableType
.FullName == "System.Object";
1451
if (!parent.
VariableType
.InheritsFromOrImplements(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))))
1486
if (context.Variables[elementNode].
VariableType
.FullName == "System.Object")
1511
if (context.Variables[elementNode].
VariableType
.FullName == "System.Object")
1549
var property = parent.
VariableType
.GetProperty(context.Cache, pd => pd.Name == localName, out declaringTypeReference);
1566
var implicitOperator = vardef.
VariableType
.GetImplicitOperatorTo(context.Cache, propertyType, module);
1568
if (vardef.
VariableType
.InheritsFromOrImplements(context.Cache, propertyType))
1576
if (vardef.
VariableType
.FullName == "System.Object")
1587
var property = parent.
VariableType
.GetProperty(context.Cache, pd => pd.Name == localName, out declaringTypeReference);
1594
module.ImportReference(parent.
VariableType
.ResolveCached(context.Cache));
1606
var property = parent.
VariableType
.GetProperty(context.Cache, pd => pd.Name == localName, out declaringTypeReference);
1620
module.ImportReference(parent.
VariableType
.ResolveCached(context.Cache));
1628
if (parent.
VariableType
.IsValueType)
1638
if (parent.
VariableType
.IsValueType)
1647
if (parent.
VariableType
.IsValueType)
1657
var property = parent.
VariableType
.GetProperty(context.Cache, pd => pd.Name == localName, out var declaringTypeReference);
1660
module.ImportReference(parent.
VariableType
.ResolveCached(context.Cache));
1665
if (parent.
VariableType
.IsValueType)
1701
if (varValue.
VariableType
.InheritsFromOrImplements(context.Cache, paramType))
1704
if (varValue.
VariableType
.GetImplicitOperatorTo(context.Cache, paramType, module) != null)
1707
if (paramType.FullName == "System.Object" && varValue.
VariableType
.IsValueType)
1730
var nodeTypeRef = context.Variables[node].
VariableType
;
1794
var nodeTypeRef = context.Variables[node].
VariableType
;
1858
rootType = vdefRoot.
VariableType
;
1946
var attributes = variableDefinition.
VariableType
.ResolveCached(Context.Cache)
SetResourcesVisitor.cs (2)
75
return parentVar.
VariableType
.FullName == "Microsoft.Maui.Controls.ResourceDictionary"
76
|| parentVar.
VariableType
.ResolveCached(Context.Cache).BaseType?.FullName == "Microsoft.Maui.Controls.ResourceDictionary";
VariableDefinitionExtensions.cs (5)
11
var implicitOperator = self.
VariableType
.GetImplicitOperatorTo(cache, type, module);
15
if (!self.
VariableType
.InheritsFromOrImplements(cache, type) && implicitOperator != null)
17
else if (box && self.
VariableType
.IsValueType && !type.IsValueType)
18
yield return Instruction.Create(OpCodes.Box, module.ImportReference(self.
VariableType
));
19
else if (unbox && !self.
VariableType
.IsValueType && type.IsValueType)
Mono.Cecil (3)
Mono.Cecil\AssemblyWriter.cs (1)
2133
signature.WriteTypeSignature (variables [i].
VariableType
);
Mono.Cecil\GenericParameterResolver.cs (2)
42
return variable.
VariableType
;
44
return ResolveIfNeeded (genericInstanceMethod, declaringGenericInstanceType, variable.
VariableType
);