Babel plugin to ensure function declarations at the block level are block scoped
89
Switch Case Function Transformation
AST Parsing
100%
100%
SwitchCase Visitor
60%
100%
Function Detection
100%
100%
Strict Mode Detection
66%
100%
Function Type Identification
100%
100%
Case Value Extraction
100%
100%
Output Format
100%
100%
Block Statement Function Transformation
Plugin Integration
0%
0%
BlockStatement Visitor
60%
100%
SwitchCase Visitor
66%
100%
Strict Mode Detection
33%
100%
Async/Generator Handling
66%
100%
Function Body Filtering
60%
100%
Variable Declaration Output
80%
100%
Block Hoisting Control
Plugin Integration
100%
50%
Plugin Configuration
100%
0%
Strict Mode Handling
100%
100%
Non-Strict Mode Handling
100%
100%
Transformation Output
100%
100%
Strict Mode Detection and Handling
Parse code with @babel/parser
100%
100%
Traverse AST with @babel/traverse
100%
100%
Detect strict mode context
40%
100%
Identify function types
100%
100%
Check block statement context
100%
100%
Apply transformation rules
100%
100%
Integration with Babel Plugin Ecosystem
Uses @babel/core transform API
100%
100%
Configures block-scoped functions plugin
100%
100%
Handles plugin ordering
100%
100%
Integrates with strict mode
100%
66%
Coordinates with async generator plugin
100%
100%
Returns transformed code properly
100%
100%
Creates reusable Babel configuration
100%
100%
Function Identity Management
Plugin Integration
0%
0%
Function Name Preservation
100%
100%
Anonymous Expression Conversion
100%
100%
Strict Mode Handling
100%
100%
Special Function Types
100%
100%
Context Exclusions
100%
100%
AST Node Path Analysis
FunctionDeclaration visitor
100%
100%
NodePath parent analysis
100%
100%
Context identification logic
100%
100%
Function property detection
100%
100%
Results collection mechanism
100%
100%
Correct output format
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-babel--plugin-transform-block-scoped-functions