233 references to IndexerDeclarationSyntax
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Statements.cs (1)
3552IndexerDeclarationSyntax => MessageID.IDS_FeatureExpressionBodiedIndexer,
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
398public override Binder VisitIndexerDeclaration(IndexerDeclarationSyntax parent)
Compilation\CSharpSemanticModel.cs (1)
3032public abstract IPropertySymbol GetDeclaredSymbol(IndexerDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken));
Compilation\MemberSemanticModel.cs (1)
656public override IPropertySymbol GetDeclaredSymbol(IndexerDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Compilation\PublicSemanticModel.cs (1)
42IndexerDeclarationSyntax or
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
310public override IPropertySymbol GetDeclaredSymbol(IndexerDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SyntaxTreeSemanticModel.cs (5)
903var indexerDecl = (IndexerDeclarationSyntax)memberDecl; 1541public override IPropertySymbol GetDeclaredSymbol(IndexerDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)) 1640var indexerDecl = (IndexerDeclarationSyntax)declaration;
CSharpExtensions.cs (1)
1436public static IPropertySymbol? GetDeclaredSymbol(this SemanticModel? semanticModel, IndexerDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Parser\LanguageParser.cs (1)
3942private IndexerDeclarationSyntax ParseIndexerDeclaration(
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (3)
233var t = (IndexerDeclarationSyntax)node; 401arrowExpr = ((IndexerDeclarationSyntax)node).ExpressionBody;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
5140var indexerSyntax = (IndexerDeclarationSyntax)m;
Symbols\Source\SourcePropertySymbol.cs (3)
26internal static SourcePropertySymbol Create(SourceMemberContainerTypeSymbol containingType, Binder bodyBinder, IndexerDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) 184IndexerDeclarationSyntax i => i.ExpressionBody, 779=> (syntax as IndexerDeclarationSyntax)?.ParameterList;
Symbols\Source\SourcePropertySymbolBase.cs (1)
459var indexerNameAttributeLists = ((IndexerDeclarationSyntax)CSharpSyntaxNode).AttributeLists;
Syntax\IndexerDeclarationSyntax.cs (2)
25public IndexerDeclarationSyntax WithSemicolon(SyntaxToken semicolon) 36public static IndexerDeclarationSyntax IndexerDeclaration(
Syntax\LookupPosition.cs (1)
58IndexerDeclarationSyntax indexer)
Syntax\SyntaxExtensions.cs (3)
50arrowExpr = ((IndexerDeclarationSyntax)node).ExpressionBody; 266public static IndexerDeclarationSyntax Update( 267this IndexerDeclarationSyntax syntax,
Syntax\SyntaxFacts.cs (1)
170return ((IndexerDeclarationSyntax)parent).Type == node;
Microsoft.CodeAnalysis.CSharp.CodeStyle (25)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
202IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ThisKeyword,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (17)
19UseExpressionBodyHelper<IndexerDeclarationSyntax> 36protected override BlockSyntax GetBody(IndexerDeclarationSyntax declaration) 39protected override ArrowExpressionClauseSyntax GetExpressionBody(IndexerDeclarationSyntax declaration) 42protected override SyntaxToken GetSemicolonToken(IndexerDeclarationSyntax declaration) 45protected override IndexerDeclarationSyntax WithSemicolonToken(IndexerDeclarationSyntax declaration, SyntaxToken token) 48protected override IndexerDeclarationSyntax WithExpressionBody(IndexerDeclarationSyntax declaration, ArrowExpressionClauseSyntax expressionBody) 51protected override IndexerDeclarationSyntax WithAccessorList(IndexerDeclarationSyntax declaration, AccessorListSyntax accessorList) 54protected override IndexerDeclarationSyntax WithBody(IndexerDeclarationSyntax declaration, BlockSyntax body) 64protected override IndexerDeclarationSyntax WithGenerateBody(SemanticModel semanticModel, IndexerDeclarationSyntax declaration) 67protected override bool CreateReturnStatementForExpression(SemanticModel semanticModel, IndexerDeclarationSyntax declaration) => true; 70IndexerDeclarationSyntax declaration, 79protected override Location GetDiagnosticLocation(IndexerDeclarationSyntax declaration)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (4)
58return ((IndexerDeclarationSyntax)member).ThisKeyword; 127return ((IndexerDeclarationSyntax)member).WithParameterList((BracketedParameterListSyntax)parameterList); 153return ((IndexerDeclarationSyntax)member).Type; 176IndexerDeclarationSyntax indexer => indexer.ExpressionBody,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
149IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ParameterList, 349case BaseMethodDeclarationSyntax or IndexerDeclarationSyntax or EventDeclarationSyntax:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
61return ((IndexerDeclarationSyntax)declaration).ExplicitInterfaceSpecifier == null;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (2)
93var oldIndexer = node.Parent?.Parent as IndexerDeclarationSyntax;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
814var indexerDeclarationSyntax = (IndexerDeclarationSyntax)syntaxNode;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (4)
127return Compare((IndexerDeclarationSyntax)x, (IndexerDeclarationSyntax)y); 249private static int Compare(IndexerDeclarationSyntax x, IndexerDeclarationSyntax y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (3)
97var declaration = IndexerDeclaration( 196private static IndexerDeclarationSyntax UseExpressionBodyIfDesired( 197CSharpCodeGenerationContextInfo info, IndexerDeclarationSyntax declaration, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (6)
13/// Available if <paramref name="node"/> is <see cref="PropertyDeclarationSyntax"/> or <see cref="IndexerDeclarationSyntax"/>. 22case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).SemicolonToken; 30/// Available if <paramref name="node"/> is <see cref="PropertyDeclarationSyntax"/> or <see cref="IndexerDeclarationSyntax"/>. 40case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithSemicolonToken(semicolonToken); 48/// Available if <paramref name="node"/> is <see cref="PropertyDeclarationSyntax"/> or <see cref="IndexerDeclarationSyntax"/>. 58case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithExpressionBody(expressionBody);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
523targetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, kind);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
613IndexerDeclarationSyntax indexerNode => indexerNode.ParameterList.Span.End,
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
471IndexerDeclarationSyntax indexerDeclarationNode => ShouldAddBraceForIndexerDeclaration(indexerDeclarationNode, caretPosition), 599private static bool ShouldAddBraceForIndexerDeclaration(IndexerDeclarationSyntax indexerDeclarationNode, int caretPosition)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Structure\IndexerDeclarationStructureTests.cs (1)
15public class IndexerDeclarationStructureTests : AbstractCSharpSyntaxNodeStructureTests<IndexerDeclarationSyntax>
Structure\MetadataAsSource\IndexerDeclarationStructureTests.cs (1)
14public class IndexerDeclarationStructureTests : AbstractCSharpSyntaxNodeStructureTests<IndexerDeclarationSyntax>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\GetDiagnosticsTests.cs (2)
992if (operationBlock.Syntax is PropertyDeclarationSyntax or IndexerDeclarationSyntax) 1019IndexerDeclarationSyntax indexerDecl => indexerDecl.ThisKeyword.GetLocation(),
Microsoft.CodeAnalysis.CSharp.Features (53)
ChangeSignature\CSharpChangeSignatureService.cs (1)
342if (updatedNode is IndexerDeclarationSyntax indexer)
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
39?? token.GetAncestor<IndexerDeclarationSyntax>()
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (1)
59?? token.GetAncestor<IndexerDeclarationSyntax>()
Completion\KeywordRecommenders\GetKeywordRecommender.cs (1)
22context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, SyntaxKind.GetKeyword);
Completion\KeywordRecommenders\InitKeywordRecommender.cs (1)
22context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, SyntaxKind.InitKeyword);
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (1)
31context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(context.Position))
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (1)
32context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(context.Position))
Completion\KeywordRecommenders\ProtectedKeywordRecommender.cs (1)
30context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(context.Position))
Completion\KeywordRecommenders\SetKeywordRecommender.cs (1)
22context.TargetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, SyntaxKind.SetKeyword);
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
136block.Parent.Parent.Parent is IndexerDeclarationSyntax indexerDeclaration)
EditAndContinue\BreakpointSpans.cs (2)
360var indexer = (IndexerDeclarationSyntax)node;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (7)
70/// <see cref="IndexerDeclarationSyntax"/> for indexer expression bodies. 432AccessorDeclarationSyntax { Parent.Parent: IndexerDeclarationSyntax { ParameterList: var list } } => list, 1206var oldHasExpressionBody = oldNode is PropertyDeclarationSyntax { ExpressionBody: not null } or IndexerDeclarationSyntax { ExpressionBody: not null }; 1207var newHasExpressionBody = newNode is PropertyDeclarationSyntax { ExpressionBody: not null } or IndexerDeclarationSyntax { ExpressionBody: not null }; 1333if (node is PropertyDeclarationSyntax { ExpressionBody: not null } or IndexerDeclarationSyntax { ExpressionBody: not null }) 1706var indexerDeclaration = (IndexerDeclarationSyntax)node;
EditAndContinue\DeclarationBody\PropertyOrIndexerWithExplicitBodyDeclarationBody.cs (1)
19=> (propertyOrIndexer is PropertyDeclarationSyntax property) ? property.ExpressionBody! : ((IndexerDeclarationSyntax)propertyOrIndexer).ExpressionBody!;
EditAndContinue\SyntaxUtilities.cs (1)
146if (declaration is IndexerDeclarationSyntax indexer)
InheritanceMargin\CSharpInheritanceMarginService.cs (1)
73IndexerDeclarationSyntax indexerDeclarationNode => indexerDeclarationNode.ThisKeyword,
LineSeparators\CSharpLineSeparatorService.cs (1)
149=> IsBadAccessorList(node as IndexerDeclarationSyntax);
Organizing\Organizers\IndexerDeclarationOrganizer.cs (3)
17internal class IndexerDeclarationOrganizer : AbstractSyntaxNodeOrganizer<IndexerDeclarationSyntax> 25protected override IndexerDeclarationSyntax Organize( 26IndexerDeclarationSyntax syntax,
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
202IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ThisKeyword,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (17)
19UseExpressionBodyHelper<IndexerDeclarationSyntax> 36protected override BlockSyntax GetBody(IndexerDeclarationSyntax declaration) 39protected override ArrowExpressionClauseSyntax GetExpressionBody(IndexerDeclarationSyntax declaration) 42protected override SyntaxToken GetSemicolonToken(IndexerDeclarationSyntax declaration) 45protected override IndexerDeclarationSyntax WithSemicolonToken(IndexerDeclarationSyntax declaration, SyntaxToken token) 48protected override IndexerDeclarationSyntax WithExpressionBody(IndexerDeclarationSyntax declaration, ArrowExpressionClauseSyntax expressionBody) 51protected override IndexerDeclarationSyntax WithAccessorList(IndexerDeclarationSyntax declaration, AccessorListSyntax accessorList) 54protected override IndexerDeclarationSyntax WithBody(IndexerDeclarationSyntax declaration, BlockSyntax body) 64protected override IndexerDeclarationSyntax WithGenerateBody(SemanticModel semanticModel, IndexerDeclarationSyntax declaration) 67protected override bool CreateReturnStatementForExpression(SemanticModel semanticModel, IndexerDeclarationSyntax declaration) => true; 70IndexerDeclarationSyntax declaration, 79protected override Location GetDiagnosticLocation(IndexerDeclarationSyntax declaration)
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (2)
93var oldIndexer = node.Parent?.Parent as IndexerDeclarationSyntax;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (3)
233var t = (IndexerDeclarationSyntax)node; 401arrowExpr = ((IndexerDeclarationSyntax)node).ExpressionBody;
Structure\CSharpBlockStructureProvider.cs (1)
37builder.Add<IndexerDeclarationSyntax, IndexerDeclarationStructureProvider>();
Structure\CSharpStructureHelpers.cs (1)
279IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.Modifiers.FirstOrNull() ?? indexerDeclaration.Type.GetFirstToken(),
Structure\Providers\IndexerDeclarationStructureProvider.cs (2)
12internal class IndexerDeclarationStructureProvider : AbstractSyntaxNodeStructureProvider<IndexerDeclarationSyntax> 16IndexerDeclarationSyntax indexerDeclaration,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Compilation\SemanticModelAPITests.cs (4)
1664var indexerDecl = (IndexerDeclarationSyntax)typeDecl.Members[0]; 2444var indexerDecl = (IndexerDeclarationSyntax)typeDecl.Members[0];
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (4)
334var indexerDecl = (IndexerDeclarationSyntax)typeDecl.Members[0]; 543var node = (IndexerDeclarationSyntax)typeDecl.Members[0];
Symbols\PartialPropertiesTests.cs (1)
4969var indexers = tree.GetRoot().DescendantNodes().OfType<IndexerDeclarationSyntax>().ToArray();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (20)
Generated\Syntax.Test.xml.Generated.cs (5)
10805private static IndexerDeclarationSyntax GenerateIndexerDeclaration() 13413var node = GenerateIndexerDeclaration(); 13424var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithType(node.Type).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithThisKeyword(node.ThisKeyword).WithParameterList(node.ParameterList).WithAccessorList(node.AccessorList).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken); 19091var oldNode = GenerateIndexerDeclaration(); 19107var oldNode = GenerateIndexerDeclaration();
LexicalAndXml\XmlDocCommentTests.cs (2)
1937Assert.Equal(typeof(IndexerDeclarationSyntax), (tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0].GetType()); 1939var keyword = ((tree.GetCompilationUnitRoot().Members[0] as TypeDeclarationSyntax).Members[0] as IndexerDeclarationSyntax).Type;
Parsing\DeclarationParsingTests.cs (10)
4950var ps = (IndexerDeclarationSyntax)cs.Members[0]; 5017var ps = (IndexerDeclarationSyntax)cs.Members[0]; 5085var ps = (IndexerDeclarationSyntax)cs.Members[0]; 5152var ps = (IndexerDeclarationSyntax)cs.Members[0]; 5228var ps = (IndexerDeclarationSyntax)cs.Members[0];
Parsing\ParserErrorMessageTests.cs (3)
3782var indexerDeclaration = (IndexerDeclarationSyntax)tree.GetRoot().DescendantNodes().Single(node => node is IndexerDeclarationSyntax);
Microsoft.CodeAnalysis.CSharp.Workspaces (40)
CodeGeneration\CSharpSyntaxGenerator.cs (14)
450IndexerDeclarationSyntax indexer => indexer.WithAccessorList(CreateAccessorList(indexer.AccessorList, accessorDeclarations)) 633SyntaxKind.IndexerDeclaration => ((IndexerDeclarationSyntax)declaration).WithExplicitInterfaceSpecifier(specifier), 661var ind = (IndexerDeclarationSyntax)declaration; 844var indexer = (IndexerDeclarationSyntax)member; 1955return ((IndexerDeclarationSyntax)declaration).Type; 1991SyntaxKind.IndexerDeclaration => ((IndexerDeclarationSyntax)declaration).WithType((TypeSyntax)type), 2223return ((IndexerDeclarationSyntax)declaration).WithParameterList(list); 2271var id = (IndexerDeclarationSyntax)declaration; 2327var id = (IndexerDeclarationSyntax)declaration; 2539SyntaxKind.IndexerDeclaration => ((IndexerDeclarationSyntax)declaration).ExpressionBody == null,
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (3)
337var indexerDecl = (IndexerDeclarationSyntax)node; 504private static string GetIndexerSuffix(IndexerDeclarationSyntax indexer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (4)
58return ((IndexerDeclarationSyntax)member).ThisKeyword; 127return ((IndexerDeclarationSyntax)member).WithParameterList((BracketedParameterListSyntax)parameterList); 153return ((IndexerDeclarationSyntax)member).Type; 176IndexerDeclarationSyntax indexer => indexer.ExpressionBody,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
149IndexerDeclarationSyntax indexerDeclaration => indexerDeclaration.ParameterList, 349case BaseMethodDeclarationSyntax or IndexerDeclarationSyntax or EventDeclarationSyntax:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
61return ((IndexerDeclarationSyntax)declaration).ExplicitInterfaceSpecifier == null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
814var indexerDeclarationSyntax = (IndexerDeclarationSyntax)syntaxNode;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (4)
127return Compare((IndexerDeclarationSyntax)x, (IndexerDeclarationSyntax)y); 249private static int Compare(IndexerDeclarationSyntax x, IndexerDeclarationSyntax y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (3)
97var declaration = IndexerDeclaration( 196private static IndexerDeclarationSyntax UseExpressionBodyIfDesired( 197CSharpCodeGenerationContextInfo info, IndexerDeclarationSyntax declaration, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\BasePropertyDeclarationSyntaxExtensions.cs (6)
13/// Available if <paramref name="node"/> is <see cref="PropertyDeclarationSyntax"/> or <see cref="IndexerDeclarationSyntax"/>. 22case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).SemicolonToken; 30/// Available if <paramref name="node"/> is <see cref="PropertyDeclarationSyntax"/> or <see cref="IndexerDeclarationSyntax"/>. 40case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithSemicolonToken(semicolonToken); 48/// Available if <paramref name="node"/> is <see cref="PropertyDeclarationSyntax"/> or <see cref="IndexerDeclarationSyntax"/>. 58case SyntaxKind.IndexerDeclaration: return ((IndexerDeclarationSyntax)node).WithExpressionBody(expressionBody);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
523targetToken.IsAccessorDeclarationContext<IndexerDeclarationSyntax>(position, kind);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (20)
CodeGeneration\SyntaxGeneratorTests.cs (20)
1085VerifySyntax<IndexerDeclarationSyntax>( 1089VerifySyntax<IndexerDeclarationSyntax>( 1093VerifySyntax<IndexerDeclarationSyntax>( 1097VerifySyntax<IndexerDeclarationSyntax>( 1101VerifySyntax<IndexerDeclarationSyntax>( 1105VerifySyntax<IndexerDeclarationSyntax>( 1110VerifySyntax<IndexerDeclarationSyntax>( 1115VerifySyntax<IndexerDeclarationSyntax>( 1119VerifySyntax<IndexerDeclarationSyntax>( 1124VerifySyntax<IndexerDeclarationSyntax>( 1181VerifySyntax<IndexerDeclarationSyntax>( 1380VerifySyntax<IndexerDeclarationSyntax>( 1406VerifySyntax<IndexerDeclarationSyntax>( 1484VerifySyntax<IndexerDeclarationSyntax>( 1874VerifySyntax<IndexerDeclarationSyntax>( 2510VerifySyntax<IndexerDeclarationSyntax>( 3424VerifySyntax<IndexerDeclarationSyntax>( 3428VerifySyntax<IndexerDeclarationSyntax>( 3433VerifySyntax<IndexerDeclarationSyntax>( 4286VerifySyntax<IndexerDeclarationSyntax>(
Microsoft.VisualStudio.LanguageServices.CSharp (10)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (3)
335if (oldProperty is IndexerDeclarationSyntax oldIndexer) 337var newIndexer = (IndexerDeclarationSyntax)newProperty;
CodeModel\CSharpCodeModelService.cs (5)
821return ((IndexerDeclarationSyntax)node).ExplicitInterfaceSpecifier?.ToString() + 822((IndexerDeclarationSyntax)node).ThisKeyword.ToString(); 1456else if (parentNode is IndexerDeclarationSyntax indexer) 3419else if (container is IndexerDeclarationSyntax indexer) 3477else if (container is IndexerDeclarationSyntax indexer)
CodeModel\CSharpCodeModelService.NodeNameGenerator.cs (2)
234var indexerDeclaration = (IndexerDeclarationSyntax)node;
System.Text.RegularExpressions.Generator (2)
RegexGenerator.cs (1)
60(node, _) => node is MethodDeclarationSyntax or PropertyDeclarationSyntax or IndexerDeclarationSyntax or AccessorDeclarationSyntax,
RegexGenerator.Parser.cs (1)
29if (context.TargetNode is IndexerDeclarationSyntax or AccessorDeclarationSyntax)