11 references to AccessorKind
Microsoft.Maui.Controls.BindingSourceGen (11)
AccessExpressionBuilder.cs (3)
15
InaccessibleMemberAccess inaccessibleMemberAccess when inaccessibleMemberAccess.Kind ==
AccessorKind
.Field => $"{CreateUnsafeFieldAccessorMethodName(bindingId, inaccessibleMemberAccess.MemberName)}({previousExpression})",
16
InaccessibleMemberAccess inaccessibleMemberAccess when inaccessibleMemberAccess.Kind ==
AccessorKind
.Property && !shouldUseUnsafePropertySetter => $"{CreateUnsafePropertyAccessorGetMethodName(bindingId, inaccessibleMemberAccess.MemberName)}({previousExpression})",
17
InaccessibleMemberAccess inaccessibleMemberAccess when inaccessibleMemberAccess.Kind ==
AccessorKind
.Property => previousExpression, // This case is handled by the caller
BindingCodeWriter.cs (2)
144
AccessorKind
.Field => GenerateUnsafeFieldAccessor(unsafeAccessor.MemberName, unsafeAccessor.memberType.GlobalName, unsafeAccessor.ContainingType.GlobalName, id),
145
AccessorKind
.Property => GenerateUnsafePropertyAccessors(unsafeAccessor.MemberName, unsafeAccessor.memberType.GlobalName, unsafeAccessor.ContainingType.GlobalName, id, binding.SetterOptions.IsWritable),
ISymbolExtensions.cs (3)
12
internal static
AccessorKind
ToAccessorKind(this ISymbol symbol)
16
IFieldSymbol _ =>
AccessorKind
.Field,
17
IPropertySymbol _ =>
AccessorKind
.Property,
PathParser.cs (1)
53
var
accessorKind = symbol.ToAccessorKind();
PathPart.cs (1)
8
public sealed record InaccessibleMemberAccess(TypeDescription ContainingType, TypeDescription memberType,
AccessorKind
Kind, string MemberName, bool IsValueType = false) : IPathPart
Setter.cs (1)
59
InaccessibleMemberAccess inaccessibleMemberAccess when inaccessibleMemberAccess.Kind ==
AccessorKind
.Property => $"{CreateUnsafePropertyAccessorSetMethodName(bindingId, inaccessibleMemberAccess.MemberName)}({accessAccumulator}, {assignedValueExpression});",