1.0.0 • Published 6 years ago
marktail v1.0.0
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
tailCallis set totruethen the CallExpression is in tail position.If
properTailCallis set totruethen 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.
1.0.0
6 years ago
