CssComplexSelectorPartSyntax Class

Represents a compound selector of a complex selector, together with the combinator before it.

public sealed class CssComplexSelectorPartSyntax : CssSyntaxNode

Remarks

Whitespace is trivia, so the descendant combinator has no node: a part after the first with no CssComplexSelectorPartSyntax.Combinator is a descendant of the part before it.

Inheritance
CssSyntaxNode CssComplexSelectorPartSyntax

Properties

NameDescription
Combinator
CombinatorKindGets how this part relates to the one before it.
Compound

Combinator

Syntax.g.cs
public CssCombinatorSyntax? Combinator { get; }

Property value

CssCombinatorSyntax?

No documentation is available.

Gets how this part relates to the one before it.

public CssCombinatorKind CombinatorKind { get; }

Property value

CssCombinatorKind

Compound

Syntax.g.cs
public CssCompoundSelectorSyntax Compound { get; }

No documentation is available.

Methods

NameDescription
Accept(CssSyntaxVisitor)
Accept<TResult>(CssSyntaxVisitor<TResult>)
Update(CssCombinatorSyntax?, CssCompoundSelectorSyntax)Returns this node with the given parts, or itself when nothing changed.
WithCombinator(CssCombinatorSyntax?)Returns this node with combinator in place of its CssComplexSelectorPartSyntax.Combinator.
WithCompound(CssCompoundSelectorSyntax)Returns this node with compound in place of its CssComplexSelectorPartSyntax.Compound.

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(CssCombinatorSyntax?, CssCompoundSelectorSyntax)

Syntax.g.cs

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

WithCombinator(CssCombinatorSyntax?)

Syntax.g.cs

Returns this node with combinator in place of its CssComplexSelectorPartSyntax.Combinator.

public CssComplexSelectorPartSyntax WithCombinator(CssCombinatorSyntax? combinator)

WithCompound(CssCompoundSelectorSyntax)

Syntax.g.cs

Returns this node with compound in place of its CssComplexSelectorPartSyntax.Compound.