7 references to Constraints
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Constraints.cs (1)
310
foreach (var allowsConstraint in ((AllowsConstraintClauseSyntax)syntax).
Constraints
)
Syntax.xml.Main.Generated.cs (1)
2044
=> node.Update(VisitToken(node.AllowsKeyword), VisitList(node.
Constraints
));
Syntax.xml.Syntax.Generated.cs (3)
11929
if (allowsKeyword != this.AllowsKeyword || constraints != this.
Constraints
)
11939
public AllowsConstraintClauseSyntax WithAllowsKeyword(SyntaxToken allowsKeyword) => Update(allowsKeyword, this.
Constraints
);
11942
public AllowsConstraintClauseSyntax AddConstraints(params AllowsConstraintSyntax[] items) => WithConstraints(this.
Constraints
.AddRange(items));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
13366
Assert.Equal(default, node.
Constraints
);
13367
var newNode = node.WithAllowsKeyword(node.AllowsKeyword).WithConstraints(node.
Constraints
);