Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/floofies/marktail
- Owner: Floofies
- License: mit
- Created: 2019-10-22T20:32:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T22:41:12.000Z (10 months ago)
- Last Synced: 2024-11-16T12:42:14.211Z (2 months ago)
- Topics: babel, babel-plugin, javascript, proper-tail-call, tail-calls, tailcall
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.