2 instantiations of TypeSyntaxGeneratorVisitor
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
24
private static readonly TypeSyntaxGeneratorVisitor NameOnlyInstance =
new
(nameOnly: true);
25
private static readonly TypeSyntaxGeneratorVisitor NotNameOnlyInstance =
new
(nameOnly: false);
8 references to TypeSyntaxGeneratorVisitor
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (2)
48
?
TypeSyntaxGeneratorVisitor
.CreateSystemObject()
49
: symbol.Accept(
TypeSyntaxGeneratorVisitor
.Create(nameSyntax))!.WithAdditionalAnnotations(Simplifier.Annotation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (3)
30
=> symbol.Accept(
TypeSyntaxGeneratorVisitor
.Create(_nameOnly))!;
43
if (!_nameOnly &&
TypeSyntaxGeneratorVisitor
.TryCreateNativeIntegerType(symbol, out var typeSyntax))
46
typeSyntax =
TypeSyntaxGeneratorVisitor
.Create().CreateSimpleTypeSyntax(symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (3)
24
private static readonly
TypeSyntaxGeneratorVisitor
NameOnlyInstance = new(nameOnly: true);
25
private static readonly
TypeSyntaxGeneratorVisitor
NotNameOnlyInstance = new(nameOnly: false);
36
public static
TypeSyntaxGeneratorVisitor
Create(bool nameOnly = false)