8 references to ExpressionGenerator
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
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\AttributeGenerator.cs (2)
91
AttributeArgument(
ExpressionGenerator
.GenerateExpression(generator, c))));
96
ExpressionGenerator
.GenerateExpression(generator, kvp.Value))));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpFlagsEnumGenerator.cs (1)
25
var expression =
ExpressionGenerator
.GenerateNonEnumValueExpression(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
163
return
ExpressionGenerator
.GenerateNonEnumValueExpression(
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);