14 references to WithTypeConstraint
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.cs (5)
2083
Generator.
WithTypeConstraint
(
2089
Generator.
WithTypeConstraint
(
2095
Generator.
WithTypeConstraint
(
2101
Generator.
WithTypeConstraint
(
2107
Generator.
WithTypeConstraint
(
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.vb (5)
2022
Generator.
WithTypeConstraint
(
2029
Generator.
WithTypeConstraint
(
2036
Generator.
WithTypeConstraint
(
2043
Generator.
WithTypeConstraint
(
2050
Generator.
WithTypeConstraint
(
Microsoft.CodeAnalysis.Workspaces (4)
Editing\SyntaxEditorExtensions.cs (1)
38
=> editor.ReplaceNode(declaration, (d, g) => g.
WithTypeConstraint
(d, typeParameterName, kind, types));
Editing\SyntaxGenerator.cs (3)
221
decl =
WithTypeConstraint
(decl, typeParameter.Name, SpecialTypeConstraintKind.ReferenceType);
920
=>
WithTypeConstraint
(declaration, typeParameterName, kinds, (IEnumerable<SyntaxNode>)types);
926
=>
WithTypeConstraint
(declaration, typeParameterName, SpecialTypeConstraintKind.None, (IEnumerable<SyntaxNode>)types);