5 references to GenerateExpression
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (1)
163
ExpressionGenerator.
GenerateExpression
(generator, parameter.Type, value: null, canUseFieldReference: false))));
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
316
=> EqualsValueClause(ExpressionGenerator.
GenerateExpression
(generator, parameter.Type, parameter.ExplicitDefaultValue, canUseFieldReference: true));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
32
return
GenerateExpression
(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
116
return EqualsValueClause(ExpressionGenerator.
GenerateExpression
(generator, field.Type, field.ConstantValue, canUseFieldReference));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
119
=> ExpressionGenerator.
GenerateExpression
(generator, parameter.Type, value, canUseFieldReference: true);