RegexSequenceSyntax Class

Represents one branch of an alternation: the terms that must match one after another.

public sealed class RegexSequenceSyntax : RegexSyntaxNode

Remarks

A branch can be empty, as both branches of (|) are.

Inheritance
RegexSyntaxNode RegexSequenceSyntax

Properties

NameDescription
Terms
public SyntaxList<RegexTermSyntax> Terms { get; }

No documentation is available.

Methods

NameDescription
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.cs
public override void Accept(RegexSyntaxVisitor visitor)
Parameters
visitor RegexSyntaxVisitor

No documentation is available.

Accept<TResult>(RegexSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(RegexSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor RegexSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxList<RegexTermSyntax>)

Syntax.g.cs

Returns this node with the given parts, or itself when nothing changed.

WithTerms overloads

WithTerms(SyntaxList<RegexTermSyntax>)

Syntax.g.cs

Returns this node with terms in place of its RegexSequenceSyntax.Terms.

WithTerms(IEnumerable<RegexTermSyntax>?)

RegexSequenceSyntax.cs

Returns this sequence with different terms, or itself when nothing changed.