Options
All
  • Public
  • Public/Protected
  • All
Menu

Compiler that, given a Block will return a transformed AST interface is BlockParser.parse.

Hierarchy

  • BlockCompiler

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private config

Private postcss

postcss: postcss

Methods

compile

  • compile(block: Block, root: Root, analyzer?: Analyzer<keyof TemplateTypes>): Root

processDebugStatements

  • processDebugStatements(sourceFile: string, root: Root, block: Block): void
  • Process all @block-debug statements, output debug statement to console or in comment as requested.

    Parameters

    • sourceFile: string

      File name of block in question.

    • root: Root

      PostCSS Root for block.

    • block: Block

      Block to resolve references for

    Returns void

Generated using TypeDoc