RegexClassStringLiteralSyntax Class

Represents a JavaScript v-mode string disjunction inside a class, \q{abc|def}.

public sealed class RegexClassStringLiteralSyntax : RegexSyntaxNode

Remarks

This is what lets a class match a sequence rather than a single character, which is why v mode calls its members sets of strings rather than sets of characters.

Inheritance
RegexSyntaxNode RegexClassStringLiteralSyntax

Properties

NameDescription
AlternativesThe alternatives the disjunction lists.
CloseBraceToken
StartToken
TextToken
ValueThe text between the braces, alternatives and all.

The alternatives the disjunction lists.

public IReadOnlyList<string> Alternatives { get; }

Property value

IReadOnlyList<string>

CloseBraceToken

Syntax.g.cs
public SyntaxToken CloseBraceToken { get; }

Property value

SyntaxToken

No documentation is available.

StartToken

Syntax.g.cs
public SyntaxToken StartToken { get; }

Property value

SyntaxToken

No documentation is available.

TextToken

Syntax.g.cs
public SyntaxToken TextToken { get; }

Property value

SyntaxToken

No documentation is available.

The text between the braces, alternatives and all.

public string Value { get; }

Property value

string

Methods

NameDescription
Accept(RegexSyntaxVisitor)
Accept<TResult>(RegexSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithCloseBraceToken(SyntaxToken)Returns this node with closeBraceToken in place of its RegexClassStringLiteralSyntax.CloseBraceToken.
WithStartToken(SyntaxToken)Returns this node with startToken in place of its RegexClassStringLiteralSyntax.StartToken.
WithTextToken(SyntaxToken)Returns this node with textToken in place of its RegexClassStringLiteralSyntax.TextToken.

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(SyntaxToken, SyntaxToken, SyntaxToken)

Syntax.g.cs

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

public RegexClassStringLiteralSyntax Update(SyntaxToken startToken, SyntaxToken textToken, SyntaxToken closeBraceToken)

Parameters

startToken SyntaxToken
textToken SyntaxToken
closeBraceToken SyntaxToken

Returns

RegexClassStringLiteralSyntax

WithCloseBraceToken(SyntaxToken)

Syntax.g.cs

Returns this node with closeBraceToken in place of its RegexClassStringLiteralSyntax.CloseBraceToken.

public RegexClassStringLiteralSyntax WithCloseBraceToken(SyntaxToken closeBraceToken)

Parameters

closeBraceToken SyntaxToken

Returns

RegexClassStringLiteralSyntax

WithStartToken(SyntaxToken)

Syntax.g.cs

Returns this node with startToken in place of its RegexClassStringLiteralSyntax.StartToken.

public RegexClassStringLiteralSyntax WithStartToken(SyntaxToken startToken)

Parameters

startToken SyntaxToken

Returns

RegexClassStringLiteralSyntax

WithTextToken(SyntaxToken)

Syntax.g.cs

Returns this node with textToken in place of its RegexClassStringLiteralSyntax.TextToken.

public RegexClassStringLiteralSyntax WithTextToken(SyntaxToken textToken)

Parameters

textToken SyntaxToken

Returns

RegexClassStringLiteralSyntax