Options
All
  • Public
  • Public/Protected
  • All
Menu

Parser that, given a PostCSS AST will return a Block object. Main public interface is BlockParser.parse.

Hierarchy

  • BlockParser

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private config

Private factory

factory: BlockFactory

Methods

parse

  • parse(root: Root, identifier: string, name: string): Promise<Block>
  • Main public interface of BlockParser. Given a PostCSS AST, returns a promise for the new Block object.

    Parameters

    • root: Root

      PostCSS AST

    • identifier: string
    • name: string

    Returns Promise<Block>

parseSource

Generated using TypeDoc