Class ParserNode

Hierarchy

Index

Properties

Methods

Properties

public rules: Array<any>

public selectors: Selector[]

public strictImports: any

Methods

public eval(env: Options): Ruleset

Parameters

Returns

Ruleset

public evalImports(env: Options)

Parameters

public find(selector: Selector, self: Rule): Rule[]

Parameters

Returns

Rule[]

public joinSelector(paths: Array<string>, context: Array<any[]>, selector: Selector)

Parameters

  • paths: Array<string>
  • context: Array<any[]>
  • selector: Selector

public joinSelectors(paths: Array<string>, context: Array<any[]>, selectors: Selector[])

Parameters

  • paths: Array<string>
  • context: Array<any[]>
  • selectors: Selector[]

public makeImportant(): Ruleset

Returns

Ruleset

public matchArgs(args: any): boolean

Parameters

  • args: any

Returns

boolean

public mergeElementsOnToSelectors(elements: Element[], selectors: Selector[])

Parameters

public resetCache()

public rulesets(): Ruleset[]

Returns

Ruleset[]

public toCSS(): string

Returns

string

public toCSS(options: { compress: boolean; }, variables?: any): string

Parameters

  • options: { compress: boolean; }
  • variables?: any optional

Returns

string

public variable(): Rule

Returns

Rule

public variables(): RuleContainer

Returns

RuleContainer