5 implementations of IsIndexer
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationPropertySymbol.cs (1)
22public bool IsIndexer { get; }
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\PropertySymbol.cs (1)
26bool IPropertySymbol.IsIndexer
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedPropertySymbol.cs (1)
36public bool IsIndexer => _symbol.IsIndexer;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PropertySymbol.vb (1)
105Public MustOverride ReadOnly Property IsDefault As Boolean Implements IPropertySymbol.IsIndexer
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationPropertySymbol.cs (1)
22public bool IsIndexer { get; }
78 references to IsIndexer
Microsoft.CodeAnalysis.CodeStyle (10)
AbstractUseAutoPropertyAnalyzer.cs (1)
161if (property.IsIndexer)
INamedTypeSymbolExtensions.cs (1)
417where m.Kind != SymbolKind.Property || ((IPropertySymbol)m).IsIndexer || ((IPropertySymbol)m).CanBeReferencedByName
INamespaceOrTypeSymbolExtensions.cs (1)
28: symbol.GetMembers(WellKnownMemberNames.Indexer).OfType<IPropertySymbol>().Where(p => p.IsIndexer);
ISymbolExtensions.cs (1)
262=> symbol is IPropertySymbol { IsIndexer: true };
NamingStyleRules.cs (1)
60return !property.IsIndexer;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
586x.IsIndexer == y.IsIndexer &&
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
245Hash.Combine(x.IsIndexer,
SymbolKey.PropertySymbolKey.cs (2)
17visitor.WriteBoolean(symbol.IsIndexer); 48candidate.IsIndexer != isIndexer ||
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationSymbolFactory.cs (1)
565isIndexer ?? property.IsIndexer);
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
201if (symbol.IsIndexer)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
123if (!propertyReference.Property.IsIndexer)
Helpers.cs (1)
130.Where(p => p.IsIndexer &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpTypeInferenceService.TypeInferrer.cs (1)
566.Where(p => p.IsIndexer && p.Parameters.Length > index);
PropertyGenerator.cs (2)
25=> property.IsIndexer || property.Parameters.Length == 0; 80var declaration = property.IsIndexer
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\IndexAndRangeTests.cs (1)
1001Assert.True(property.IsIndexer);
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
226else if (member is IPropertySymbol { IsStatic: true, IsIndexer: false } property)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (1)
33if (symbol.IsIndexer)
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
123if (!propertyReference.Property.IsIndexer)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1941=> symbol.IsIndexer ? CSharpFeaturesResources.indexer : base.GetDisplayName(symbol); 1946MethodKind.PropertyGet => symbol.AssociatedSymbol is IPropertySymbol { IsIndexer: true } ? CSharpFeaturesResources.indexer_getter : CSharpFeaturesResources.property_getter, 1947MethodKind.PropertySet => symbol.AssociatedSymbol is IPropertySymbol { IsIndexer: true } ? CSharpFeaturesResources.indexer_setter : CSharpFeaturesResources.property_setter,
J\s\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs\Helpers.cs (1)
130.Where(p => p.IsIndexer &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\SemanticModelAPITests.cs (1)
146Assert.True(propertySymbol.IsIndexer);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
4548Assert.True(symbol.ContainingSymbol.Kind == SymbolKind.Property && ((IPropertySymbol)symbol.ContainingSymbol).IsIndexer);
DocumentationComments\CrefTests.cs (1)
3254Assert.True(((IPropertySymbol)info.CandidateSymbols[0]).IsIndexer);
SymbolDisplay\SymbolDisplayTests.cs (2)
5382var indexer = type.GetMembers().Where(m => m.Kind == SymbolKind.Property && ((IPropertySymbol)m).IsIndexer).Single(); 5586var indexer = type.GetMembers().Where(m => m.Kind == SymbolKind.Property && ((IPropertySymbol)m).IsIndexer).Single();
Symbols\Source\NullablePublicAPITests.cs (2)
3273Assert.True(propertySymbol.IsIndexer); 3324Assert.True(propertySymbol.IsIndexer);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CSharpTypeInferenceService.TypeInferrer.cs (1)
566.Where(p => p.IsIndexer && p.Parameters.Length > index);
PropertyGenerator.cs (2)
25=> property.IsIndexer || property.Parameters.Length == 0; 80var declaration = property.IsIndexer
Recommendations\CSharpRecommendationServiceRunner.cs (1)
574if (member.IsIndexer)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.cs (4)
2496var property = type.GetMembers().Single(m => m is IPropertySymbol { IsIndexer: false }); 2497var indexer = type.GetMembers().Single(m => m is IPropertySymbol { IsIndexer: true }); 4175var indexer = symbolC.GetMembers().OfType<IPropertySymbol>().Single(m => m.IsIndexer); 4176var property = symbolC.GetMembers().OfType<IPropertySymbol>().Single(m => !m.IsIndexer);
Microsoft.CodeAnalysis.Features (8)
AbstractUseAutoPropertyAnalyzer.cs (1)
161if (property.IsIndexer)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
534=> property is { IsIndexer: true, Parameters: [{ Type.SpecialType: SpecialType.System_Int32 }] };
ExtractInterface\AbstractExtractInterfaceService.cs (1)
425isIndexer: property.IsIndexer));
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
224IsIndexer = propertySymbol.IsIndexer;
ImplementInterface\AbstractImplementInterfaceService.CodeAction_Property.cs (1)
46if (property is { IsIndexer: false, Parameters.Length: > 0 } &&
MetadataAsSource\AbstractMetadataAsSourceService.WrappedPropertySymbol.cs (1)
36public bool IsIndexer => _symbol.IsIndexer;
RQName\RQNodeBuilder.cs (1)
101RQMethodPropertyOrEventName name = symbol.IsIndexer
ValueTracking\ValueTracker.FindReferencesProgress.cs (1)
89else if (symbol is IPropertySymbol { IsIndexer: true } propertySymbol)
Microsoft.CodeAnalysis.VisualBasic (2)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
76If format.MemberOptions.IncludesOption(SymbolDisplayMemberOptions.IncludeModifiers) AndAlso symbol.IsIndexer Then
Symbols\PropertySymbol.vb (1)
105Public MustOverride ReadOnly Property IsDefault As Boolean Implements IPropertySymbol.IsIndexer
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
178semanticModel.LookupSymbols(position, expressionType, includeReducedExtensionMethods:=True).OfType(Of IPropertySymbol).Where(Function(p) p.IsIndexer).ToList())
SignatureHelp\InvocationExpressionSignatureHelpProvider.vb (1)
111WhereAsArray(Function(p) p.IsIndexer).
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolDisplay\SymbolDisplayTests.vb (1)
5330Dim indexer = type.GetMembers().Where(Function(m) m.Kind = SymbolKind.Property AndAlso DirectCast(m, IPropertySymbol).IsIndexer).Single()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\PropertyGenerator.vb (1)
181If [property].IsIndexer Then
Microsoft.CodeAnalysis.Workspaces (20)
CodeGenerationSymbolFactory.cs (1)
565isIndexer ?? property.IsIndexer);
Editing\SyntaxGenerator.cs (1)
731if (property.IsIndexer)
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (3)
108var elementAccessDocument = symbol.IsIndexer 112var indexerMemberCrefDocument = symbol.IsIndexer 149var indexerReferences = symbol.IsIndexer
INamespaceOrTypeSymbolExtensions.cs (1)
28: symbol.GetMembers(WellKnownMemberNames.Indexer).OfType<IPropertySymbol>().Where(p => p.IsIndexer);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
417where m.Kind != SymbolKind.Property || ((IPropertySymbol)m).IsIndexer || ((IPropertySymbol)m).CanBeReferencedByName
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (1)
262=> symbol is IPropertySymbol { IsIndexer: true };
NamingStyleRules.cs (1)
60return !property.IsIndexer;
Shared\Extensions\IPropertySymbolExtensions.cs (2)
37property.IsIndexer); 67property.IsIndexer);
Shared\Extensions\SyntaxGeneratorExtensions.cs (2)
656var expression = property.IsIndexer 680var expression = property.IsIndexer
Shared\Utilities\SignatureComparer.cs (2)
55property1.IsIndexer != property2.IsIndexer)
SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
586x.IsIndexer == y.IsIndexer &&
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
245Hash.Combine(x.IsIndexer,
SymbolKey.PropertySymbolKey.cs (2)
17visitor.WriteBoolean(symbol.IsIndexer); 48candidate.IsIndexer != isIndexer ||
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphBuilder.cs (1)
395if (propertySymbol.IsIndexer && LanguageNames.CSharp == propertySymbol.Language)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
461if (symbol.IsIndexer)
ObjectBrowser\DescriptionBuilder.cs (1)
482if (propertySymbol.IsIndexer)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\ExternalElements\ExternalCodeProperty.cs (1)
103return PropertySymbol.IsIndexer;