PropertyList
Index
Constructors
Methods
Properties
Constructors
constructor
new PropertyList(
arena: AstArena,
options?: PropertyListOptions,
memo?: DeclarationMemo | null,
descriptors?: Record<string, ValidationToken[]> | null,
): PropertyList
Parameters
arena: AstArenaoptions: PropertyListOptions = {}memo: DeclarationMemo | null = nullkeys shared by the lists that use the same arena
descriptors: Record<string, ValidationToken[]> | null = nullsyntaxes of the descriptors of the at-rule that contains the declarations
Returns PropertyList
Methods
[iterator]
"[iterator]"(): IterableIterator<number>
Returns IterableIterator<number>
add Declaration
addDeclaration(declaration: number): this
add a declaration
Parameters
declaration: numbernode id
Returns this
map Values
mapValues(declaration: number, mapping: SinglePropertyTypeMapping): void
Parameters
declaration: numbermapping: SinglePropertyTypeMapping
Returns void
Properties
Protectedarena
arena the declarations are stored in
Protecteddeclarations
declarations: Map<string, number | PropertySet | PropertyMap>
declarations
Protecteddescriptors
syntaxes of the descriptors of the at-rule that contains the declarations: result in @function. the
declarations that are not validated are validated with them
Protectedmemo
memo: DeclarationMemo
keys shared by the lists that use the same arena
Protectedoptions
options
Represents a list of property declarations, compute shorthand and remove duplicate declarations.