1 type derived from AllowsConstraintSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Syntax.Generated.cs (1)
11961
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)
5320
public static AllowsConstraintClauseSyntax AllowsConstraintClause(SyntaxToken allowsKeyword, SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints)
5327
public static AllowsConstraintClauseSyntax AllowsConstraintClause(SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints = default)
Syntax.xml.Syntax.Generated.cs (5)
11911
public SeparatedSyntaxList<
AllowsConstraintSyntax
> Constraints
11916
return red != null ? new SeparatedSyntaxList<
AllowsConstraintSyntax
>(red, GetChildIndex(1)) : default;
11927
public AllowsConstraintClauseSyntax Update(SyntaxToken allowsKeyword, SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints)
11940
public AllowsConstraintClauseSyntax WithConstraints(SeparatedSyntaxList<
AllowsConstraintSyntax
> constraints) => Update(this.AllowsKeyword, constraints);
11942
public AllowsConstraintClauseSyntax AddConstraints(params
AllowsConstraintSyntax
[] items) => WithConstraints(this.Constraints.AddRange(items));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
10901
=> SyntaxFactory.AllowsConstraintClause(SyntaxFactory.Token(SyntaxKind.AllowsKeyword), new SeparatedSyntaxList<
AllowsConstraintSyntax
>());