2 implementations of IPropertySymbol_GetMethod
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\PropertySymbol.cs (1)
51IMethodSymbol IPropertySymbol.GetMethod
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PropertySymbol.vb (1)
544Private ReadOnly Property IPropertySymbol_GetMethod As IMethodSymbol Implements IPropertySymbol.GetMethod
209 references to IPropertySymbol_GetMethod
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\Members\PropertySpec.cs (1)
20CanGet = property.GetMethod?.DeclaredAccessibility is Accessibility.Public;
ILLink.RoslynAnalyzer (13)
DataFlow\DynamicallyAccessedMembersBinder.cs (10)
258 (property.GetMethod == null || property.GetMethod.DeclaredAccessibility == Accessibility.Private) && 266 if ((property.GetMethod != null) && !property.GetMethod.IsStatic) continue; 271 if ((property.GetMethod != null) && property.GetMethod.IsStatic) continue; 276 if ((property.GetMethod == null || (property.GetMethod.DeclaredAccessibility != Accessibility.Public)) 282 if ((property.GetMethod != null) && (property.GetMethod.DeclaredAccessibility == Accessibility.Public)) continue;
IPropertySymbolExtensions.cs (1)
14 while ((getMethod = declaringProperty.GetMethod) == null) {
TrimAnalysis\ReflectionAccessAnalyzer.cs (2)
170 if (propertySymbol.GetMethod is not null) 171 GetReflectionAccessDiagnosticsForMethod (location, propertySymbol.GetMethod);
Microsoft.CodeAnalysis.CodeStyle (17)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
542member is IPropertySymbol { GetMethod: not null, SetMethod: not null } property2 &&
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
371if (property.GetMethod == null) 391var getterFields = GetGetterFields(semanticModel, property.GetMethod, fieldNames, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (7)
118return IsAccessorImplemented(propertySymbol.GetMethod, classOrStructType) && IsAccessorImplemented(propertySymbol.SetMethod, classOrStructType); 131if (propertySymbol.GetMethod != null) 133if (classOrStructType.FindImplementationForAbstractMember(propertySymbol.GetMethod) == null) 216return IsNonPublicImplementableAccessor(property.GetMethod) || IsNonPublicImplementableAccessor(property.SetMethod); 316return IsInaccessibleImplementableAccessor(property.GetMethod, within) || IsInaccessibleImplementableAccessor(property.SetMethod, within); 500propertySymbol.GetMethod != null && 502propertySymbol.GetMethod.IsAccessibleWithin(within) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
671if (!returnType.GetMembers().OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.IsCompleted && p.Type.SpecialType == SpecialType.System_Boolean && p.GetMethod != null)) 710if (!members.OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.CurrentPropertyName && p.GetMethod != null)) 750if (!members.OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.CurrentPropertyName && p.GetMethod != null))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (4)
178if (BadPropertyAccessor(property1.GetMethod, property2.GetMethod) || 188if (BadPropertyAccessor(property2.GetMethod, property1.GetMethod) ||
Microsoft.CodeAnalysis.CodeStyle.Fixes (14)
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (4)
203if (property.GetMethod == null) 212var getMethod = ShouldGenerateAccessor(property.GetMethod) 214property.GetMethod, 216accessibility: property.GetMethod.ComputeResultantAccessibility(ClassType),
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (2)
34.Where(p => !p.IsImplicitlyDeclared && p.Parameters.Length == 0 && p.GetMethod != null) 139if (IsLessAccessibleThan(propertySymbol.GetMethod, second))
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (4)
106if (property.GetMethod == null) 135if (property.GetMethod == null) 138var getMethod = property.GetMethod.RemoveInaccessibleAttributesAndAttributesOfTypes( 146explicitInterfaceImplementations: useExplicitInterfaceSymbol ? [property.GetMethod] : default,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (2)
35property.GetMethod, 65property.GetMethod,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
220if (conflictingProperty is { GetMethod: not null, Parameters.Length: 0 } && 221property is { GetMethod: not null, Parameters.Length: 0 })
Microsoft.CodeAnalysis.CSharp (3)
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
366var declaredAccessor = getSymbol ? (model.GetDeclaredSymbol(declarationWithExpressionBody, cancellationToken) as IPropertySymbol)?.GetMethod : null;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
106var getMethod = property.GetMethod; 185AddAccessor(symbol, symbol.GetMethod, SyntaxKind.GetKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (5)
115owningProperty.GetMethod is null || 116owningProperty.GetMethod.IsReadOnly || 117methodToDiagnostic.ContainsKey(owningProperty.GetMethod); 310if (propertyReference.Property.GetMethod is null || 311!propertyReference.Property.GetMethod.IsReadOnly)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
132propertyReference.Property.GetMethod,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (1)
159var getAccessor = propertySymbol.GetMethod;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
197if (property.GetMethod != null) 199var getMethod = property.GetMethod;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (3)
263GenerateAccessorDeclaration(property, property.GetMethod, SyntaxKind.GetAccessorDeclaration, destination, info, cancellationToken), 334var hasNonReadOnlyAccessor = property.GetMethod?.IsReadOnly == false || property.SetMethod?.IsReadOnly == false; 375var hasAllReadOnlyAccessors = property.GetMethod?.IsReadOnly != false && property.SetMethod?.IsReadOnly != false;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
902Assert.Equal("System.Int32 C.X.get", x.GetMethod.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Features (23)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (12)
1119AddMemberUpdate(ref result, oldPropertySymbol.GetMethod, newPropertySymbol.GetMethod, matchingNewContainingMemberOrType); 1135result.Add((oldSynthesizedAutoProperty?.GetMethod, newSynthesizedAutoProperty?.GetMethod, editKind)); 1211if (oldPropertySymbol.GetMethod != null || newPropertySymbol.GetMethod != null) 1215DiffersInReadOnlyModifier(oldPropertySymbol.GetMethod, newPropertySymbol.GetMethod) || 1218result.Add((oldPropertySymbol.GetMethod, newPropertySymbol.GetMethod, editKind)); 1335var oldGetterSymbol = ((IPropertySymbol?)oldSymbol)?.GetMethod; 1336var newGetterSymbol = ((IPropertySymbol?)newSymbol)?.GetMethod;
InitializeParameter\InitializeParameterHelpers.cs (2)
202if (property.GetMethod != null) 203accessors.AddIfNotNull(GetAccessorBody(property.GetMethod, cancellationToken));
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
82var getMethod = property.GetMethod;
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (5)
115owningProperty.GetMethod is null || 116owningProperty.GetMethod.IsReadOnly || 117methodToDiagnostic.ContainsKey(owningProperty.GetMethod); 310if (propertyReference.Property.GetMethod is null || 311!propertyReference.Property.GetMethod.IsReadOnly)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
132propertyReference.Property.GetMethod,
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (1)
159var getAccessor = propertySymbol.GetMethod;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
366var declaredAccessor = getSymbol ? (model.GetDeclaredSymbol(declarationWithExpressionBody, cancellationToken) as IPropertySymbol)?.GetMethod : null;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\TopLevelEditingTests.cs (1)
16465SemanticEdit(SemanticEditKind.Update, c => ((IPropertySymbol)c.GetMember<INamedTypeSymbol>("C").GetMembers("P").First()).GetMethod),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\ForEachTests.cs (1)
3277Assert.Equal(enumeratorInfo.CurrentPropertyGetter.GetPublicSymbol(), statementInfo.CurrentProperty.GetMethod);
Semantics\InitOnlyMemberTests.cs (1)
51Assert.False(publicProperty.GetMethod.IsInitOnly);
Semantics\ReadOnlyStructsTests.cs (7)
1196Assert.True(getProperty(s1, "P1").GetMethod.IsReadOnly); 1199Assert.True(getProperty(s1, "P2").GetMethod.IsReadOnly); 1201Assert.True(getProperty(s1, "P3").GetMethod.IsReadOnly); 1205Assert.False(getProperty(s1, "P5").GetMethod.IsReadOnly); 1215Assert.True(getProperty(s2, "P1").GetMethod.IsReadOnly); 1217Assert.True(getProperty(s2, "P2").GetMethod.IsReadOnly); 1221Assert.False(getProperty(s2, "P4").GetMethod.IsReadOnly);
Semantics\RecordStructTests.cs (2)
1765Assert.Equal("readonly System.Int32 C.X.get", x.GetMethod.ToTestDisplayString()); 1812Assert.Equal("System.Int32 C.X.get", x.GetMethod.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\SemanticModelAPITests.cs (1)
2002Assert.Equal("System.Object System.Collections.IEnumerator.Current.get", info.CurrentProperty.GetMethod.ToTestDisplayString());
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (3)
2877Assert.Same(explicitPropertySymbol.GetMethod, explicitPropertyGetterSymbol); 3148Assert.Equal(prop.GetMethod, dsym); 3155Assert.Equal(prop.GetMethod, dsym);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
197if (property.GetMethod != null) 199var getMethod = property.GetMethod;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (3)
263GenerateAccessorDeclaration(property, property.GetMethod, SyntaxKind.GetAccessorDeclaration, destination, info, cancellationToken), 334var hasNonReadOnlyAccessor = property.GetMethod?.IsReadOnly == false || property.SetMethod?.IsReadOnly == false; 375var hasAllReadOnlyAccessors = property.GetMethod?.IsReadOnly != false && property.SetMethod?.IsReadOnly != false;
Microsoft.CodeAnalysis.Features (30)
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
352var getMethod = prop.GetMethod != null ? CreateAccessorSymbol(prop, MethodKind.PropertyGet) : null;
EditAndContinue\Utilities\Extensions.cs (1)
142=> property is { GetMethod.IsImplicitlyDeclared: true, SetMethod.IsImplicitlyDeclared: true };
ExtractInterface\AbstractExtractInterfaceService.cs (6)
405var hasGetMethod = property.GetMethod != null && property.GetMethod.DeclaredAccessibility == Accessibility.Public; 410getMethod = CodeGenerationSymbolFactory.CreateAccessorSymbol(property.GetMethod, property.GetMethod.GetAttributes()); 453((prop.GetMethod != null && prop.GetMethod.DeclaredAccessibility == Accessibility.Public) ||
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (2)
752if (property.GetMethod != null) 753accessors.AddIfNotNull(GetAccessorBody(property.GetMethod, cancellationToken));
PullMemberUp\MembersPuller.cs (3)
164getMethod: MakePublicAccessor(propertySymbol.GetMethod), 173getMethod: FilterOutNonPublicAccessor(propertySymbol.GetMethod), 455return CodeGenerationSymbolFactory.CreatePropertySymbol(propertySymbol, modifiers: modifier, getMethod: propertySymbol.GetMethod, setMethod: propertySymbol.SetMethod);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (2)
305if (_property.GetMethod != null) 415=> _propertyBackingField != null && _property.GetMethod == null;
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
60(propertySymbol.GetMethod == null ? 0 : 1) + 143return property.GetMethod != null &&
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
542member is IPropertySymbol { GetMethod: not null, SetMethod: not null } property2 &&
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
371if (property.GetMethod == null) 391var getterFields = GetGetterFields(semanticModel, property.GetMethod, fieldNames, cancellationToken);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (4)
203if (property.GetMethod == null) 212var getMethod = ShouldGenerateAccessor(property.GetMethod) 214property.GetMethod, 216accessibility: property.GetMethod.ComputeResultantAccessibility(ClassType),
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (2)
34.Where(p => !p.IsImplicitlyDeclared && p.Parameters.Length == 0 && p.GetMethod != null) 139if (IsLessAccessibleThan(propertySymbol.GetMethod, second))
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (4)
106if (property.GetMethod == null) 135if (property.GetMethod == null) 138var getMethod = property.GetMethod.RemoveInaccessibleAttributesAndAttributesOfTypes( 146explicitInterfaceImplementations: useExplicitInterfaceSymbol ? [property.GetMethod] : default,
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PropertySymbol.vb (1)
544Private ReadOnly Property IPropertySymbol_GetMethod As IMethodSymbol Implements IPropertySymbol.GetMethod
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Analyzers\VisualBasic\Analyzers\UseAutoProperty\VisualBasicUseAutoPropertyAnalyzer.vb (2)
65If prop.GetMethod IsNot Nothing AndAlso 66prop.GetMethod.DeclaredAccessibility <> prop.DeclaredAccessibility Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (6)
78Dim getMethod = [property].GetMethod 112GenerateAccessor([property], [property].GetMethod, isGetter:=True, destination:=destination, options:=options), 216If [property].GetMethod Is Nothing AndAlso 222[property].GetMethod IsNot Nothing Then 237Dim attributes = If([property].GetMethod IsNot Nothing, 238AttributeGenerator.GenerateAttributeBlocks([property].GetMethod.GetReturnTypeAttributes(), options),
Microsoft.CodeAnalysis.VisualBasic.Features (9)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (6)
785AddMemberUpdate(result, oldPropertySymbol.GetMethod, newPropertySymbol.GetMethod, matchingNewContainingMemberOrType) 832If oldPropertySymbol.GetMethod IsNot Nothing OrElse newPropertySymbol.GetMethod IsNot Nothing Then 834result.Add((oldPropertySymbol.GetMethod, newPropertySymbol.GetMethod, editKind))
ReplacePropertyWithMethods\VisualBasicReplacePropertyWithMethods.vb (1)
62Dim getMethod = [property].GetMethod
src\Analyzers\VisualBasic\Analyzers\UseAutoProperty\VisualBasicUseAutoPropertyAnalyzer.vb (2)
65If prop.GetMethod IsNot Nothing AndAlso 66prop.GetMethod.DeclaredAccessibility <> prop.DeclaredAccessibility Then
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
EditAndContinue\TopLevelEditingTests.vb (1)
11035SemanticEdit(SemanticEditKind.Update, Function(c) CType(c.GetMember(Of NamedTypeSymbol)("C").GetMembers("P").First(), IPropertySymbol).GetMethod),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (6)
78Dim getMethod = [property].GetMethod 112GenerateAccessor([property], [property].GetMethod, isGetter:=True, destination:=destination, options:=options), 216If [property].GetMethod Is Nothing AndAlso 222[property].GetMethod IsNot Nothing Then 237Dim attributes = If([property].GetMethod IsNot Nothing, 238AttributeGenerator.GenerateAttributeBlocks([property].GetMethod.GetReturnTypeAttributes(), options),
Microsoft.CodeAnalysis.Workspaces (32)
Editing\SyntaxGenerator.cs (1)
369var getMethodSymbol = property.GetMethod;
FindSymbols\FindReferences\Finders\AbstractMethodOrPropertyOrEventSymbolReferenceFinder.cs (2)
40result.AddIfNotNull(property.GetMethod); 57return inNameOf || inStructuredTrivia || property.GetMethod == null
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (3)
195if (containingProperty.GetMethod != null && ordinal < containingProperty.GetMethod.Parameters.Length) 196results.Add(containingProperty.GetMethod.Parameters[ordinal]);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
66result.AddIfNotNull(symbol.GetMethod);
ReassignedVariable\AbstractReassignedVariableService.cs (2)
365var getParameter = property.GetMethod?.Parameters[parameter.Ordinal]; 388var getParameter = property.GetMethod?.Parameters[parameter.Ordinal];
Shared\Extensions\SyntaxGeneratorExtensions.cs (5)
51var getAccessibility = overriddenProperty.GetMethod.ComputeResultantAccessibility(containingType); 88var getName = overriddenProperty.GetMethod?.Name; 147if (overriddenProperty.GetMethod != null && overriddenProperty.GetMethod.IsAccessibleWithin(containingType)) 150overriddenProperty.GetMethod,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (7)
118return IsAccessorImplemented(propertySymbol.GetMethod, classOrStructType) && IsAccessorImplemented(propertySymbol.SetMethod, classOrStructType); 131if (propertySymbol.GetMethod != null) 133if (classOrStructType.FindImplementationForAbstractMember(propertySymbol.GetMethod) == null) 216return IsNonPublicImplementableAccessor(property.GetMethod) || IsNonPublicImplementableAccessor(property.SetMethod); 316return IsInaccessibleImplementableAccessor(property.GetMethod, within) || IsInaccessibleImplementableAccessor(property.SetMethod, within); 500propertySymbol.GetMethod != null && 502propertySymbol.GetMethod.IsAccessibleWithin(within) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (3)
671if (!returnType.GetMembers().OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.IsCompleted && p.Type.SpecialType == SpecialType.System_Boolean && p.GetMethod != null)) 710if (!members.OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.CurrentPropertyName && p.GetMethod != null)) 750if (!members.OfType<IPropertySymbol>().Any(p => p.Name == WellKnownMemberNames.CurrentPropertyName && p.GetMethod != null))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (4)
178if (BadPropertyAccessor(property1.GetMethod, property2.GetMethod) || 188if (BadPropertyAccessor(property2.GetMethod, property1.GetMethod) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IPropertySymbolExtensions.cs (2)
35property.GetMethod, 65property.GetMethod,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
220if (conflictingProperty is { GetMethod: not null, Parameters.Length: 0 } && 221property is { GetMethod: not null, Parameters.Length: 0 })
Microsoft.Extensions.Options.SourceGeneration (2)
ParserUtilities.cs (2)
83property.Kind == SymbolKind.Property && !property.IsStatic && property.GetMethod != null && property.Parameters.IsEmpty)) 97!property.IsStatic && property.GetMethod != null && property.Parameters.IsEmpty))
Microsoft.Gen.ContextualOptions (1)
Parser.cs (1)
91prop.GetMethod!.DeclaredAccessibility == Accessibility.Public;
Microsoft.Gen.Logging (7)
Parsing\Parser.LogProperties.cs (6)
251|| (property.GetMethod == null || property.GetMethod.DeclaredAccessibility != Accessibility.Public)) 293|| (property.GetMethod == null || property.GetMethod.DeclaredAccessibility != Accessibility.Public)) 307|| (property.GetMethod == null || property.GetMethod.DeclaredAccessibility != Accessibility.Public)
Parsing\Parser.Records.cs (1)
97var getMethod = property.GetMethod;
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
985if (marshallerType.GetMembers(ShapeMemberNames.BufferSize).OfType<IPropertySymbol>().FirstOrDefault(prop => prop is { ReturnsByRef: false, ReturnsByRefReadonly: false, GetMethod: not null }) is null)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
ObjectBrowser\DescriptionBuilder.cs (3)
508if (propertySymbol.GetMethod != null) 510if (propertySymbol.GetMethod.DeclaredAccessibility != propertySymbol.DeclaredAccessibility) 512BuildAccessibility(propertySymbol.GetMethod);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ObjectBrowser\DescriptionBuilder.vb (1)
247If propertySymbol.GetMethod IsNot Nothing Then
System.Text.Json.SourceGeneration (2)
Helpers\RoslynExtensions.cs (1)
311isGetterNonNullable = property.GetMethod != null && IsOutputTypeNonNullable(property, property.Type);
JsonSourceGenerator.Parser.cs (1)
1361if (propertyInfo.GetMethod is { } getMethod)