13 writes to VariableDefinition
Microsoft.Maui.Controls.Build.Tasks (13)
CompiledMarkupExtensions\StaticResourceExtension.cs (6)
45
vardefref.
VariableDefinition
= context.Variables[irn];
66
vardefref.
VariableDefinition
= context.Variables[irn2];
91
vardefref.
VariableDefinition
= context.Variables[irn3];
108
vardefref.
VariableDefinition
= vardef;
127
vardefref.
VariableDefinition
= vardef;
146
vardefref.
VariableDefinition
= vardef;
CompiledValueProviders\StyleSheetProvider.cs (1)
81
vardefref.
VariableDefinition
= vardef;
SetPropertiesVisitor.cs (6)
272
vardefref.
VariableDefinition
= new VariableDefinition(module.ImportReference(arrayTypeRef.MakeArrayType()));
274
vardefref.
VariableDefinition
= new VariableDefinition(module.ImportReference(genericArguments.First()));
329
vardefref.
VariableDefinition
= new VariableDefinition(module.ImportReference(genericArguments.First()));
369
vardefref.
VariableDefinition
= new VariableDefinition(module.TypeSystem.Object);
410
vardefref.
VariableDefinition
= new VariableDefinition(module.TypeSystem.Object);
1898
VariableDefinition
= vardef;
22 references to VariableDefinition
Microsoft.Maui.Controls.Build.Tasks (22)
CompiledMarkupExtensions\ArrayExtension.cs (2)
33
if (vardef != vardefref.
VariableDefinition
)
35
vardef = vardefref.
VariableDefinition
;
CompiledValueProviders\SetterValueProvider.cs (1)
38
foreach (var instruction in vardefref.
VariableDefinition
.LoadAs(context.Cache, module.GetTypeDefinition(context.Cache, setterType), module))
SetPropertiesVisitor.cs (19)
118
if (vardef != vardefref.
VariableDefinition
)
120
vardef = vardefref.
VariableDefinition
;
259
if (vardefref.
VariableDefinition
.VariableType.FullName == "Microsoft.Maui.Controls.Xaml.ArrayExtension" &&
260
vardefref.
VariableDefinition
.VariableType.ImplementsGenericInterface(context.Cache, "Microsoft.Maui.Controls.Xaml.IMarkupExtension`1",
282
yield return Instruction.Create(OpCodes.Stloc, vardefref.
VariableDefinition
);
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
308
if (TryCompileBindingPath(node, context, vardefref.
VariableDefinition
, bindingExtensionType.Value, out var instructions))
338
yield return Instruction.Create(OpCodes.Stloc, vardefref.
VariableDefinition
);
343
var requiredServiceType = vardefref.
VariableDefinition
.VariableType.GetRequiredServices(context.Cache, module);
346
context.LoggingHelper.LogWarningOrError(BuildExceptionCode.UnattributedMarkupType, context.XamlFilePath, node.LineNumber, node.LinePosition, 0, 0, vardefref.
VariableDefinition
.VariableType);
381
yield return Create(Stloc, vardefref.
VariableDefinition
);
386
var requiredServiceType = vardefref.
VariableDefinition
.VariableType.GetRequiredServices(context.Cache, module);
389
context.LoggingHelper.LogWarningOrError(BuildExceptionCode.UnattributedMarkupType, context.XamlFilePath, node.LineNumber, node.LinePosition, 0, 0, vardefref.
VariableDefinition
.VariableType);
422
yield return Create(Stloc, vardefref.
VariableDefinition
);
1905
return vardefref.
VariableDefinition
;