2 overrides of DefaultExpression
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3248public override SyntaxNode DefaultExpression(ITypeSymbol type)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
166Public Overrides Function DefaultExpression(type As ITypeSymbol) As SyntaxNode
9 references to DefaultExpression
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
123var argumentInitializer = parameterMustBeOptional ? generator.DefaultExpression(newParameterType) : null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
340factory.DefaultExpression(parameterType));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
107var defaultExpression = generator.DefaultExpression(type);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
96: (ExpressionSyntax)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.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
96: (ExpressionSyntax)generator.DefaultExpression(type),
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
123var argumentInitializer = parameterMustBeOptional ? generator.DefaultExpression(newParameterType) : null;
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
340factory.DefaultExpression(parameterType));