Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/floofies/marktail

A Babel plugin that marks CallExpression AST nodes which are tail calls and/or proper tail calls.
https://github.com/floofies/marktail

babel babel-plugin javascript proper-tail-call tail-calls tailcall

Last synced: about 2 months ago
JSON representation

A Babel plugin that marks CallExpression AST nodes which are tail calls and/or proper tail calls.

Awesome Lists containing this project

README

        

# marktail

[![NPM](https://nodei.co/npm/marktail.png)](https://nodei.co/npm/marktail/)

A Babel plugin that marks CallExpression AST nodes which are tail calls and/or proper tail calls.

Two properties are added to CallExpression nodes, `tailCall` and `properTailCall`.

- If `tailCall` is set to `true` then the CallExpression is in tail position.

- If `properTailCall` is set to `true` then the CallExpression is both in tail position and is a "Proper Tail Call".

This plugin is designed to be used with your own plugins which look for the `tailCall` and `properTailCall` properties within any `CallExpression` AST node.