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 : RegexSyntaxNodeRemarks
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
RegexSyntaxNodeRegexClassSetOperationSyntax
Properties
| Name | Description |
|---|---|
| IsIntersection | Gets a value indicating whether the operator is &&. |
| Operands | |
| OperatorText | Gets the operator text, && or --, or an empty string when there is none. |
| OperatorTokens | Gets the operator between each pair of operands. The one at i follows the operand at i. |
IsIntersection
RegexClassSetOperationSyntax.csOperands
Syntax.g.cspublic SeparatedSyntaxList<RegexSyntaxNode> Operands { get; }Property value
No documentation is available.
OperatorText
RegexClassSetOperationSyntax.csOperatorTokens
RegexClassSetOperationSyntax.csGets the operator between each pair of operands. The one at i follows the operand at i.
public IEnumerable<SyntaxToken> OperatorTokens { get; }Property value
Methods
| Name | Description |
|---|---|
| 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.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(SeparatedSyntaxList<RegexSyntaxNode>)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public RegexClassSetOperationSyntax Update(SeparatedSyntaxList<RegexSyntaxNode> operands)WithOperands(SeparatedSyntaxList<RegexSyntaxNode>)
Syntax.g.csReturns this node with operands in place of its RegexClassSetOperationSyntax.Operands.
public RegexClassSetOperationSyntax WithOperands(SeparatedSyntaxList<RegexSyntaxNode> operands)