CssAnPlusBSyntax Class
Represents an An+B expression, such as 2n+1 or odd, which selects every A-th element starting with the B-th.
public sealed class CssAnPlusBSyntax : CssSyntaxNodeRemarks
The tokens are kept as the tokenizer split them, which is not where a reader would: 2n-1 is a single token.
- Inheritance
CssSyntaxNodeCssAnPlusBSyntax
Properties
| Name | Description |
|---|---|
| A | Gets the step, A. It is zero for a plain index such as 3. |
| B | Gets the offset, B. |
| IsValid | Determines whether the tokens are a valid An+B expression; when they are not, CssAnPlusBSyntax.A and CssAnPlusBSyntax.B are zero. |
| Tokens |
IsValid
CssAnPlusBSyntax.csDetermines whether the tokens are a valid An+B expression; when they are not, CssAnPlusBSyntax.A and CssAnPlusBSyntax.B are zero.
public bool IsValid { get; }Property value
Tokens
Syntax.g.csMethods
| Name | Description |
|---|---|
| Accept(CssSyntaxVisitor) | |
| Accept<TResult>(CssSyntaxVisitor<TResult>) | |
| Update(SyntaxTokenList) | Returns this node with the given parts, or itself when nothing changed. |
| WithTokens(SyntaxTokenList) | Returns this node with tokens in place of its CssAnPlusBSyntax.Tokens. |
Accept overloads
Accept(CssSyntaxVisitor)
Syntax.g.cspublic override void Accept(CssSyntaxVisitor visitor)Parameters
visitorCssSyntaxVisitor
No documentation is available.
Accept<TResult>(CssSyntaxVisitor<TResult>)
Syntax.g.cspublic override TResult? Accept<TResult>(CssSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxTokenList)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public CssAnPlusBSyntax Update(SyntaxTokenList tokens)WithTokens(SyntaxTokenList)
Syntax.g.csReturns this node with tokens in place of its CssAnPlusBSyntax.Tokens.
public CssAnPlusBSyntax WithTokens(SyntaxTokenList tokens)