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