86 references to InvocationExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (16)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
94
return generator.
InvocationExpression
(
105
return generator.
InvocationExpression
(
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
201
g.
InvocationExpression
(
210
g.
InvocationExpression
(
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
239
return generator.
InvocationExpression
(taskFromResult, expression.WithoutTrivia()).WithTriviaFrom(expression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
198
expressions.Add(factory.
InvocationExpression
(
252
expressions.Add(factory.
InvocationExpression
(
262
expressions.Add(factory.
InvocationExpression
(
301
expressions.Add(factory.
InvocationExpression
(
355
factory.
InvocationExpression
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\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.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
99
g.ExpressionStatement(g.
InvocationExpression
(
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (1)
99
g.ExpressionStatement(g.
InvocationExpression
(
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3093
=> this.
InvocationExpression
(s_nameOfIdentifier, expression);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (19)
CodeGeneration\SyntaxGeneratorTests.cs (19)
370
VerifySyntax<MemberAccessExpressionSyntax>(Generator.MemberAccessExpression(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x(y).z");
434
Generator.ElementAccessExpression(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")),
461
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x")), "x()");
462
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x(y)");
463
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"), Generator.IdentifierName("z")), "x(y, z)");
466
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(Generator.IdentifierName("y"))), "x(y)");
467
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(RefKind.Ref, Generator.IdentifierName("y"))), "x(ref y)");
468
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.Argument(RefKind.Out, Generator.IdentifierName("y"))), "x(out y)");
471
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x.y()");
472
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.ElementAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x[y]()");
473
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.
InvocationExpression
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "x(y)()");
474
VerifySyntax<InvocationExpressionSyntax>(Generator.
InvocationExpression
(Generator.AddExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), "((x) + (y))()");
485
VerifySyntax<ExpressionStatementSyntax>(Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("x"))), "x();");
2818
setAccessor = setAccessor.WithExpressionBody(ArrowExpressionClause((ExpressionSyntax)Generator.
InvocationExpression
(Generator.IdentifierName("x"))));
3538
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
3565
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
3585
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
3618
Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeGeneration\ExpressionGenerationTests.cs (5)
355
f => f.
InvocationExpression
(
367
f => f.
InvocationExpression
(
380
f => f.
InvocationExpression
(
393
f => f.
InvocationExpression
(
407
f => f.
InvocationExpression
(
Microsoft.CodeAnalysis.Features (12)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
169
generator.ReturnStatement(generator.
InvocationExpression
(
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
119
withoutTrivia = (TExpressionSyntax)generator.
InvocationExpression
(
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
330
var elementAtExpression = generator.
InvocationExpression
(
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
213
var compareToCall = generator.
InvocationExpression
(
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
187
factory.
InvocationExpression
(
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (2)
148
? generator.
InvocationExpression
(
153
: generator.
InvocationExpression
(
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
395
var condition = (TExpressionSyntax)generator.
InvocationExpression
(
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
44
var resultingNode = generator.
InvocationExpression
(generator.MemberAccessExpression(generator.IdentifierName(nameof(Console)), nameof(Console.WriteLine)));
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
94
return generator.
InvocationExpression
(
105
return generator.
InvocationExpression
(
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
239
return generator.
InvocationExpression
(taskFromResult, expression.WithoutTrivia()).WithTriviaFrom(expression);
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()")
2963
Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
2984
Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
3100
Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.
InvocationExpression
(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
3125
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)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (5)
198
expressions.Add(factory.
InvocationExpression
(
252
expressions.Add(factory.
InvocationExpression
(
262
expressions.Add(factory.
InvocationExpression
(
301
expressions.Add(factory.
InvocationExpression
(
355
factory.
InvocationExpression
(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\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.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
401
return generator.
InvocationExpression
(
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
160
SyntaxNode replacement = generator.
InvocationExpression
(generator.IdentifierName(methodName));