RegexSequenceSyntax Class
Represents one branch of an alternation: the terms that must match one after another.
public sealed class RegexSequenceSyntax : RegexSyntaxNodeRemarks
A branch can be empty, as both branches of (|) are.
- Inheritance
RegexSyntaxNodeRegexSequenceSyntax
Properties
| Name | Description |
|---|---|
| Terms |
Terms
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(RegexSyntaxVisitor) | |
| Accept<TResult>(RegexSyntaxVisitor<TResult>) | |
| Update(SyntaxList<RegexTermSyntax>) | Returns this node with the given parts, or itself when nothing changed. |
| WithTerms(SyntaxList<RegexTermSyntax>) | Returns this node with terms in place of its RegexSequenceSyntax.Terms. |
| WithTerms(IEnumerable<RegexTermSyntax>?) | Returns this sequence with different terms, or itself when nothing changed. |
Accept overloads
Accept(RegexSyntaxVisitor)
Syntax.g.cspublic override void Accept(RegexSyntaxVisitor visitor)Parameters
visitorRegexSyntaxVisitor
No documentation is available.
Accept<TResult>(RegexSyntaxVisitor<TResult>)
Syntax.g.cspublic override TResult? Accept<TResult>(RegexSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxList<RegexTermSyntax>)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public RegexSequenceSyntax Update(SyntaxList<RegexTermSyntax> terms)WithTerms overloads
WithTerms(SyntaxList<RegexTermSyntax>)
Syntax.g.csReturns this node with terms in place of its RegexSequenceSyntax.Terms.
public RegexSequenceSyntax WithTerms(SyntaxList<RegexTermSyntax> terms)WithTerms(IEnumerable<RegexTermSyntax>?)
RegexSequenceSyntax.csReturns this sequence with different terms, or itself when nothing changed.
public RegexSequenceSyntax WithTerms(IEnumerable<RegexTermSyntax>? terms)