192 references to PropertyGet
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
ILLink.RoslynAnalyzer (5)
DynamicallyAccessedMembersAnalyzer.cs (2)
321if ((methodSymbol.MethodKind != MethodKind.PropertyGet && methodSymbol.MethodKind != MethodKind.PropertySet) 333if (methodSymbol.MethodKind == MethodKind.PropertyGet
TrimAnalysis\FlowAnnotations.cs (1)
205if (method.MethodKind is MethodKind.PropertyGet
TrimAnalysis\HandleCallAction.cs (1)
315if (method.Method.MethodKind == MethodKind.PropertyGet || method.Method.MethodKind == MethodKind.PropertySet)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
419if (method.MethodKind != MethodKind.PropertyGet)
Metrics (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Metrics.Legacy (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
209is not MethodKind.PropertyGet
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
100if (method.MethodKind != MethodKind.PropertyGet)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
100if (method.MethodKind != MethodKind.PropertyGet)
Microsoft.CodeAnalysis (1)
Symbols\IMethodSymbol.cs (1)
239/// If this method has <see cref="MethodKind"/> of <see cref="MethodKind.PropertyGet"/> or <see cref="MethodKind.PropertySet"/>,
Microsoft.CodeAnalysis.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Expressions.cs (1)
1513ContainingMember() is MethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: PropertySymbol { IsIndexer: false } })
Compiler\MethodBodySynthesizer.cs (2)
176Debug.Assert(accessor.MethodKind == MethodKind.PropertyGet || accessor.MethodKind == MethodKind.PropertySet); 191if (accessor.MethodKind == MethodKind.PropertyGet)
Emitter\Model\PropertySymbolAdapter.cs (1)
78return GetSynthesizedSealedAccessor(MethodKind.PropertyGet);
FlowAnalysis\NullableWalker.cs (1)
1858Debug.Assert(getterNullResilienceData is null || symbol is SourcePropertyAccessorSymbol { MethodKind: MethodKind.PropertyGet });
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
189case MethodKind.PropertyGet:
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
438case MethodKind.PropertyGet: 449AddKeyword(symbol.MethodKind == MethodKind.PropertyGet ? SyntaxKind.GetKeyword :
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
31get { return MethodKind.PropertyGet; }
Symbols\Compilation_WellKnownMembers.cs (1)
275targetMethodKind = MethodKind.PropertyGet;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
786Debug.Assert((methodKind == MethodKind.PropertyGet) || (methodKind == MethodKind.PropertySet));
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
326_getMethod.SetAssociatedProperty(this, MethodKind.PropertyGet);
Symbols\MethodSymbol.cs (1)
620case MethodKind.PropertyGet:
Symbols\MethodSymbolExtensions.cs (2)
139case MethodKind.PropertyGet: 223method.MethodKind is (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet or MethodKind.UserDefinedOperator) &&
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
246bool accessorIsGetter = accessor.MethodKind == MethodKind.PropertyGet;
Symbols\PublicModel\MethodSymbol.cs (2)
61case MethodKind.PropertyGet: 62return MethodKind.PropertyGet;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4591case MethodKind.PropertyGet: 4649case MethodKind.PropertyGet:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1673case MethodKind.PropertyGet:
Symbols\Source\SourcePropertyAccessorSymbol.cs (10)
42var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 95var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 157methodKind: MethodKind.PropertyGet, 381if (this.MethodKind == MethodKind.PropertyGet) 485MethodKind == MethodKind.PropertyGet; 622MethodSymbol implementedAccessor = this.MethodKind == MethodKind.PropertyGet 685bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 769bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 820? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 824? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbolBase.cs (1)
348{ MethodKind: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword),
Symbols\Symbol.cs (2)
681case MethodKind.PropertyGet: 736case MethodKind.PropertyGet:
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
151MethodKind.PropertyGet,
Symbols\TypeSymbol.cs (1)
1569case MethodKind.PropertyGet:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
174if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
79if (method.MethodKind == MethodKind.PropertyGet)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
73method.MethodKind is MethodKind.PropertyGet or MethodKind.Ordinary &&
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
BreakingChanges.cs (1)
131Assert.Equal(MethodKind.PropertyGet, derivedProperty2Synthesized.MethodKind);
CodeGen\IndexerTests.cs (1)
270Assert.Equal(MethodKind.PropertyGet, getMethod.MethodKind);
Microsoft.CodeAnalysis.CSharp.Features (5)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1979MethodKind.PropertyGet => symbol.AssociatedSymbol is IPropertySymbol { IsIndexer: true } ? CSharpFeaturesResources.indexer_getter : CSharpFeaturesResources.property_getter,
NavigationBar\CSharpNavigationBarItemService.cs (1)
182return method.MethodKind is MethodKind.PropertyGet or MethodKind.PropertySet;
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
174if (owningMethod.MethodKind is not (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
79if (method.MethodKind == MethodKind.PropertyGet)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
73method.MethodKind is MethodKind.PropertyGet or MethodKind.Ordinary &&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NativeIntegerTests.cs (2)
334case MethodKind.PropertyGet: 448case MethodKind.PropertyGet:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (31)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
354Assert.Equal(MethodKind.PropertyGet, getterSymbol.MethodKind); 2874Assert.Equal(MethodKind.PropertyGet, explicitPropertyGetterSymbol.MethodKind);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
483Assert.Equal(MethodKind.PropertyGet, derivedGetter.MethodKind);
Symbols\InterfaceImplementationTests.cs (1)
1022Assert.Equal(MethodKind.PropertyGet, synthesizedExplicitImpls[1].MethodKind);
Symbols\Metadata\PE\LoadingIndexers.cs (1)
1077Assert.Equal(propertyIsIndexer ? MethodKind.PropertyGet : MethodKind.Ordinary, accessor.MethodKind);
Symbols\Source\CustomModifierCopyTests.cs (1)
738var explicitGetterImpl = explicitImpls.Where(impl => impl.ImplementingMethod.MethodKind == MethodKind.PropertyGet).Single();
Symbols\Source\PropertyTests.cs (11)
605Assert.True(accessor.MethodKind == MethodKind.PropertyGet || accessor.MethodKind == MethodKind.PropertySet, 725VerifyAccessor(goodStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 727VerifyAccessor(badStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 729VerifyAccessor(mismatchedStatic.GetMethod, goodStatic, MethodKind.PropertyGet); 742VerifyAccessor(goodInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 744VerifyAccessor(badInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 746VerifyAccessor(mismatchedInstance.GetMethod, goodInstance, MethodKind.PropertyGet); 751VerifyAccessor(staticAndInstance.GetMethod, goodStatic, MethodKind.PropertyGet); 757VerifyAccessor(getUsedAsSet.GetMethod, goodInstance, MethodKind.PropertyGet); 758VerifyAccessor(getUsedAsSet.SetMethod, goodInstance, MethodKind.PropertyGet); 770var method = (methodKind == MethodKind.PropertyGet) ? associatedProperty.GetMethod : associatedProperty.SetMethod;
Symbols\Source\RecordTests.cs (2)
153Assert.Equal(MethodKind.PropertyGet, x.GetMethod!.MethodKind); 187Assert.Equal(MethodKind.PropertyGet, y.GetMethod!.MethodKind);
Symbols\StaticAbstractMembersInInterfacesTests.cs (12)
23495Assert.Equal(MethodKind.PropertyGet, cM01Get.MethodKind); 23591Assert.Equal(MethodKind.PropertyGet, cM01Get.MethodKind); 23681Assert.Equal(MethodKind.PropertyGet, cM01Get.MethodKind); 24214Assert.Equal(MethodKind.PropertyGet, cM01Get.MethodKind); 24272Assert.Equal(MethodKind.PropertyGet, cM01Get.MethodKind); 24376Assert.Equal(MethodKind.PropertyGet, cM01Get.MethodKind); 24636Assert.Equal(MethodKind.PropertyGet, cM01Get.MethodKind); 24985Assert.Equal(MethodKind.PropertyGet, c1M01Get.MethodKind); 25010Assert.Equal(MethodKind.PropertyGet, c2M01Get.MethodKind); 25134Assert.Equal(MethodKind.PropertyGet, c1M01Get.MethodKind); 25195Assert.Equal(MethodKind.PropertyGet, c2M01Get.MethodKind); 25235Assert.Equal(MethodKind.PropertyGet, c3M01Get.MethodKind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
580case MethodKind.PropertyGet:
Microsoft.CodeAnalysis.Extensions.Package (2)
Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet 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)
352var getMethod = prop.GetMethod != null ? CreateAccessorSymbol(prop, MethodKind.PropertyGet) : null;
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
145case MethodKind.PropertyGet:
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
347MethodKind.PropertyGet or MethodKind.PropertySet => FeaturesResources.property_accessor, 3858MethodKind.PropertyGet or 4409if (oldMethod is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: IPropertySymbol oldProperty } && !oldProperty.IsAutoProperty() && 4410newMethod is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: IPropertySymbol newProperty } && newProperty.IsAutoProperty() &&
RQName\RQNodeBuilder.cs (1)
205MethodKind.PropertyGet)
Shared\Extensions\ISymbolExtensions_2.cs (1)
256case MethodKind.PropertyGet:
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
AbstractAllocationAnalyzer.cs (1)
82(methodSymbol.MethodKind == MethodKind.PropertyGet || methodSymbol.MethodKind == MethodKind.PropertySet) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
DeclarePublicApiAnalyzer.Impl.cs (3)
207if (method.MethodKind is not (MethodKind.PropertyGet or MethodKind.PropertySet) || 208method is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol.IsImplicitlyDeclared: true }) 561if (sibling is not IMethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.PropertyGet or MethodKind.PropertySet })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
128new { SymbolKind = SymbolKind.Method, MethodKind = MethodKind.PropertyGet, ReturnsVoid = false },
Microsoft.CodeAnalysis.VisualBasic (45)
Analysis\FlowAnalysis\DataFlowPass.vb (3)
1260Case MethodKind.PropertyGet 1272Case MethodKind.PropertyGet 1288Case MethodKind.PropertyGet
Binding\Binder_Utils.vb (2)
1522Case MethodKind.PropertyGet 1650MethodKindPropertyGet = CUInt(MethodKind.PropertyGet) << MethodKindShift
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (1)
72If accessor.MethodKind = MethodKind.PropertyGet Then
Compilation\ClsComplianceChecker.vb (1)
219Case MethodKind.PropertyGet, MethodKind.PropertySet
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
197If boundCall.Method.MethodKind = MethodKind.PropertyGet AndAlso
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
160Dim accessorName As String = Binder.GetAccessorName(invocationListProperty.Name, MethodKind.PropertyGet, isWinMd:=False)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (2)
201Case MethodKind.PropertyGet 319Case MethodKind.PropertyGet,
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (1)
59Return MethodKind.PropertyGet
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (1)
78Return MethodKind.PropertyGet
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
234Case MethodKind.PropertyGet, MethodKind.PropertySet 375kind = MethodKind.PropertyGet OrElse
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
1027Debug.Assert((methodKind = MethodKind.PropertyGet) OrElse (methodKind = MethodKind.PropertySet))
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
129_getMethod.SetAssociatedProperty(Me, MethodKind.PropertyGet)
Symbols\MethodKindExtensions.vb (1)
25Case MethodKind.PropertyGet
Symbols\MethodSymbol.vb (1)
323Return DirectCast(Me.AssociatedSymbol, PropertySymbol).GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet))
Symbols\ObsoleteAttributeHelpers.vb (1)
163Dim accessorString = If(accessorSymbol.MethodKind = MethodKind.PropertyGet, "Get", "Set")
Symbols\Source\OverrideHidingHelper.vb (3)
501MethodKind.PropertyGet, MethodKind.PropertySet 626(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse 688(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
962Case MethodKind.EventAdd, MethodKind.EventRemove, MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceMethodSymbol.vb (3)
1813Case MethodKind.PropertyGet, MethodKind.PropertySet 1994MethodKind.PropertyGet, 2301Case MethodKind.PropertyGet, MethodKind.PropertySet
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
1238Case MethodKind.PropertyGet 1239Return MethodKind.PropertyGet
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
402ConflictsWithExistingMemberOrType(binder.GetAccessorName(propertyName, MethodKind.PropertyGet, False), membersBuilder, nestedTypes, conflictsWith) OrElse
Symbols\Source\SourcePropertyAccessorSymbol.vb (6)
37If(flags.ToMethodKind() = MethodKind.PropertyGet, flags, flags And Not SourceMemberFlags.Iterator), 122Return m_property.GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet)) 227Case MethodKind.PropertyGet 294Return If(MethodKind = MethodKind.PropertyGet, 339m_property.GetAccessorImplementations(getter:=(MethodKind = MethodKind.PropertyGet)), 374Return If(Me.MethodKind = MethodKind.PropertyGet, m_property, Nothing)
Symbols\Source\SourcePropertySymbol.vb (1)
205Binder.GetAccessorName(prop.Name, MethodKind.PropertyGet, isWinMd:=False),
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
160Return MethodKind.PropertyGet
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (3)
45Return sourceProperty.GetAccessorImplementations(getter:=(MethodKind = MethodKind.PropertyGet)) 53Return ContainingProperty.GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet)) 132Return MethodKind.PropertyGet
Symbols\SubstitutedNamedType.vb (2)
463Case MethodKind.PropertyGet, MethodKind.PropertySet 466Return If(memberMethod.MethodKind = MethodKind.PropertyGet, propertySymbol.GetMethod, propertySymbol.SetMethod)
Symbols\Symbol_Attributes.vb (1)
83MethodKind.PropertyGet,
Symbols\WellKnownMembers.vb (1)
443targetMethodKind = MethodKind.PropertyGet
Microsoft.CodeAnalysis.Workspaces (4)
ReassignedVariable\AbstractReassignedVariableService.cs (1)
184if (methodOrProperty is IMethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet } method)
Recommendations\AbstractRecommendationService.cs (1)
88case MethodKind.PropertyGet:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\CSharpCodeModelService.cs (4)
996if (methodSymbol.MethodKind is MethodKind.PropertyGet or 1494SyntaxKind.GetAccessorDeclaration => MethodKind.PropertyGet, 1504MethodKind.PropertyGet => SyntaxKind.GetAccessorDeclaration, 2205case MethodKind.PropertyGet:
Microsoft.VisualStudio.LanguageServices.Implementation (7)
CodeModel\ExternalElements\ExternalCodeAccessorFunction.cs (3)
33MethodKind.PropertyGet or 47return methodKind is MethodKind.PropertyGet 90case MethodKind.PropertyGet:
CodeModel\InternalElements\CodeAccessorFunction.cs (2)
35MethodKind.PropertyGet or 45=> _kind is MethodKind.PropertyGet or MethodKind.PropertySet;
CodeModel\InternalElements\CodeProperty.cs (2)
149if (!HasAccessorNode(MethodKind.PropertyGet) && 155return CodeAccessorFunction.Create(this.State, this, MethodKind.PropertyGet);
Roslyn.Diagnostics.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Test.Utilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Text.Analyzers (3)
IdentifiersShouldBeSpelledCorrectly.cs (1)
323case MethodKind.PropertyGet:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;