Babel helper functions for inserting module loads
Overall
score
99%
Build a tool that analyzes JavaScript source code by parsing it into an Abstract Syntax Tree (AST) and extracting useful information about the code structure.
Parse JavaScript source code into an AST representation that can be analyzed.
Analyze parsed code to find all function declarations and their names.
@generates
/**
* Parses JavaScript source code and extracts information about function declarations.
*
* @param {string} code - The JavaScript source code to analyze
* @returns {Promise<string[]>} Array of function names found in the code
* @throws {Error} If the code cannot be parsed
*/
async function analyzeFunctions(code) {
// IMPLEMENTATION HERE
}
module.exports = {
analyzeFunctions
};Provides JavaScript parsing capabilities for converting code into AST.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-babel--helper-module-importsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10