85 references to InvocationExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
AbstractForEachCastCodeFixProvider.cs (2)
94
return generator.
InvocationExpression
(
105
return generator.
InvocationExpression
(
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
239
return generator.
InvocationExpression
(taskFromResult, expression.WithoutTrivia()).WithTriviaFrom(expression);
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
29
result.Add(factory.
InvocationExpression
(
63
factory.
InvocationExpression
(
69
factory.
InvocationExpression
(
153
rightSide = factory.
InvocationExpression
(
241
return factory.
InvocationExpression
(
246
return factory.
InvocationExpression
(
Microsoft.CodeAnalysis.CSharp.Features (1)
ImplementInterface\CSharpImplementInterfaceService.cs (1)
95
g.ExpressionStatement(g.
InvocationExpression
(
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3103
=> this.
InvocationExpression
(s_nameOfIdentifier, expression);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (18)
CodeGeneration\SyntaxGeneratorTests.cs (18)
371
VerifySyntax<MemberAccessExpressionSyntax>(Generator.MemberAccessExpression(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z");
435
Generator.ElementAccessExpression(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
462
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x")), "x()");
463
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x(y)");
464
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"), Generator.IdentifierName("z")), "x(y, z)");
467
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(Generator.IdentifierName("y"))), "x(y)");
468
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(RefKind.Ref, Generator.IdentifierName("y"))), "x(ref y)");
469
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(RefKind.Out, Generator.IdentifierName("y"))), "x(out y)");
472
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x.y()");
473
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.ElementAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x[y]()");
474
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x(y)()");
475
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "((x) + (y))()");
486
VerifySyntax<ExpressionStatementSyntax>(Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("x"))), "x();");
3434
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
3461
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
3481
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
3514
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeGeneration\ExpressionGenerationTests.cs (5)
356
f => f.
InvocationExpression
(
368
f => f.
InvocationExpression
(
381
f => f.
InvocationExpression
(
394
f => f.
InvocationExpression
(
408
f => f.
InvocationExpression
(
Microsoft.CodeAnalysis.Features (19)
AbstractForEachCastCodeFixProvider.cs (2)
94
return generator.
InvocationExpression
(
105
return generator.
InvocationExpression
(
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
239
return generator.
InvocationExpression
(taskFromResult, expression.WithoutTrivia()).WithTriviaFrom(expression);
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
170
generator.ReturnStatement(generator.
InvocationExpression
(
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
105
withoutTrivia = (TExpressionSyntax)generator.
InvocationExpression
(
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
330
var elementAtExpression = generator.
InvocationExpression
(
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
247
: syntaxGenerator.
InvocationExpression
(
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
215
var compareToCall = generator.
InvocationExpression
(
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (4)
83
generator.
InvocationExpression
(
94
generator.
InvocationExpression
(
105
generator.
InvocationExpression
(
189
factory.
InvocationExpression
(
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (2)
165
? generator.
InvocationExpression
(
170
: generator.
InvocationExpression
(
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (2)
294
g.
InvocationExpression
(
303
g.
InvocationExpression
(
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
396
var condition = (TExpressionSyntax)generator.
InvocationExpression
(
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (2)
71
? generator.AwaitExpression(generator.
InvocationExpression
(
73
: generator.
InvocationExpression
(generator.MemberAccessExpression(generator.IdentifierName(nameof(Console)), nameof(Console.WriteLine)));
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
230
syntaxFactory.
InvocationExpression
(
Microsoft.CodeAnalysis.VisualBasic.Features (2)
ImplementInterface\VisualBasicImplementInterfaceService.vb (2)
116
g.ExpressionStatement(g.
InvocationExpression
(
122
g.ExpressionStatement(g.
InvocationExpression
(
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (18)
CodeGeneration\SyntaxGeneratorTests.vb (18)
341
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.MemberAccessExpression(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z")
396
Generator.ElementAccessExpression(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
420
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.IdentifierName("x")), "x()")
421
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x(y)")
422
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"), Generator.IdentifierName("z")), "x(y, z)")
425
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(Generator.IdentifierName("y"))), "x(y)")
426
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(RefKind.Ref, Generator.IdentifierName("y"))), "x(y)")
427
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(RefKind.Out, Generator.IdentifierName("y"))), "x(y)")
429
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x.y()")
430
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.ElementAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x(y)()")
431
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x(y)()")
432
VerifySyntax(Of InvocationExpressionSyntax)(Generator.
InvocationExpression
(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "((x) + (y))()")
443
VerifySyntax(Of ExpressionStatementSyntax)(Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("x"))), "x()")
2919
Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
2940
Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
3056
Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
3081
Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
Microsoft.CodeAnalysis.Workspaces (11)
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
189
expressions.Add(factory.
InvocationExpression
(
243
expressions.Add(factory.
InvocationExpression
(
253
expressions.Add(factory.
InvocationExpression
(
291
expressions.Add(factory.
InvocationExpression
(
346
factory.
InvocationExpression
(
SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (6)
29
result.Add(factory.
InvocationExpression
(
63
factory.
InvocationExpression
(
69
factory.
InvocationExpression
(
153
rightSide = factory.
InvocationExpression
(
241
return factory.
InvocationExpression
(
246
return factory.
InvocationExpression
(