Block

sealed class Block<T : CssNode>(val children: List<T>) : CssComponentValueNode(source)

Represents a block of CSS component values, like a rule block or a declaration block.

Parameters

T

The type of the children nodes.

Inheritors

Constructors

Link copied to clipboard
protected constructor(children: List<T>)

Types

Link copied to clipboard

An empty declaration block, used as a placeholder when no declarations are present.

Link copied to clipboard
data object EmptyRuleBlock : Block<Rule>

An empty rule block, used as a placeholder when no rules are present.

Link copied to clipboard
data class SimpleBlock<T : CssNode>(val location: CssLocation, val children: List<T>) : Block<T>

A simple block with a location and children.

Properties

Link copied to clipboard
open val children: List<T>
Link copied to clipboard
abstract val location: CssLocation

Functions

Link copied to clipboard
open override fun toString(indent: Int): String