92 references to PropertyGet
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
ILLink.RoslynAnalyzer (5)
DynamicallyAccessedMembersAnalyzer.cs (2)
325if ((methodSymbol.MethodKind != MethodKind.PropertyGet && methodSymbol.MethodKind != MethodKind.PropertySet) 337if (methodSymbol.MethodKind == MethodKind.PropertyGet
TrimAnalysis\FlowAnnotations.cs (1)
205if (method.MethodKind is MethodKind.PropertyGet
TrimAnalysis\HandleCallAction.cs (1)
350if (method.Method.MethodKind == MethodKind.PropertyGet || method.Method.MethodKind == MethodKind.PropertySet)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
446if (method.MethodKind != MethodKind.PropertyGet)
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)
245/// If this method has <see cref="MethodKind"/> of <see cref="MethodKind.PropertyGet"/> or <see cref="MethodKind.PropertySet"/>,
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet 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)
202MethodKind.PropertyGet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_Expressions.cs (1)
1570ContainingMember() is MethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: PropertySymbol { IsIndexer: false } })
Compiler\MethodBodySynthesizer.cs (2)
178Debug.Assert(accessor.MethodKind == MethodKind.PropertyGet || accessor.MethodKind == MethodKind.PropertySet); 193if (accessor.MethodKind == MethodKind.PropertyGet)
Emitter\Model\PropertySymbolAdapter.cs (1)
78return GetSynthesizedSealedAccessor(MethodKind.PropertyGet);
FlowAnalysis\NullableWalker.cs (1)
1912Debug.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)
279targetMethodKind = MethodKind.PropertyGet;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
817Debug.Assert((methodKind == MethodKind.PropertyGet) || (methodKind == MethodKind.PropertySet));
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
349_getMethod.SetAssociatedProperty(this, MethodKind.PropertyGet);
Symbols\MethodSymbol.cs (1)
631case 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)
62case MethodKind.PropertyGet: 63return MethodKind.PropertyGet;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4789case MethodKind.PropertyGet: 4855case MethodKind.PropertyGet:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1677case MethodKind.PropertyGet:
Symbols\Source\SourcePropertyAccessorSymbol.cs (11)
42var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 95var methodKind = isGetMethod ? MethodKind.PropertyGet : MethodKind.PropertySet; 148MethodKind.PropertyGet, 182methodKind: MethodKind.PropertyGet, 408if (this.MethodKind == MethodKind.PropertyGet) 516MethodKind == MethodKind.PropertyGet; 661MethodSymbol implementedAccessor = this.MethodKind == MethodKind.PropertyGet 724bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 808bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 859? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 863? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbolBase.cs (1)
349{ MethodKind: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword),
Symbols\Symbol.cs (2)
690case MethodKind.PropertyGet: 745case MethodKind.PropertyGet:
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
161MethodKind.PropertyGet,
Symbols\Synthesized\SynthesizedEmbeddedAttributePropertySymbol.cs (1)
60public override MethodKind MethodKind => MethodKind.PropertyGet;
Symbols\TypeSymbol.cs (1)
1573case MethodKind.PropertyGet:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
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)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
79if (method.MethodKind == MethodKind.PropertyGet)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
71method.MethodKind is MethodKind.PropertyGet or MethodKind.Ordinary &&
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\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)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
79if (method.MethodKind == MethodKind.PropertyGet)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
71method.MethodKind is MethodKind.PropertyGet or MethodKind.Ordinary &&
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)
352MethodKind.PropertyGet or MethodKind.PropertySet => FeaturesResources.property_accessor, 3871MethodKind.PropertyGet or 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)
205MethodKind.PropertyGet)
Shared\Extensions\ISymbolExtensions_2.cs (1)
258case MethodKind.PropertyGet:
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\UseCountProperly.cs (1)
766methodSymbol.MethodKind == MethodKind.PropertyGet &&
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (3)
425return method.MethodKind == MethodKind.PropertyGet && 434return method.MethodKind == MethodKind.PropertyGet && 443return method.MethodKind is MethodKind.PropertyGet or
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.CodeAnalysis.Workspaces (4)
ReassignedVariable\AbstractReassignedVariableService.cs (1)
184if (methodOrProperty is IMethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet } method)
Recommendations\AbstractRecommendationService.cs (1)
89case MethodKind.PropertyGet:
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;
Microsoft.DotNet.ApiCompatibility (1)
Rules\CannotAddMemberToInterface.cs (1)
51symbol.MethodKind == MethodKind.PropertyGet ||
Microsoft.DotNet.ApiSymbolExtensions (2)
Filtering\ImplicitSymbolFilter.cs (2)
26method.MethodKind == MethodKind.PropertyGet || 39method.ExplicitInterfaceImplementations.Any(m => m is { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet or MethodKind.EventAdd or MethodKind.EventRemove }))
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (2)
323(MethodKind.PropertyGet, IPropertySymbol { IsIndexer: true }) => StubMemberKind.IndexerGetter, 325(MethodKind.PropertyGet, _) => StubMemberKind.PropertyGetter,
Microsoft.Interop.SourceGeneration (1)
SignatureContext.cs (1)
154ImmutableArray<AttributeData> returnAttributes = method.MethodKind == MethodKind.PropertyGet
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
202MethodKind.PropertyGet or
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\MethodKindExtensions.cs (1)
12=> kind is MethodKind.PropertyGet or MethodKind.PropertySet;