120 references to PropertySet
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (2)
42Debug.Assert(!isInitOnly || methodKind == MethodKind.PropertySet); 43this.IsInitOnly = methodKind == MethodKind.PropertySet && isInitOnly;
ILLink.RoslynAnalyzer (4)
DynamicallyAccessedMembersAnalyzer.cs (2)
326if ((methodSymbol.MethodKind != MethodKind.PropertyGet && methodSymbol.MethodKind != MethodKind.PropertySet) 341|| methodSymbol.MethodKind == MethodKind.PropertySet
TrimAnalysis\FlowAnnotations.cs (1)
181if (parameterMethod!.MethodKind == MethodKind.PropertySet
TrimAnalysis\HandleCallAction.cs (1)
350if (method.Method.MethodKind == MethodKind.PropertyGet || method.Method.MethodKind == MethodKind.PropertySet)
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
210and not MethodKind.PropertySet
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
107if (method.MethodKind != MethodKind.PropertySet)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
107if (method.MethodKind != MethodKind.PropertySet)
Microsoft.CodeAnalysis (1)
Symbols\IMethodSymbol.cs (1)
245/// If this method has <see cref="MethodKind"/> of <see cref="MethodKind.PropertyGet"/> or <see cref="MethodKind.PropertySet"/>,
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (2)
42Debug.Assert(!isInitOnly || methodKind == MethodKind.PropertySet); 43this.IsInitOnly = methodKind == MethodKind.PropertySet && isInitOnly;
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (2)
42Debug.Assert(!isInitOnly || methodKind == MethodKind.PropertySet); 43this.IsInitOnly = methodKind == MethodKind.PropertySet && isInitOnly;
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Expressions.cs (1)
1567ContainingMember() is MethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: PropertySymbol { IsIndexer: false } })
Binder\LocalBinderFactory.cs (1)
310SourcePropertyAccessorSymbol { MethodKind: MethodKind.PropertySet } setter => getSetterParameters(setter),
Compiler\MethodBodySynthesizer.cs (2)
178Debug.Assert(accessor.MethodKind == MethodKind.PropertyGet || accessor.MethodKind == MethodKind.PropertySet); 199Debug.Assert(accessor.MethodKind == MethodKind.PropertySet);
Emitter\Model\PropertySymbolAdapter.cs (1)
133return GetSynthesizedSealedAccessor(MethodKind.PropertySet);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
439case MethodKind.PropertySet:
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
815Debug.Assert((methodKind == MethodKind.PropertyGet) || (methodKind == MethodKind.PropertySet)); 1505this.MethodKind == MethodKind.PropertySet &&
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
354_setMethod.SetAssociatedProperty(this, MethodKind.PropertySet);
Symbols\MethodSymbol.cs (1)
632case MethodKind.PropertySet:
Symbols\MethodSymbolExtensions.cs (2)
140case MethodKind.PropertySet: 223method.MethodKind is (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet or MethodKind.UserDefinedOperator) &&
Symbols\PublicModel\MethodSymbol.cs (2)
64case MethodKind.PropertySet: 65return MethodKind.PropertySet;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4764case MethodKind.PropertySet: 4822case MethodKind.PropertySet:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
160case MethodKind.PropertySet: 1678case MethodKind.PropertySet:
Symbols\Source\SourcePropertyAccessorSymbol.cs (5)
42var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 95var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 389if (MethodKind == MethodKind.PropertySet) 616else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor && MethodKind == MethodKind.PropertySet) 700Debug.Assert(MethodKind == MethodKind.PropertySet);
Symbols\Source\SourcePropertySymbolBase.cs (3)
349{ MethodKind: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword), 350{ MethodKind: MethodKind.PropertySet, IsInitOnly: true } => SyntaxFacts.GetText(SyntaxKind.InitKeyword), 1217Debug.Assert(thisAccessor.MethodKind == MethodKind.PropertySet);
Symbols\Symbol.cs (2)
688case MethodKind.PropertySet: 743case MethodKind.PropertySet:
Symbols\TypeSymbol.cs (1)
1576case MethodKind.PropertySet:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
174if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1980MethodKind.PropertySet => symbol.AssociatedSymbol is IPropertySymbol { IsIndexer: true } ? CSharpFeaturesResources.indexer_setter : CSharpFeaturesResources.property_setter,
NavigationBar\CSharpNavigationBarItemService.cs (1)
182return method.MethodKind is MethodKind.PropertyGet or MethodKind.PropertySet;
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
174if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
Microsoft.CodeAnalysis.Extensions.Package (2)
Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.Features (9)
ChangeSignature\AbstractChangeSignatureService.cs (1)
271if (methodSymbol is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet })
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
353var setMethod = prop.SetMethod != null ? CreateAccessorSymbol(prop, MethodKind.PropertySet) : null;
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
146case MethodKind.PropertySet:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
347MethodKind.PropertyGet or MethodKind.PropertySet => FeaturesResources.property_accessor, 3867MethodKind.PropertySet 4460if (oldMethod is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: IPropertySymbol oldProperty } && !oldProperty.IsAutoProperty() && 4461newMethod is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: IPropertySymbol newProperty } && newProperty.IsAutoProperty() &&
RQName\RQNodeBuilder.cs (1)
204MethodKind.PropertySet or
Shared\Extensions\ISymbolExtensions_2.cs (1)
259case MethodKind.PropertySet:
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.VisualBasic (37)
Binding\Binder_Utils.vb (2)
1524Case MethodKind.PropertySet 1651MethodKindPropertySet = CUInt(MethodKind.PropertySet) << MethodKindShift
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (1)
88Debug.Assert(accessor.MethodKind = MethodKind.PropertySet)
Compilation\ClsComplianceChecker.vb (1)
219Case MethodKind.PropertyGet, MethodKind.PropertySet
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
212Case MethodKind.PropertySet 320MethodKind.PropertySet,
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (1)
91Return MethodKind.PropertySet
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (1)
110Return MethodKind.PropertySet
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
234Case MethodKind.PropertyGet, MethodKind.PropertySet 376kind = MethodKind.PropertySet)
Symbols\Metadata\PE\PEMethodSymbol.vb (2)
943Me.MethodKind = MethodKind.PropertySet AndAlso 1027Debug.Assert((methodKind = MethodKind.PropertyGet) OrElse (methodKind = MethodKind.PropertySet))
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
133_setMethod.SetAssociatedProperty(Me, MethodKind.PropertySet)
Symbols\MethodKindExtensions.vb (1)
28Case MethodKind.PropertySet
Symbols\MethodSymbol.vb (1)
230Me.MethodKind <> MethodKind.PropertySet AndAlso
Symbols\Source\OverrideHidingHelper.vb (3)
501MethodKind.PropertyGet, MethodKind.PropertySet 627DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet))) 689DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet)))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
963Case MethodKind.EventAdd, MethodKind.EventRemove, MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceMethodSymbol.vb (3)
1813Case MethodKind.PropertyGet, MethodKind.PropertySet 1995MethodKind.PropertySet, 2301Case MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
1240Case MethodKind.PropertySet 1241Return MethodKind.PropertySet
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
403(disposeMethod.Length > 0 AndAlso ConflictsWithExistingMemberOrType(binder.GetAccessorName(propertyName, MethodKind.PropertySet, isWinMd), membersBuilder, nestedTypes, conflictsWith)) OrElse
Symbols\Source\SourcePropertyAccessorSymbol.vb (5)
106If methodKind = MethodKind.PropertySet Then 240Case MethodKind.PropertySet 354Return If(Me.MethodKind = MethodKind.PropertySet, ImmutableArray(Of CustomModifier).Empty, m_property.TypeCustomModifiers) 368Debug.Assert(Me.MethodKind = MethodKind.PropertySet) 397Dim isSetter As Boolean = (method.MethodKind = MethodKind.PropertySet)
Symbols\Source\SourcePropertySymbol.vb (1)
214Binder.GetAccessorName(prop.Name, MethodKind.PropertySet,
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
205Return MethodKind.PropertySet
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (1)
180Return MethodKind.PropertySet
Symbols\SubstitutedNamedType.vb (1)
463Case MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Symbol_Attributes.vb (1)
84MethodKind.PropertySet,
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (2)
106Debug.Assert(propertySetter.MethodKind = MethodKind.PropertySet) 116If method.MethodKind = MethodKind.PropertySet AndAlso
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
166ElseIf methodSymbol.MethodKind = MethodKind.PropertySet Then
Microsoft.CodeAnalysis.Workspaces (7)
ReassignedVariable\AbstractReassignedVariableService.cs (1)
184if (methodOrProperty is IMethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet } method)
Recommendations\AbstractRecommendationService.cs (1)
90case MethodKind.PropertySet:
Shared\Extensions\ISymbolExtensions_2.cs (1)
19MethodKind.PropertySet)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (2)
42Debug.Assert(!isInitOnly || methodKind == MethodKind.PropertySet); 43this.IsInitOnly = methodKind == MethodKind.PropertySet && isInitOnly;
Microsoft.DotNet.ApiCompatibility (1)
Rules\CannotAddMemberToInterface.cs (1)
52symbol.MethodKind == MethodKind.PropertySet ||
Microsoft.DotNet.ApiSymbolExtensions (2)
Filtering\ImplicitSymbolFilter.cs (2)
27method.MethodKind == MethodKind.PropertySet || 39method.ExplicitInterfaceImplementations.Any(m => m is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet }))
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
203MethodKind.PropertySet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (2)
42Debug.Assert(!isInitOnly || methodKind == MethodKind.PropertySet); 43this.IsInitOnly = methodKind == MethodKind.PropertySet && isInitOnly;