7 references to DefaultExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
130var argumentInitializer = parameterMustBeOptional ? generator.DefaultExpression(newParameterType) : null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
367factory.DefaultExpression(parameterType));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
107var defaultExpression = generator.DefaultExpression(type);
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
260(ExpressionSyntax)CSharpSyntaxGenerator.Instance.DefaultExpression(field.Type)));
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
107var defaultExpression = generator.DefaultExpression(type);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
130var argumentInitializer = parameterMustBeOptional ? generator.DefaultExpression(newParameterType) : null;
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
367factory.DefaultExpression(parameterType));