/typescript-ast-processor

Process a TypeScript AST using visitors, collectors and instrumentation

Primary LanguageTypeScriptMIT LicenseMIT

Quick AST (QAST)

lerna

QAST is designed as a foundation for writing tools that work with the TypeScript AST. It aims to provide a higher level API, query engine, node data aggregators etc.

QAST should alleviate much of the pain when working with the AST directly. It lets you work at a higher abstraction level than with the "bare metal" AST, while still making it available when necessary.

Also see additional docs

Mono repo

QAST is currently structured as a mono repo, using lerna with yarn workspaces

Lerna packages

Disclaimer

Please help contribute to make it happen, see Contributing

Resources

See Resources for more

Testing

See Testing

Tool integration

We will try to make it easy to integrate other tools, so that this design is intent bases without making assumptions about underlying use or implementation.

For more see Tool integration

Customization

You should be able to use tsutils to make it easier to gather information and work with the underlying typescript AST.

ESLint traverser

We intend to extend astravel to have a similar API and design if this turns out to be as awesome as we think it could be...

Author

Kristian Mandrup

License

MIT