marktail
v1.0.0
Published
A Babel plugin that marks AST CallExpression nodes as tail calls and/or proper tail calls.
Downloads
9
Maintainers
Readme
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 totrue
then the CallExpression is in tail position.If
properTailCall
is set totrue
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.