143 references to PropertySet
Microsoft.CodeAnalysis (1)
Symbols\IMethodSymbol.cs (1)
233/// If this method has <see cref="MethodKind"/> of <see cref="MethodKind.PropertyGet"/> or <see cref="MethodKind.PropertySet"/>,
Microsoft.CodeAnalysis.CodeStyle (2)
ISymbolExtensions.cs (1)
140MethodKind.PropertySet or
MethodKindExtensions.cs (1)
10=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
CodeGenerationMethodSymbol.cs (2)
47Debug.Assert(!isInitOnly || methodKind == MethodKind.PropertySet); 48this.IsInitOnly = methodKind == MethodKind.PropertySet && isInitOnly;
Microsoft.CodeAnalysis.CSharp (24)
Binder\LocalBinderFactory.cs (1)
270SourcePropertyAccessorSymbol { MethodKind: MethodKind.PropertySet } setter => getSetterParameters(setter),
Compiler\MethodBodySynthesizer.cs (2)
175Debug.Assert(accessor.MethodKind == MethodKind.PropertyGet || accessor.MethodKind == MethodKind.PropertySet); 196Debug.Assert(accessor.MethodKind == MethodKind.PropertySet);
Emitter\Model\PropertySymbolAdapter.cs (1)
130return GetSynthesizedSealedAccessor(MethodKind.PropertySet);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
441case MethodKind.PropertySet:
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
758Debug.Assert((methodKind == MethodKind.PropertyGet) || (methodKind == MethodKind.PropertySet)); 1368this.MethodKind == MethodKind.PropertySet &&
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
264_setMethod.SetAssociatedProperty(this, MethodKind.PropertySet);
Symbols\MethodSymbol.cs (1)
615case MethodKind.PropertySet:
Symbols\MethodSymbolExtensions.cs (2)
138case MethodKind.PropertySet: 220method.MethodKind is (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet) &&
Symbols\PublicModel\MethodSymbol.cs (2)
62case MethodKind.PropertySet: 63return MethodKind.PropertySet;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3808case MethodKind.PropertySet:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
152case MethodKind.PropertySet: 1221case MethodKind.PropertySet:
Symbols\Source\SourcePropertyAccessorSymbol.cs (4)
42var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 95var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 359if (MethodKind == MethodKind.PropertySet) 561else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor && MethodKind == MethodKind.PropertySet)
Symbols\Source\SourcePropertySymbolBase.cs (1)
957Debug.Assert(thisAccessor.MethodKind == MethodKind.PropertySet);
Symbols\Symbol.cs (2)
549case MethodKind.PropertySet: 604case MethodKind.PropertySet:
Symbols\TypeSymbol.cs (1)
1564case MethodKind.PropertySet:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
74MethodKind: MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
BreakingChanges.cs (1)
128Assert.Equal(MethodKind.PropertySet, derivedProperty1Synthesized.MethodKind);
CodeGen\IndexerTests.cs (1)
281Assert.Equal(MethodKind.PropertySet, setMethod.MethodKind);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
CSharpInstructionDecoder.cs (1)
39var displayFormat = (method.MethodKind == MethodKind.PropertyGet || method.MethodKind == MethodKind.PropertySet)
Microsoft.CodeAnalysis.CSharp.Features (3)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
74MethodKind: MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet,
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1947MethodKind.PropertySet => symbol.AssociatedSymbol is IPropertySymbol { IsIndexer: true } ? CSharpFeaturesResources.indexer_setter : CSharpFeaturesResources.property_setter,
NavigationBar\CSharpNavigationBarItemService.cs (1)
180return method.MethodKind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\InitOnlyMemberTests.cs (1)
2560bool isSetter = method.MethodKind == MethodKind.PropertySet;
Semantics\NativeIntegerTests.cs (2)
330case MethodKind.PropertySet: 444case MethodKind.PropertySet:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (25)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
360Assert.Equal(MethodKind.PropertySet, setterSymbol.MethodKind); 2884Assert.Equal(MethodKind.PropertySet, explicitPropertySetterSymbol.MethodKind);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
5413Assert.Equal(MethodKind.PropertySet, ((IMethodSymbol)sortedCandidates[0]).MethodKind);
Symbols\InterfaceImplementationTests.cs (1)
1026Assert.Equal(MethodKind.PropertySet, synthesizedExplicitImpls[2].MethodKind);
Symbols\Metadata\PE\LoadingIndexers.cs (1)
1074Assert.Equal(propertyIsIndexer ? MethodKind.PropertySet : MethodKind.Ordinary, accessor.MethodKind);
Symbols\Source\CustomModifierCopyTests.cs (2)
414AssertAllParametersHaveConstModOpt(explicitImpl, ignoreLast: explicitImpl.MethodKind == MethodKind.PropertySet); 610var explicitSetterImpl = explicitImpls.Where(impl => impl.ImplementingMethod.MethodKind == MethodKind.PropertySet).Single();
Symbols\Source\PropertyTests.cs (6)
604Assert.True(accessor.MethodKind == MethodKind.PropertyGet || accessor.MethodKind == MethodKind.PropertySet, 725VerifyAccessor(goodStatic.SetMethod, goodStatic, MethodKind.PropertySet); 727VerifyAccessor(badStatic.SetMethod, goodStatic, MethodKind.PropertySet); 742VerifyAccessor(goodInstance.SetMethod, goodInstance, MethodKind.PropertySet); 744VerifyAccessor(badInstance.SetMethod, goodInstance, MethodKind.PropertySet); 751VerifyAccessor(staticAndInstance.SetMethod, goodInstance, MethodKind.PropertySet);
Symbols\StaticAbstractMembersInInterfacesTests.cs (12)
22996Assert.Equal(MethodKind.PropertySet, cM01Set.MethodKind); 23089Assert.Equal(MethodKind.PropertySet, cM01Set.MethodKind); 23182Assert.Equal(MethodKind.PropertySet, cM01Set.MethodKind); 23770Assert.Equal(MethodKind.PropertySet, cM01Set.MethodKind); 24052Assert.Equal(MethodKind.PropertySet, cM01Set.MethodKind); 24110Assert.Equal(MethodKind.PropertySet, cM01Set.MethodKind); 24214Assert.Equal(MethodKind.PropertySet, cM01Set.MethodKind); 24482Assert.Equal(MethodKind.PropertySet, c1M01Set.MethodKind); 24502Assert.Equal(MethodKind.PropertySet, c2M01Set.MethodKind); 24630Assert.Equal(MethodKind.PropertySet, c1M01Set.MethodKind); 24692Assert.Equal(MethodKind.PropertySet, c2M01Set.MethodKind); 24732Assert.Equal(MethodKind.PropertySet, c3M01Set.MethodKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
541case MethodKind.PropertySet: 543var isSetter = accessor.MethodKind == MethodKind.PropertySet;
Microsoft.CodeAnalysis.Features (7)
ChangeSignature\AbstractChangeSignatureService.cs (1)
273(methodSymbol.MethodKind == MethodKind.PropertyGet || methodSymbol.MethodKind == MethodKind.PropertySet))
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
355var setMethod = prop.SetMethod != null ? CreateAccessorSymbol(prop, MethodKind.PropertySet) : null;
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
144case MethodKind.PropertySet:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
363MethodKind.PropertyGet or MethodKind.PropertySet => FeaturesResources.property_accessor, 3462MethodKind.PropertySet
RQName\RQNodeBuilder.cs (1)
204MethodKind.PropertySet or
Shared\Extensions\ISymbolExtensions_2.cs (1)
249case MethodKind.PropertySet:
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
129new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.PropertySet, ReturnsVoid = true },
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)
868Me.MethodKind = MethodKind.PropertySet AndAlso 952Debug.Assert((methodKind = MethodKind.PropertyGet) OrElse (methodKind = MethodKind.PropertySet))
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
129_setMethod.SetAssociatedProperty(Me, MethodKind.PropertySet)
Symbols\MethodKindExtensions.vb (1)
28Case MethodKind.PropertySet
Symbols\MethodSymbol.vb (1)
229Me.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)
970Case MethodKind.EventAdd, MethodKind.EventRemove, MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceMethodSymbol.vb (3)
1779Case MethodKind.PropertyGet, MethodKind.PropertySet 1961MethodKind.PropertySet, 2257Case MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
1217Case MethodKind.PropertySet 1218Return MethodKind.PropertySet
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
397(disposeMethod.Length > 0 AndAlso ConflictsWithExistingMemberOrType(binder.GetAccessorName(propertyName, MethodKind.PropertySet, isWinMd), membersBuilder, nestedTypes, conflictsWith)) OrElse
Symbols\Source\SourcePropertyAccessorSymbol.vb (5)
105If methodKind = MethodKind.PropertySet Then 237Case MethodKind.PropertySet 349Return If(Me.MethodKind = MethodKind.PropertySet, ImmutableArray(Of CustomModifier).Empty, m_property.TypeCustomModifiers) 363Debug.Assert(Me.MethodKind = MethodKind.PropertySet) 392Dim isSetter As Boolean = (method.MethodKind = MethodKind.PropertySet)
Symbols\Source\SourcePropertySymbol.vb (1)
211Binder.GetAccessorName(prop.Name, MethodKind.PropertySet,
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
204Return MethodKind.PropertySet
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (1)
180Return MethodKind.PropertySet
Symbols\SubstitutedNamedType.vb (1)
457Case MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Symbol_Attributes.vb (1)
83MethodKind.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.VisualBasic.Symbol.UnitTests (8)
SymbolsTests\Source\PropertyTests.vb (8)
5601VerifyAccessor(goodStatic.SetMethod, goodStatic, MethodKind.PropertySet) 5603VerifyAccessor(badStatic.SetMethod, goodStatic, MethodKind.PropertySet) 5605VerifyAccessor(mismatchedStatic.SetMethod, mismatchedStatic, MethodKind.PropertySet) 5618VerifyAccessor(goodInstance.SetMethod, goodInstance, MethodKind.PropertySet) 5620VerifyAccessor(badInstance.SetMethod, goodInstance, MethodKind.PropertySet) 5622VerifyAccessor(mismatchedInstance.SetMethod, mismatchedInstance, MethodKind.PropertySet) 5627VerifyAccessor(staticAndInstance.SetMethod, goodInstance, MethodKind.PropertySet) 8110Dim isAccessor = accessor.MethodKind = MethodKind.PropertyGet OrElse accessor.MethodKind = MethodKind.PropertySet
Microsoft.CodeAnalysis.Workspaces (7)
CodeGenerationMethodSymbol.cs (2)
47Debug.Assert(!isInitOnly || methodKind == MethodKind.PropertySet); 48this.IsInitOnly = methodKind == MethodKind.PropertySet && isInitOnly;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (1)
140MethodKind.PropertySet or
MethodKindExtensions.cs (1)
10=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
ReassignedVariable\AbstractReassignedVariableService.cs (1)
156if (methodOrProperty is IMethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet } method)
Recommendations\AbstractRecommendationService.cs (1)
93case MethodKind.PropertySet:
Shared\Extensions\ISymbolExtensions_2.cs (1)
19MethodKind.PropertySet)
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphBuilder.cs (1)
535case MethodKind.PropertySet:
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
1000MethodKind.PropertySet or 1498SyntaxKind.SetAccessorDeclaration => MethodKind.PropertySet, 1508MethodKind.PropertySet => SyntaxKind.SetAccessorDeclaration, 2213case MethodKind.PropertySet:
Microsoft.VisualStudio.LanguageServices.Implementation (7)
CodeModel\ExternalElements\ExternalCodeAccessorFunction.cs (3)
35MethodKind.PropertySet); 49or MethodKind.PropertySet; 95case MethodKind.PropertySet:
CodeModel\InternalElements\CodeAccessorFunction.cs (2)
36MethodKind.PropertySet); 45=> _kind is MethodKind.PropertyGet or MethodKind.PropertySet;
CodeModel\InternalElements\CodeProperty.cs (2)
168if (!HasAccessorNode(MethodKind.PropertySet)) 173return CodeAccessorFunction.Create(this.State, this, MethodKind.PropertySet);
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (4)
1101Return MethodKind.PropertySet 1117Case MethodKind.PropertySet 1388methodSymbol.MethodKind = MethodKind.PropertySet OrElse 2557Case MethodKind.PropertySet