1 instantiation of AllowsConstraintClauseSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Internal.Generated.cs (1)
19071internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.AllowsConstraintClauseSyntax(this, parent, position);
18 references to AllowsConstraintClauseSyntax
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Constraints.cs (1)
310foreach (var allowsConstraint in ((AllowsConstraintClauseSyntax)syntax).Constraints)
Syntax.xml.Main.Generated.cs (6)
556public virtual TResult? VisitAllowsConstraintClause(AllowsConstraintClauseSyntax node) => this.DefaultVisit(node); 1300public virtual void VisitAllowsConstraintClause(AllowsConstraintClauseSyntax node) => this.DefaultVisit(node); 2043public override SyntaxNode? VisitAllowsConstraintClause(AllowsConstraintClauseSyntax node) 5320public static AllowsConstraintClauseSyntax AllowsConstraintClause(SyntaxToken allowsKeyword, SeparatedSyntaxList<AllowsConstraintSyntax> constraints) 5323return (AllowsConstraintClauseSyntax)Syntax.InternalSyntax.SyntaxFactory.AllowsConstraintClause((Syntax.InternalSyntax.SyntaxToken)allowsKeyword.Node!, constraints.Node.ToGreenSeparatedList<Syntax.InternalSyntax.AllowsConstraintSyntax>()).CreateRed(); 5327public static AllowsConstraintClauseSyntax AllowsConstraintClause(SeparatedSyntaxList<AllowsConstraintSyntax> constraints = default)
Syntax.xml.Syntax.Generated.cs (5)
11927public AllowsConstraintClauseSyntax Update(SyntaxToken allowsKeyword, SeparatedSyntaxList<AllowsConstraintSyntax> constraints) 11931var newNode = SyntaxFactory.AllowsConstraintClause(allowsKeyword, constraints); 11939public AllowsConstraintClauseSyntax WithAllowsKeyword(SyntaxToken allowsKeyword) => Update(allowsKeyword, this.Constraints); 11940public AllowsConstraintClauseSyntax WithConstraints(SeparatedSyntaxList<AllowsConstraintSyntax> constraints) => Update(this.AllowsKeyword, constraints); 11942public AllowsConstraintClauseSyntax AddConstraints(params AllowsConstraintSyntax[] items) => WithConstraints(this.Constraints.AddRange(items));
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
59refStructConstraint.Parent is AllowsConstraintClauseSyntax allowsClause &&
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Generated\Syntax.Test.xml.Generated.cs (5)
10900private static AllowsConstraintClauseSyntax GenerateAllowsConstraintClause() 13363var node = GenerateAllowsConstraintClause(); 13367var newNode = node.WithAllowsKeyword(node.AllowsKeyword).WithConstraints(node.Constraints); 18943var oldNode = GenerateAllowsConstraintClause(); 18959var oldNode = GenerateAllowsConstraintClause();