1 type derived from AllowsConstraintSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Syntax.Generated.cs (1)
12006
public sealed partial class RefStructConstraintSyntax :
AllowsConstraintSyntax
9 references to AllowsConstraintSyntax
Microsoft.CodeAnalysis.CSharp (8)
Binder\Binder_Constraints.cs (1)
310
foreach (
var
allowsConstraint in ((AllowsConstraintClauseSyntax)syntax).Constraints)
Syntax.xml.Main.Generated.cs (2)
5341
public static AllowsConstraintClauseSyntax AllowsConstraintClause(SyntaxToken allowsKeyword, SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints)
5348
public static AllowsConstraintClauseSyntax AllowsConstraintClause(SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints = default)
Syntax.xml.Syntax.Generated.cs (5)
11956
public SeparatedSyntaxList<
AllowsConstraintSyntax
> Constraints
11961
return red != null ? new SeparatedSyntaxList<
AllowsConstraintSyntax
>(red, GetChildIndex(1)) : default;
11972
public AllowsConstraintClauseSyntax Update(SyntaxToken allowsKeyword, SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints)
11985
public AllowsConstraintClauseSyntax WithConstraints(SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints) => Update(this.AllowsKeyword, constraints);
11987
public AllowsConstraintClauseSyntax AddConstraints(params
AllowsConstraintSyntax
[] items) => WithConstraints(this.Constraints.AddRange(items));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
10944
=> SyntaxFactory.AllowsConstraintClause(SyntaxFactory.Token(SyntaxKind.AllowsKeyword), new SeparatedSyntaxList<
AllowsConstraintSyntax
>());