90 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)
325if ((methodSymbol.MethodKind != MethodKind.PropertyGet && methodSymbol.MethodKind != MethodKind.PropertySet) 340|| 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)
1570ContainingMember() 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)
817Debug.Assert((methodKind == MethodKind.PropertyGet) || (methodKind == MethodKind.PropertySet)); 1507this.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)
4790case MethodKind.PropertySet: 4856case 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; 386if (MethodKind == MethodKind.PropertySet) 606else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor && MethodKind == MethodKind.PropertySet) 690Debug.Assert(MethodKind == MethodKind.PropertySet);
Symbols\Source\SourcePropertySymbolBase.cs (3)
350{ MethodKind: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword), 351{ MethodKind: MethodKind.PropertySet, IsInitOnly: true } => SyntaxFacts.GetText(SyntaxKind.InitKeyword), 1252Debug.Assert(thisAccessor.MethodKind == MethodKind.PropertySet);
Symbols\Symbol.cs (2)
691case MethodKind.PropertySet: 746case 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)
352MethodKind.PropertyGet or MethodKind.PropertySet => FeaturesResources.property_accessor, 3872MethodKind.PropertySet 4465if (oldMethod is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: IPropertySymbol oldProperty } && !oldProperty.IsAutoProperty() && 4466newMethod 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.NetAnalyzers (2)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidInfiniteRecursion.cs (1)
51methodSymbol.MethodKind != MethodKind.PropertySet)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (1)
444MethodKind.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.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 or MethodKind.EventAdd or MethodKind.EventRemove }))
Microsoft.Interop.ComInterfaceGenerator (5)
ComInterfaceGenerator.cs (5)
324(MethodKind.PropertySet, IPropertySymbol { IsIndexer: true }) => StubMemberKind.IndexerSetter, 326(MethodKind.PropertySet, _) => StubMemberKind.PropertySetter, 394ImmutableArray<Location> parameterLocations = accessor.MethodKind is MethodKind.PropertySet 408int parameterCount = accessor.MethodKind is MethodKind.PropertySet 416if (accessor.MethodKind is MethodKind.PropertySet)
Microsoft.Interop.SourceGeneration (1)
SignatureContext.cs (1)
133int valueParameterIndex = method.MethodKind == 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;