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