12 references to WithTypeArguments
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
118
fixedDeclaration = (TypeSyntax)syntaxGenerator.
WithTypeArguments
(taskTypeSyntax, fixedDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
118
fixedDeclaration = (TypeSyntax)syntaxGenerator.
WithTypeArguments
(taskTypeSyntax, fixedDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.cs (5)
270
VerifySyntax<GenericNameSyntax>(Generator.
WithTypeArguments
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x<y>");
273
VerifySyntax<QualifiedNameSyntax>(Generator.
WithTypeArguments
(Generator.DottedName("x.y"), Generator.IdentifierName("z")), "x.y<z>");
276
VerifySyntax<MemberAccessExpressionSyntax>(Generator.
WithTypeArguments
(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y<z>");
279
var gname = Generator.
WithTypeArguments
(Generator.IdentifierName("x"), Generator.IdentifierName("y"));
281
VerifySyntax<GenericNameSyntax>(Generator.
WithTypeArguments
(gname, Generator.IdentifierName("z")), "x<z>");
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.vb (5)
226
VerifySyntax(Of GenericNameSyntax)(Generator.
WithTypeArguments
(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x(Of y)")
229
VerifySyntax(Of QualifiedNameSyntax)(Generator.
WithTypeArguments
(Generator.DottedName("x.y"), Generator.IdentifierName("z")), "x.y(Of z)")
232
VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.
WithTypeArguments
(Generator.MemberAccessExpression(Generator.IdentifierName("x"), Generator.IdentifierName("y")), Generator.IdentifierName("z")), "x.y(Of z)")
235
Dim gname = Generator.
WithTypeArguments
(Generator.IdentifierName("x"), Generator.IdentifierName("y"))
237
VerifySyntax(Of GenericNameSyntax)(Generator.
WithTypeArguments
(gname, Generator.IdentifierName("z")), "x(Of z)")