RegexClassStringLiteralSyntax Class
Represents a JavaScript v-mode string disjunction inside a class, \q{abc|def}.
public sealed class RegexClassStringLiteralSyntax : RegexSyntaxNodeRemarks
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
RegexSyntaxNodeRegexClassStringLiteralSyntax
Properties
| Name | Description |
|---|---|
| Alternatives | The alternatives the disjunction lists. |
| CloseBraceToken | |
| StartToken | |
| TextToken | |
| Value | The text between the braces, alternatives and all. |
Alternatives
RegexClassStringLiteralSyntax.csThe alternatives the disjunction lists.
public IReadOnlyList<string> Alternatives { get; }Property value
CloseBraceToken
Syntax.g.csStartToken
Syntax.g.csTextToken
Syntax.g.csMethods
| Name | Description |
|---|---|
| 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.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(SyntaxToken, SyntaxToken, SyntaxToken)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public RegexClassStringLiteralSyntax Update(SyntaxToken startToken, SyntaxToken textToken, SyntaxToken closeBraceToken)WithCloseBraceToken(SyntaxToken)
Syntax.g.csReturns this node with closeBraceToken in place of its RegexClassStringLiteralSyntax.CloseBraceToken.
public RegexClassStringLiteralSyntax WithCloseBraceToken(SyntaxToken closeBraceToken)WithStartToken(SyntaxToken)
Syntax.g.csReturns this node with startToken in place of its RegexClassStringLiteralSyntax.StartToken.
public RegexClassStringLiteralSyntax WithStartToken(SyntaxToken startToken)WithTextToken(SyntaxToken)
Syntax.g.csReturns this node with textToken in place of its RegexClassStringLiteralSyntax.TextToken.
public RegexClassStringLiteralSyntax WithTextToken(SyntaxToken textToken)