CssPseudoSelectorSyntax Class

Represents a pseudo-class or a pseudo-element without arguments, such as :hover or ::before.

public sealed class CssPseudoSelectorSyntax : CssSimpleSelectorSyntax
Inheritance
CssSimpleSelectorSyntax CssPseudoSelectorSyntax

Properties

NameDescription
ColonToken
IsPseudoElementDetermines whether this is a pseudo-element: written with two colons, or one of the four CSS 2 wrote with one.
NameGets the name, without the colons and with its escapes resolved, such as hover.
NameToken
SecondColonToken

ColonToken

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

Property value

SyntaxToken

No documentation is available.

Determines whether this is a pseudo-element: written with two colons, or one of the four CSS 2 wrote with one.

public bool IsPseudoElement { get; }

Property value

bool

Gets the name, without the colons and with its escapes resolved, such as hover.

public string Name { get; }

Property value

string

NameToken

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

Property value

SyntaxToken

No documentation is available.

SecondColonToken

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

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(CssSyntaxVisitor)
Accept<TResult>(CssSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithColonToken(SyntaxToken)Returns this node with colonToken in place of its CssPseudoSelectorSyntax.ColonToken.
WithNameToken(SyntaxToken)Returns this node with nameToken in place of its CssPseudoSelectorSyntax.NameToken.
WithSecondColonToken(SyntaxToken)Returns this node with secondColonToken in place of its CssPseudoSelectorSyntax.SecondColonToken.

Accept overloads

Accept(CssSyntaxVisitor)

Syntax.g.cs
public override void Accept(CssSyntaxVisitor visitor)
Parameters
visitor CssSyntaxVisitor

No documentation is available.

Accept<TResult>(CssSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(CssSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor CssSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, SyntaxToken, SyntaxToken)

Syntax.g.cs

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

public CssPseudoSelectorSyntax Update(SyntaxToken colonToken, SyntaxToken secondColonToken, SyntaxToken nameToken)

Parameters

colonToken SyntaxToken
secondColonToken SyntaxToken
nameToken SyntaxToken

Returns

CssPseudoSelectorSyntax

WithColonToken(SyntaxToken)

Syntax.g.cs

Returns this node with colonToken in place of its CssPseudoSelectorSyntax.ColonToken.

public CssPseudoSelectorSyntax WithColonToken(SyntaxToken colonToken)

Parameters

colonToken SyntaxToken

Returns

CssPseudoSelectorSyntax

WithNameToken(SyntaxToken)

Syntax.g.cs

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

public CssPseudoSelectorSyntax WithNameToken(SyntaxToken nameToken)

Parameters

nameToken SyntaxToken

Returns

CssPseudoSelectorSyntax

WithSecondColonToken(SyntaxToken)

Syntax.g.cs

Returns this node with secondColonToken in place of its CssPseudoSelectorSyntax.SecondColonToken.

public CssPseudoSelectorSyntax WithSecondColonToken(SyntaxToken secondColonToken)

Parameters

secondColonToken SyntaxToken

Returns

CssPseudoSelectorSyntax