CssLayerNameSyntax Class

Represents the name of a cascade layer, such as framework.base.

public sealed class CssLayerNameSyntax : CssSyntaxNode
Inheritance
CssSyntaxNode CssLayerNameSyntax

Properties

NameDescription
NameGets the whole name, its parts joined by dots.
PartsGets the parts of the name, with their escapes resolved, such as framework and base.
Tokens

Gets the whole name, its parts joined by dots.

public string Name { get; }

Property value

string

Gets the parts of the name, with their escapes resolved, such as framework and base.

public IReadOnlyList<string> Parts { get; }

Property value

IReadOnlyList<string>

public SyntaxTokenList Tokens { get; }

Property value

SyntaxTokenList

No documentation is available.

Methods

NameDescription
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 CssLayerNameSyntax.Tokens.

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(SyntaxTokenList)

Syntax.g.cs

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

public CssLayerNameSyntax Update(SyntaxTokenList tokens)

Parameters

tokens SyntaxTokenList

Returns

CssLayerNameSyntax

WithTokens(SyntaxTokenList)

Syntax.g.cs

Returns this node with tokens in place of its CssLayerNameSyntax.Tokens.

public CssLayerNameSyntax WithTokens(SyntaxTokenList tokens)

Parameters

tokens SyntaxTokenList

Returns

CssLayerNameSyntax