RegexClassSetOperationSyntax Class

Represents a JavaScript v-mode class set operation: an intersection such as [\w&&\p{L}] or a difference such as [[a-z]--[aeiou]].

public sealed class RegexClassSetOperationSyntax : RegexSyntaxNode

Remarks

The operation is n-ary because the grammar is: [a--b--c] is one difference of three operands rather than two nested ones. Mixing operators at the same level is not allowed, so every operator here is the same.

Inheritance
RegexSyntaxNode RegexClassSetOperationSyntax

Properties

NameDescription
IsIntersectionGets a value indicating whether the operator is &&.
Operands
OperatorTextGets the operator text, && or --, or an empty string when there is none.
OperatorTokensGets the operator between each pair of operands. The one at i follows the operand at i.

Gets a value indicating whether the operator is &&.

public bool IsIntersection { get; }

Property value

bool

Operands

Syntax.g.cs
public SeparatedSyntaxList<RegexSyntaxNode> Operands { get; }

No documentation is available.

Gets the operator text, && or --, or an empty string when there is none.

public string OperatorText { get; }

Property value

string

Gets the operator between each pair of operands. The one at i follows the operand at i.

public IEnumerable<SyntaxToken> OperatorTokens { get; }

Methods

NameDescription
Accept(RegexSyntaxVisitor)
Accept<TResult>(RegexSyntaxVisitor<TResult>)
Update(SeparatedSyntaxList<RegexSyntaxNode>)Returns this node with the given parts, or itself when nothing changed.
WithOperands(SeparatedSyntaxList<RegexSyntaxNode>)Returns this node with operands in place of its RegexClassSetOperationSyntax.Operands.

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(SeparatedSyntaxList<RegexSyntaxNode>)

Syntax.g.cs

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

WithOperands(SeparatedSyntaxList<RegexSyntaxNode>)

Syntax.g.cs