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