9 references to WithTypeConstraint
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.cs (5)
2186Generator.WithTypeConstraint( 2192Generator.WithTypeConstraint( 2198Generator.WithTypeConstraint( 2204Generator.WithTypeConstraint( 2210Generator.WithTypeConstraint(
Microsoft.CodeAnalysis.Workspaces (4)
Editing\SyntaxEditorExtensions.cs (1)
36=> editor.ReplaceNode(declaration, (d, g) => g.WithTypeConstraint(d, typeParameterName, kind, types));
Editing\SyntaxGenerator.cs (3)
222decl = WithTypeConstraint(decl, typeParameter.Name, SpecialTypeConstraintKind.ReferenceType); 973=> WithTypeConstraint(declaration, typeParameterName, kinds, (IEnumerable<SyntaxNode>)types); 979=> WithTypeConstraint(declaration, typeParameterName, SpecialTypeConstraintKind.None, (IEnumerable<SyntaxNode>)types);