159 references to ElementAccessExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (2)
629case SyntaxKind.ElementAccessExpression: 2523else if (this.ContainingType is null || node.Parent is null || (node.Parent.Kind() != SyntaxKind.SimpleMemberAccessExpression && node.Parent.Kind() != SyntaxKind.ElementAccessExpression))
Binder\Binder_Statements.cs (1)
1688case SyntaxKind.ElementAccessExpression:
Parser\LanguageParser.cs (1)
10824case SyntaxKind.ElementAccessExpression:
Syntax\SyntaxFacts.cs (1)
329case ElementAccessExpression:
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
590case SyntaxKind.ElementAccessExpression: 701case SyntaxKind.ElementAccessExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
195SyntaxKind.ElementAccessExpression or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
690=> node.IsKind(SyntaxKind.ElementAccessExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (3)
583SyntaxKind.ElementAccessExpression or 604SyntaxKind.ElementAccessExpression => ((ElementAccessExpressionSyntax)expression).ArgumentList, 629case SyntaxKind.ElementAccessExpression:
Microsoft.CodeAnalysis.CSharp.Features (7)
AddImport\CSharpAddImportFeatureService.cs (2)
124if (memberAccess?.Parent?.Kind() is SyntaxKind.SimpleMemberAccessExpression or SyntaxKind.ElementAccessExpression || 125memberBinding?.Parent?.Kind() is SyntaxKind.SimpleMemberAccessExpression or SyntaxKind.ElementAccessExpression)
ChangeSignature\CSharpChangeSignatureService.cs (4)
60SyntaxKind.ElementAccessExpression, 74SyntaxKind.ElementAccessExpression, 92SyntaxKind.ElementAccessExpression, 269case SyntaxKind.ElementAccessExpression:
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
60token.Parent?.Parent.IsKind(SyntaxKind.ElementAccessExpression) == true)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\ScriptSemanticsTests.cs (2)
245Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind()); 562Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind());
Semantics\UnsafeTests.cs (3)
8159Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind()); 8226Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind()); 8284Assert.Equal(SyntaxKind.ElementAccessExpression, syntax.Kind());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\GetSemanticInfoTests.cs (3)
1413Assert.Equal(SyntaxKind.ElementAccessExpression, exprSyntaxToBind.Kind()); 1451Assert.Equal(SyntaxKind.ElementAccessExpression, exprSyntaxToBind.Kind()); 1489Assert.Equal(SyntaxKind.ElementAccessExpression, exprSyntaxToBind.Kind());
Symbols\IndexerTests.cs (1)
2539node.DescendantNodesAndSelf().Where(s => s.IsKind(SyntaxKind.ElementAccessExpression)).Cast<ElementAccessExpressionSyntax>();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (122)
IncrementalParsing\IncrementalParsingTests.cs (1)
724N(SyntaxKind.ElementAccessExpression);
Parsing\AwaitParsingTests.cs (1)
1741N(SyntaxKind.ElementAccessExpression);
Parsing\CollectionExpressionParsingTests.cs (64)
952N(SyntaxKind.ElementAccessExpression); 1015N(SyntaxKind.ElementAccessExpression); 3834N(SyntaxKind.ElementAccessExpression); 4060N(SyntaxKind.ElementAccessExpression); 4116N(SyntaxKind.ElementAccessExpression); 4469N(SyntaxKind.ElementAccessExpression); 4749N(SyntaxKind.ElementAccessExpression); 4754N(SyntaxKind.ElementAccessExpression); 4813N(SyntaxKind.ElementAccessExpression); 4875N(SyntaxKind.ElementAccessExpression); 4932N(SyntaxKind.ElementAccessExpression); 4996N(SyntaxKind.ElementAccessExpression); 5257N(SyntaxKind.ElementAccessExpression); 5300N(SyntaxKind.ElementAccessExpression); 5345N(SyntaxKind.ElementAccessExpression); 5453N(SyntaxKind.ElementAccessExpression); 6180N(SyntaxKind.ElementAccessExpression); 6338N(SyntaxKind.ElementAccessExpression); 7457N(SyntaxKind.ElementAccessExpression); 7615N(SyntaxKind.ElementAccessExpression); 9413N(SyntaxKind.ElementAccessExpression); 9482N(SyntaxKind.ElementAccessExpression); 9572N(SyntaxKind.ElementAccessExpression); 9641N(SyntaxKind.ElementAccessExpression); 9731N(SyntaxKind.ElementAccessExpression); 9800N(SyntaxKind.ElementAccessExpression); 9890N(SyntaxKind.ElementAccessExpression); 9959N(SyntaxKind.ElementAccessExpression); 10282N(SyntaxKind.ElementAccessExpression); 10343N(SyntaxKind.ElementAccessExpression); 10997N(SyntaxKind.ElementAccessExpression); 11077N(SyntaxKind.ElementAccessExpression); 11178N(SyntaxKind.ElementAccessExpression); 11243N(SyntaxKind.ElementAccessExpression); 11333N(SyntaxKind.ElementAccessExpression); 11423N(SyntaxKind.ElementAccessExpression); 11528N(SyntaxKind.ElementAccessExpression); 11601N(SyntaxKind.ElementAccessExpression); 12926N(SyntaxKind.ElementAccessExpression); 13005N(SyntaxKind.ElementAccessExpression); 13149N(SyntaxKind.ElementAccessExpression); 13303N(SyntaxKind.ElementAccessExpression); 13484N(SyntaxKind.ElementAccessExpression); 13670N(SyntaxKind.ElementAccessExpression); 13879N(SyntaxKind.ElementAccessExpression); 13931N(SyntaxKind.ElementAccessExpression); 14016N(SyntaxKind.ElementAccessExpression); 14102N(SyntaxKind.ElementAccessExpression); 14208N(SyntaxKind.ElementAccessExpression); 14301N(SyntaxKind.ElementAccessExpression); 14412N(SyntaxKind.ElementAccessExpression); 14416N(SyntaxKind.ElementAccessExpression); 14520N(SyntaxKind.ElementAccessExpression); 14524N(SyntaxKind.ElementAccessExpression); 14652N(SyntaxKind.ElementAccessExpression); 14760N(SyntaxKind.ElementAccessExpression); 14890N(SyntaxKind.ElementAccessExpression); 14999N(SyntaxKind.ElementAccessExpression); 15126N(SyntaxKind.ElementAccessExpression); 15223N(SyntaxKind.ElementAccessExpression); 15338N(SyntaxKind.ElementAccessExpression); 15342N(SyntaxKind.ElementAccessExpression); 15454N(SyntaxKind.ElementAccessExpression); 15458N(SyntaxKind.ElementAccessExpression);
Parsing\DeclarationScopeParsingTests.cs (3)
11052N(SyntaxKind.ElementAccessExpression); 13792N(SyntaxKind.ElementAccessExpression); 13909N(SyntaxKind.ElementAccessExpression);
Parsing\DeconstructionTests.cs (1)
3144N(SyntaxKind.ElementAccessExpression);
Parsing\ExpressionParsingTests.cs (8)
371N(SyntaxKind.ElementAccessExpression); 1048Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 1069Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 1094Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 1119Assert.Equal(SyntaxKind.ElementAccessExpression, expr.Kind()); 3057Assert.Equal(SyntaxKind.ElementAccessExpression, parenExp.Expression.Kind()); 3789N(SyntaxKind.ElementAccessExpression); 6467N(SyntaxKind.ElementAccessExpression);
Parsing\FieldKeywordParsingTests.cs (1)
922N(SyntaxKind.ElementAccessExpression);
Parsing\FunctionPointerTests.cs (1)
1285N(SyntaxKind.ElementAccessExpression);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
261N(SyntaxKind.ElementAccessExpression);
Parsing\LambdaAttributeParsingTests.cs (4)
1269N(SyntaxKind.ElementAccessExpression); 1891N(SyntaxKind.ElementAccessExpression); 1945N(SyntaxKind.ElementAccessExpression); 2972N(SyntaxKind.ElementAccessExpression);
Parsing\LambdaParameterParsingTests.cs (1)
2024N(SyntaxKind.ElementAccessExpression);
Parsing\LambdaReturnTypeParsingTests.cs (5)
1121N(SyntaxKind.ElementAccessExpression); 1177N(SyntaxKind.ElementAccessExpression); 1227N(SyntaxKind.ElementAccessExpression); 4723N(SyntaxKind.ElementAccessExpression); 4763N(SyntaxKind.ElementAccessExpression);
Parsing\NullableParsingTests.cs (4)
153N(SyntaxKind.ElementAccessExpression); 200N(SyntaxKind.ElementAccessExpression); 2244N(SyntaxKind.ElementAccessExpression); 2292N(SyntaxKind.ElementAccessExpression);
Parsing\ParsingErrorRecoveryTests.cs (13)
3735Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3759Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3783Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3807Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3832Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3856Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3880Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3906Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3932Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3958Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 3984Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 4009Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind()); 4034Assert.Equal(SyntaxKind.ElementAccessExpression, ((PrefixUnaryExpressionSyntax)es.Expression).Operand.Kind());
Parsing\PatternParsingTests2.cs (1)
726N(SyntaxKind.ElementAccessExpression);
Parsing\ScriptParsingTests.cs (7)
4712N(SyntaxKind.ElementAccessExpression); 7044N(SyntaxKind.ElementAccessExpression); 7254N(SyntaxKind.ElementAccessExpression); 7324N(SyntaxKind.ElementAccessExpression); 7398N(SyntaxKind.ElementAccessExpression); 7830N(SyntaxKind.ElementAccessExpression); 7850N(SyntaxKind.ElementAccessExpression);
Parsing\StatementAttributeParsingTests.cs (2)
4816N(SyntaxKind.ElementAccessExpression); 6701N(SyntaxKind.ElementAccessExpression);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
670N(SyntaxKind.ElementAccessExpression);
Parsing\TopLevelStatementsParsingTests.cs (1)
1390N(SyntaxKind.ElementAccessExpression);
Parsing\UsingDirectiveParsingTests.cs (2)
2771N(SyntaxKind.ElementAccessExpression); 2895N(SyntaxKind.ElementAccessExpression);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3189or SyntaxKind.ElementAccessExpression
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
590case SyntaxKind.ElementAccessExpression: 701case SyntaxKind.ElementAccessExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
195SyntaxKind.ElementAccessExpression or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
690=> node.IsKind(SyntaxKind.ElementAccessExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (3)
583SyntaxKind.ElementAccessExpression or 604SyntaxKind.ElementAccessExpression => ((ElementAccessExpressionSyntax)expression).ArgumentList, 629case SyntaxKind.ElementAccessExpression:
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
213case SyntaxKind.ElementAccessExpression: