9 references to WithTypeConstraint
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.cs (5)
2184Generator.WithTypeConstraint( 2190Generator.WithTypeConstraint( 2196Generator.WithTypeConstraint( 2202Generator.WithTypeConstraint( 2208Generator.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); 979=> WithTypeConstraint(declaration, typeParameterName, kinds, (IEnumerable<SyntaxNode>)types); 985=> WithTypeConstraint(declaration, typeParameterName, SpecialTypeConstraintKind.None, (IEnumerable<SyntaxNode>)types);