26 references to ElementAccessExpression
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.cs (9)
371
VerifySyntax<MemberAccessExpressionSyntax>(Generator.MemberAccessExpression(Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x[y].z");
418
Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")),
422
Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"), Generator.IdentifierName("z")),
426
Generator.
ElementAccessExpression
(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
430
Generator.
ElementAccessExpression
(Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
434
Generator.
ElementAccessExpression
(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
438
Generator.
ElementAccessExpression
(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
472
VerifySyntax<InvocationExpressionSyntax>(Generator.InvocationExpression(Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x[y]()");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeGeneration\ExpressionGenerationTests.cs (5)
421
f => f.
ElementAccessExpression
(
433
f => f.
ElementAccessExpression
(
446
f => f.
ElementAccessExpression
(
459
f => f.
ElementAccessExpression
(
473
f => f.
ElementAccessExpression
(
CodeGeneration\ExpressionPrecedenceGenerationTests.cs (1)
249
f => f.
ElementAccessExpression
(
Microsoft.CodeAnalysis.Features (2)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
135
var memberAccess = generator.
ElementAccessExpression
(
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
329
var indexExpression = generator.
ElementAccessExpression
(collectionExpression, generator.IdentifierName(iterationVariable));
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.vb (9)
342
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z")
380
Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")),
384
Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"), Generator.IdentifierName("z")),
388
Generator.
ElementAccessExpression
(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
392
Generator.
ElementAccessExpression
(Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
396
Generator.
ElementAccessExpression
(Generator.InvocationExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
400
Generator.
ElementAccessExpression
(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
430
VerifySyntax(Of InvocationExpressionSyntax)(Generator.InvocationExpression(Generator.
ElementAccessExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x(y)()")