RegexLiteralSyntax Class
Represents a single ordinary character that matches itself.
public sealed class RegexLiteralSyntax : RegexAtomSyntax- Inheritance
RegexAtomSyntaxRegexLiteralSyntax
Properties
| Name | Description |
|---|---|
| CodePoint | The code point this literal matches. In Unicode mode a surrogate pair is one atom, so this is the pair's code point rather than the first half of it. |
| LiteralToken | |
| Value | The first code unit of the character this literal matches. |
CodePoint
RegexLiteralSyntax.csLiteralToken
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(RegexSyntaxVisitor) | |
| Accept<TResult>(RegexSyntaxVisitor<TResult>) | |
| Update(SyntaxToken) | Returns this node with the given parts, or itself when nothing changed. |
| WithLiteralToken(SyntaxToken) | Returns this node with literalToken in place of its RegexLiteralSyntax.LiteralToken. |
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)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public RegexLiteralSyntax Update(SyntaxToken literalToken)WithLiteralToken(SyntaxToken)
Syntax.g.csReturns this node with literalToken in place of its RegexLiteralSyntax.LiteralToken.
public RegexLiteralSyntax WithLiteralToken(SyntaxToken literalToken)