1 instantiation of CSharpSyntaxGeneratorInternal
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
30
public static readonly SyntaxGeneratorInternal Instance = new
CSharpSyntaxGeneratorInternal
();
14 references to CSharpSyntaxGeneratorInternal
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
CodeGeneration\CSharpSyntaxGenerator.cs (8)
46
=>
CSharpSyntaxGeneratorInternal
.Instance;
194
var modifiers =
CSharpSyntaxGeneratorInternal
.GetParameterModifiers(isScoped, refKind, isParams);
3183
=> SyntaxFactory.InvocationExpression(
CSharpSyntaxGeneratorInternal
.ParenthesizeLeft((ExpressionSyntax)expression), CreateArgumentList(arguments));
3186
=> SyntaxFactory.ElementAccessExpression(
CSharpSyntaxGeneratorInternal
.ParenthesizeLeft((ExpressionSyntax)expression), SyntaxFactory.BracketedArgumentList(CreateArguments(arguments)));
3192
=>
CSharpSyntaxGeneratorInternal
.Parenthesize(expression, includeElasticTrivia, addSimplifierAnnotation);
3207
=>
CSharpSyntaxGeneratorInternal
.CreateBinaryExpression(syntaxKind, left, right);
3383
=>
CSharpSyntaxGeneratorInternal
.Instance.LocalDeclarationStatement(type, name.ToIdentifierToken(), initializer, isConst);
3388
CSharpSyntaxGeneratorInternal
.VariableDeclaration(type, name.ToIdentifierToken(), expression),
OrganizeImports\CSharpOrganizeImportsService.Rewriter.cs (1)
22
private readonly SyntaxTrivia _fallbackTrivia =
CSharpSyntaxGeneratorInternal
.Instance.EndOfLine(options.NewLine);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpFlagsEnumGenerator.cs (1)
19
=>
CSharpSyntaxGeneratorInternal
.Instance;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
94
: (ExpressionSyntax)
CSharpSyntaxGeneratorInternal
.Instance.DefaultExpression(type),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
78
var list =
CSharpSyntaxGeneratorInternal
.GetParameterModifiers(parameter);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
164
var parameters = symbol.Signature.Parameters.Select(p => (p.Type, RefKindModifiers:
CSharpSyntaxGeneratorInternal
.GetParameterModifiers(p)))
167
RefKindModifiers:
CSharpSyntaxGeneratorInternal
.GetParameterModifiers(isScoped: false, symbol.Signature.RefKind, isParams: false, forFunctionPointerReturnParameter: true))])