RegexUnicodeCategorySyntax Class

Represents a Unicode category or block escape, \p{L} or \P{IsGreek}.

public sealed class RegexUnicodeCategorySyntax : RegexAtomSyntax
Inheritance
RegexAtomSyntax RegexUnicodeCategorySyntax

Properties

NameDescription
CategoryStartToken
CloseBraceToken
IsNegatedReturns true for the negated form, spelled \P{…} or \p{^…}.
NameThe category or block name, without the ^ that some dialects negate it with.
NameToken
OpenBraceToken

CategoryStartToken

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

Property value

SyntaxToken

No documentation is available.

CloseBraceToken

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

Property value

SyntaxToken

No documentation is available.

Returns true for the negated form, spelled \P{…} or \p{^…}.

public bool IsNegated { get; }

Property value

bool

The category or block name, without the ^ that some dialects negate it with.

public string Name { get; }

Property value

string

NameToken

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

Property value

SyntaxToken

No documentation is available.

OpenBraceToken

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(RegexSyntaxVisitor)
Accept<TResult>(RegexSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithCategoryStartToken(SyntaxToken)Returns this node with categoryStartToken in place of its RegexUnicodeCategorySyntax.CategoryStartToken.
WithCloseBraceToken(SyntaxToken)Returns this node with closeBraceToken in place of its RegexUnicodeCategorySyntax.CloseBraceToken.
WithNameToken(SyntaxToken)Returns this node with nameToken in place of its RegexUnicodeCategorySyntax.NameToken.
WithOpenBraceToken(SyntaxToken)Returns this node with openBraceToken in place of its RegexUnicodeCategorySyntax.OpenBraceToken.

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

Syntax.g.cs

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

public RegexUnicodeCategorySyntax Update(SyntaxToken categoryStartToken, SyntaxToken openBraceToken, SyntaxToken nameToken, SyntaxToken closeBraceToken)

Parameters

categoryStartToken SyntaxToken
openBraceToken SyntaxToken
nameToken SyntaxToken
closeBraceToken SyntaxToken

Returns

RegexUnicodeCategorySyntax

WithCategoryStartToken(SyntaxToken)

Syntax.g.cs

Returns this node with categoryStartToken in place of its RegexUnicodeCategorySyntax.CategoryStartToken.

public RegexUnicodeCategorySyntax WithCategoryStartToken(SyntaxToken categoryStartToken)

Parameters

categoryStartToken SyntaxToken

Returns

RegexUnicodeCategorySyntax

WithCloseBraceToken(SyntaxToken)

Syntax.g.cs

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

public RegexUnicodeCategorySyntax WithCloseBraceToken(SyntaxToken closeBraceToken)

Parameters

closeBraceToken SyntaxToken

Returns

RegexUnicodeCategorySyntax

WithNameToken(SyntaxToken)

Syntax.g.cs

Returns this node with nameToken in place of its RegexUnicodeCategorySyntax.NameToken.

public RegexUnicodeCategorySyntax WithNameToken(SyntaxToken nameToken)

Parameters

nameToken SyntaxToken

Returns

RegexUnicodeCategorySyntax

WithOpenBraceToken(SyntaxToken)

Syntax.g.cs

Returns this node with openBraceToken in place of its RegexUnicodeCategorySyntax.OpenBraceToken.

public RegexUnicodeCategorySyntax WithOpenBraceToken(SyntaxToken openBraceToken)

Parameters

openBraceToken SyntaxToken

Returns

RegexUnicodeCategorySyntax