@component-compass/ast-utils
v0.1.28
Published
Shared AST utilities for component-compass parsers and manifest plugins. Internal infrastructure.
Readme
@component-compass/ast-utils
Shared AST utility functions used by the component-compass CLI and parsers.
oxc-helpers: position conversion, JSX name reading and node type guards for oxc-parser's ESTree-shaped AST.find-owner: finds the component declaration that encloses a node.parse5-guards: type guards for parse5 element, text and document nodes.errors: turns an unknown thrown value into a message or stack for user-facing output.
This is internal infrastructure for the component-compass packages. The API may evolve as the parsers evolve.
