RegexLiteralSyntax Class

Represents a single ordinary character that matches itself.

public sealed class RegexLiteralSyntax : RegexAtomSyntax
Inheritance
RegexAtomSyntax RegexLiteralSyntax

Properties

NameDescription
CodePointThe 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
ValueThe first code unit of the character this literal matches.

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.

public int CodePoint { get; }

Property value

int

LiteralToken

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

Property value

SyntaxToken

No documentation is available.

The first code unit of the character this literal matches.

public char Value { get; }

Property value

char

Methods

NameDescription
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.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)

Syntax.g.cs

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

public RegexLiteralSyntax Update(SyntaxToken literalToken)

Parameters

literalToken SyntaxToken

Returns

RegexLiteralSyntax

WithLiteralToken(SyntaxToken)

Syntax.g.cs

Returns this node with literalToken in place of its RegexLiteralSyntax.LiteralToken.

public RegexLiteralSyntax WithLiteralToken(SyntaxToken literalToken)

Parameters

literalToken SyntaxToken

Returns

RegexLiteralSyntax