Debian Codegraph @

packages/babel-register/test/fixtures/internal-modules/plugin.js

raw symbols SCIP
1 // Plugin to add '/* transformed */' comment to start of function bodies
2
3 module.exports = () => ( {
4 visitor: {
5 Function(path) {
6 const bodyNode = path.node.body;
7 (bodyNode.leadingComments || (bodyNode.leadingComments = [])).push( {
8 type: 'CommentBlock',
9 value: ' transformed '
10 } );
11 },
12 },
13 } );