144 references to IndexerDeclaration
Microsoft.CodeAnalysis.CSharp (23)
Binder\BinderFactory.BinderFactoryVisitor.cs (4)
287case SyntaxKind.IndexerDeclaration: 495case SyntaxKind.IndexerDeclaration: 526Debug.Assert(basePropertyDeclarationSyntax.Kind() == SyntaxKind.PropertyDeclaration || basePropertyDeclarationSyntax.Kind() == SyntaxKind.IndexerDeclaration); 1263if (memberKind == SyntaxKind.PropertyDeclaration || memberKind == SyntaxKind.IndexerDeclaration)
Compilation\SyntaxTreeSemanticModel.cs (4)
901case SyntaxKind.IndexerDeclaration: 1582case SyntaxKind.IndexerDeclaration: 1607case SyntaxKind.IndexerDeclaration: 1638case SyntaxKind.IndexerDeclaration:
Declarations\DeclarationTreeBuilder.cs (3)
1110case SyntaxKind.IndexerDeclaration: 1194case SyntaxKind.IndexerDeclaration: 1238case SyntaxKind.IndexerDeclaration:
Parser\LanguageParser.cs (2)
556or SyntaxKind.IndexerDeclaration 2393case SyntaxKind.IndexerDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
231case SyntaxKind.IndexerDeclaration: 400case SyntaxKind.IndexerDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5138case SyntaxKind.IndexerDeclaration:
Symbols\Source\SourceMemberMethodSymbol.cs (1)
723arrowExpression.Parent.Kind() == SyntaxKind.IndexerDeclaration ||
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
55arrowExpression.Parent.Kind() == SyntaxKind.IndexerDeclaration);
Symbols\Source\SourcePropertySymbol.cs (1)
63isIndexer: syntax.Kind() == SyntaxKind.IndexerDeclaration,
Syntax\SyntaxExtensions.cs (2)
49case SyntaxKind.IndexerDeclaration: 242case SyntaxKind.IndexerDeclaration:
Syntax\SyntaxFacts.cs (1)
169case IndexerDeclaration:
Syntax\SyntaxNormalizer.cs (1)
849(next.IsKind(SyntaxKind.IdentifierToken) || next.Parent.IsKind(SyntaxKind.IndexerDeclaration)))
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (1)
29[SyntaxKind.IndexerDeclaration])
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (1)
66if (grandparent.Kind() == SyntaxKind.IndexerDeclaration &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
57case SyntaxKind.IndexerDeclaration: 126case SyntaxKind.IndexerDeclaration: 152case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
257or SyntaxKind.IndexerDeclaration 279or SyntaxKind.IndexerDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
60case SyntaxKind.IndexerDeclaration: 183case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1282case SyntaxKind.IndexerDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
130SyntaxKind.IndexerDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
810case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
20{ SyntaxKind.IndexerDeclaration, 3 }, 126case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (3)
22case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).SemicolonToken; 40case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithSemicolonToken(semicolonToken); 58case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithExpressionBody(expressionBody);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
813case SyntaxKind.IndexerDeclaration:
Diagnostics\GetDiagnosticsTests.cs (1)
1008}, SyntaxKind.PropertyDeclaration, SyntaxKind.IndexerDeclaration, SyntaxKind.EventDeclaration, SyntaxKind.MethodDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (25)
ChangeSignature\CSharpChangeSignatureService.cs (5)
45SyntaxKind.IndexerDeclaration, 72SyntaxKind.IndexerDeclaration, 90SyntaxKind.IndexerDeclaration, 276case SyntaxKind.IndexerDeclaration: 303or SyntaxKind.IndexerDeclaration
CodeLens\CSharpCodeLensDisplayInfoService.cs (2)
97node.Parent.Parent.IsKind(SyntaxKind.IndexerDeclaration)) 119case SyntaxKind.IndexerDeclaration:
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
66case SyntaxKind.IndexerDeclaration: 125SyntaxKind.IndexerDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
358case SyntaxKind.IndexerDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
629case SyntaxKind.IndexerDeclaration: 633if (node?.Parent is (kind: SyntaxKind.PropertyDeclaration or SyntaxKind.IndexerDeclaration)) 1464case SyntaxKind.IndexerDeclaration:
EditAndContinue\SyntaxUtilities.cs (1)
39ArrowExpressionClauseSyntax { Parent: (kind: SyntaxKind.PropertyDeclaration) or (kind: SyntaxKind.IndexerDeclaration) } arrowExpression
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
46SyntaxKind.IndexerDeclaration or
LineSeparators\CSharpLineSeparatorService.cs (1)
83case SyntaxKind.IndexerDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (2)
160case SyntaxKind.IndexerDeclaration: 191case SyntaxKind.IndexerDeclaration:
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (1)
29[SyntaxKind.IndexerDeclaration])
src\Analyzers\CSharp\Analyzers\UseExpressionBody\UseExpressionBodyDiagnosticAnalyzer.cs (1)
66if (grandparent.Kind() == SyntaxKind.IndexerDeclaration &&
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
130SyntaxKind.IndexerDeclaration or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
231case SyntaxKind.IndexerDeclaration: 400case SyntaxKind.IndexerDeclaration:
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
39&& (!nextSibling.IsNode || nextSibling.Kind() is SyntaxKind.IndexerDeclaration or SyntaxKind.PropertyDeclaration);
Structure\Providers\PropertyDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.Kind() is SyntaxKind.PropertyDeclaration or SyntaxKind.IndexerDeclaration);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (39)
Parsing\AsyncParsingTests.cs (3)
2038N(SyntaxKind.IndexerDeclaration); 2493N(SyntaxKind.IndexerDeclaration); 2542N(SyntaxKind.IndexerDeclaration);
Parsing\DeclarationParsingTests.cs (5)
4949Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5016Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5084Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5151Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind()); 5227Assert.Equal(SyntaxKind.IndexerDeclaration, cs.Members[0].Kind());
Parsing\FieldKeywordParsingTests.cs (6)
344N(SyntaxKind.IndexerDeclaration); 401N(SyntaxKind.IndexerDeclaration); 467N(SyntaxKind.IndexerDeclaration); 539N(SyntaxKind.IndexerDeclaration); 766N(SyntaxKind.IndexerDeclaration); 2343N(SyntaxKind.IndexerDeclaration);
Parsing\MemberDeclarationParsingTests.cs (4)
11780N(SyntaxKind.IndexerDeclaration); 18720N(SyntaxKind.IndexerDeclaration); 18802N(SyntaxKind.IndexerDeclaration); 18898N(SyntaxKind.IndexerDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (14)
2026Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2065Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2085Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2104Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2125Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2143Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2174Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2192Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2209Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2228Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2268Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2289Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2309Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind()); 2331Assert.Equal(SyntaxKind.IndexerDeclaration, agg.Members[0].Kind());
Parsing\ScriptParsingTests.cs (7)
811N(SyntaxKind.IndexerDeclaration); 855N(SyntaxKind.IndexerDeclaration); 915N(SyntaxKind.IndexerDeclaration); 1530N(SyntaxKind.IndexerDeclaration); 1569N(SyntaxKind.IndexerDeclaration); 1610N(SyntaxKind.IndexerDeclaration); 1657N(SyntaxKind.IndexerDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (28)
CodeGeneration\CSharpSyntaxGenerator.cs (13)
504AsModifierList(accessibility, actualModifiers, SyntaxKind.IndexerDeclaration), 632SyntaxKind.IndexerDeclaration => ((IndexerDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier), 659case SyntaxKind.IndexerDeclaration: 842case SyntaxKind.IndexerDeclaration: 1576case SyntaxKind.IndexerDeclaration: 1974case SyntaxKind.IndexerDeclaration: 2011SyntaxKind.IndexerDeclaration => ((IndexerDeclarationSyntax)declaration).WithType((TypeSyntax)type), 2159currentList ??= declaration.IsKind(SyntaxKind.IndexerDeclaration) 2242case SyntaxKind.IndexerDeclaration: 2290case SyntaxKind.IndexerDeclaration: 2346case SyntaxKind.IndexerDeclaration: 2570SyntaxKind.IndexerDeclaration => ((IndexerDeclarationSyntax)declaration).ExpressionBody == null, 2590case SyntaxKind.IndexerDeclaration:
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
336case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (3)
57case SyntaxKind.IndexerDeclaration: 126case SyntaxKind.IndexerDeclaration: 152case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
257or SyntaxKind.IndexerDeclaration 279or SyntaxKind.IndexerDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
60case SyntaxKind.IndexerDeclaration: 183case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1282case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
810case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
20{ SyntaxKind.IndexerDeclaration, 3 }, 126case SyntaxKind.IndexerDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (3)
22case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).SemicolonToken; 40case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithSemicolonToken(semicolonToken); 58case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithExpressionBody(expressionBody);
Microsoft.VisualStudio.LanguageServices.CSharp (10)
CodeModel\CSharpCodeModelService.cs (7)
102case SyntaxKind.IndexerDeclaration: 199case SyntaxKind.IndexerDeclaration: 566case SyntaxKind.IndexerDeclaration: 617case SyntaxKind.IndexerDeclaration: 820case SyntaxKind.IndexerDeclaration: 2611return property.IsKind(SyntaxKind.IndexerDeclaration); 3504case SyntaxKind.IndexerDeclaration:
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
57case SyntaxKind.IndexerDeclaration: 108case SyntaxKind.IndexerDeclaration:
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (1)
233case SyntaxKind.IndexerDeclaration: