10 overrides of SetMethod
Microsoft.CodeAnalysis.CSharp (10)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
76
public override MethodSymbol
SetMethod
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
146
public override MethodSymbol
SetMethod
Symbols\ErrorPropertySymbol.cs (1)
60
public override MethodSymbol
SetMethod
{ get { return null; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
700
public override MethodSymbol
SetMethod
Symbols\NativeIntegerTypeSymbol.cs (1)
478
public override MethodSymbol?
SetMethod
{ get; }
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
133
public override MethodSymbol
SetMethod
Symbols\SignatureOnlyPropertySymbol.cs (1)
100
public override MethodSymbol
SetMethod
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
629
public sealed override MethodSymbol?
SetMethod
Symbols\SubstitutedPropertySymbol.cs (1)
95
public override MethodSymbol
SetMethod
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
45
public override MethodSymbol?
SetMethod
{ get; }
55 references to SetMethod
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder_Attributes.cs (1)
640
var setMethod = propertySymbol.
SetMethod
;
Binder\Binder_Invocation.cs (1)
1323
var method = property.GetMethod ?? property.
SetMethod
;
Binder\Binder_Lookup.cs (1)
1553
method2 = property.
SetMethod
;
Binder\BinderFactory.BinderFactoryVisitor.cs (3)
1274
if ((object)property.
SetMethod
!= null)
1276
Debug.Assert(property.
SetMethod
.ParameterCount > 0);
1277
parameters = parameters.Add(property.
SetMethod
.Parameters.Last());
Emitter\Model\PropertySymbolAdapter.cs (2)
41
var setMethod = AdaptedPropertySymbol.
SetMethod
?.GetCciAdapter();
127
MethodSymbol setMethod = AdaptedPropertySymbol.
SetMethod
;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
538
var setMethod = property.AdaptedPropertySymbol.
SetMethod
?.GetCciAdapter();
FlowAnalysis\AbstractFlowPass.cs (1)
3685
property.GetOwnOrInheritedGetMethod() ?? property.
SetMethod
;
FlowAnalysis\NullableWalker.cs (3)
654
return property.
SetMethod
?.NotNullMembers ?? property.NotNullMembers;
963
foreach (var notNullMemberName in (property.
SetMethod
?.NotNullMembers ?? property.NotNullMembers))
10677
ApplyMemberPostConditions(node.ReceiverOpt, property.
SetMethod
);
Symbols\Attributes\AttributeData.cs (2)
563
(object)property.
SetMethod
!= null && property.
SetMethod
.DeclaredAccessibility == Accessibility.Public)
Symbols\MemberSymbolExtensions.cs (1)
135
return isImplementableAndNotPublic(propertySymbol.GetMethod) || isImplementableAndNotPublic(propertySymbol.
SetMethod
);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
500
MethodSymbol setMethod = curr.
SetMethod
;
803
if (!prop.
SetMethod
.IsImplementable() || propertiesWithImplementedSetters.Contains(prop))
Symbols\NativeIntegerTypeSymbol.cs (1)
464
SetMethod = getAccessor(container, this, underlyingProperty.
SetMethod
);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
260
MethodSymbol correspondingAccessor = accessorIsGetter ? propertyHiddenByProperty.GetMethod : propertyHiddenByProperty.
SetMethod
;
Symbols\PropertySymbol.cs (2)
170
return (object)property.
SetMethod
== null;
257
MethodSymbol accessor = GetMethod ??
SetMethod
;
Symbols\PropertySymbolExtensions.cs (1)
46
MethodSymbol setMethod = property.
SetMethod
;
Symbols\PublicModel\PropertySymbol.cs (1)
58
get { return _underlying.
SetMethod
.GetPublicSymbol(); }
Symbols\Retargeting\RetargetingPropertySymbol.cs (2)
137
return (object)_underlyingProperty.
SetMethod
== null
139
: this.RetargetingTranslator.Retarget(_underlyingProperty.
SetMethod
);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
319
checkAccessorIsAccessibleIfImplementable(propertySymbol.
SetMethod
);
Symbols\Source\ModifierUtils.cs (2)
496
case PropertySymbol {
SetMethod
: { } method } when !method.IsAsRestrictive(symbol.ContainingType, ref useSiteInfo):
501
case PropertySymbol {
SetMethod
: null }:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
3839
MethodSymbol accessor = getNotSet ? propertySymbol.GetMethod : propertySymbol.
SetMethod
;
3917
var locationFrom = (Symbol)(getNotSet ? propertySymbol.GetMethod : propertySymbol.
SetMethod
) ?? propertySymbol;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (10)
572
var setMethod = property.
SetMethod
;
821
else if (associatedProperty.
SetMethod
== overridingMember && (object)overriddenProperty.
SetMethod
== null)
1058
else if (overridingProperty.
SetMethod
is null ?
1067
if (overridingProperty.
SetMethod
is null &&
1105
if (overridingProperty.
SetMethod
is object)
1109
overridingProperty.
SetMethod
.GetFirstLocation(),
1111
overridingProperty.
SetMethod
,
1115
overridingProperty.
SetMethod
.IsInitOnly != ownOrInheritedOverriddenSetMethod.IsInitOnly)
1136
if (overridingProperty.
SetMethod
!= ownOrInheritedSetMethod && !AccessCheck.IsSymbolAccessible(ownOrInheritedSetMethod, overridingType, ref useSiteInfo))
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
619
: explicitlyImplementedPropertyOpt.
SetMethod
;
688
: explicitlyImplementedPropertyOpt.
SetMethod
;
Symbols\Source\SourcePropertySymbolBase.cs (2)
899
(overriddenProperty.
SetMethod
is { } && SetMethod is null))
998
CheckExplicitImplementationAccessor(SetMethod, explicitlyImplementedProperty.
SetMethod
, explicitlyImplementedProperty, diagnostics);
Symbols\SubstitutedPropertySymbol.cs (1)
99
MethodSymbol originalSetMethod = OriginalDefinition.
SetMethod
;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
114
Debug.Assert(property is { GetMethod: not null,
SetMethod
: null });
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (3)
21
Debug.Assert(setAccessorBody is null == interfaceProperty.
SetMethod
is null);
28
SetMethod = interfaceProperty.
SetMethod
is null ? null : new SynthesizedReadOnlyListMethod(containingType, interfaceProperty.
SetMethod
, setAccessorBody!);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
732
builder.AddIfNotNull(property.
SetMethod
);
Symbols\TypeSymbol.cs (3)
1407
interfaceAccessor2 = interfaceProperty.
SetMethod
;
1917
var implementingSetMethod = implementedProperty.
SetMethod
.IsImplementable() ?
1934
implementedProperty.
SetMethod
,
Symbols\VarianceSafety.cs (1)
193
bool hasSetter = (object)property.
SetMethod
!= null;