CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-babel--plugin-transform-block-scoped-functions

Babel plugin to ensure function declarations at the block level are block scoped

89

1.04x
Overview
Eval results
Files

Evaluation results

100%

13%

Switch-Scoped Function Analyzer

Switch Case Function Transformation

Criteria
Without context
With context

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%

85%

34%

Block-Scoped Function Transpiler

Block Statement Function Transformation

Criteria
Without context
With context

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%

65%

-35%

Block-Scoped Function Transformer

Block Hoisting Control

Criteria
Without context
With context

Plugin Integration

100%

50%

Plugin Configuration

100%

0%

Strict Mode Handling

100%

100%

Non-Strict Mode Handling

100%

100%

Transformation Output

100%

100%

100%

15%

Code Block Scoping Analyzer

Strict Mode Detection and Handling

Criteria
Without context
With context

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%

95%

-5%

Babel Plugin Configuration Manager

Integration with Babel Plugin Ecosystem

Criteria
Without context
With context

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%

75%

Block-Scoped Function Transformer

Function Identity Management

Criteria
Without context
With context

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%

100%

Function Declaration Context Analyzer

AST Node Path Analysis

Criteria
Without context
With context

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%

Failed

Async and Generator Function Handling

Install with Tessl CLI

npx tessl i tessl/npm-babel--plugin-transform-block-scoped-functions
Evaluated
Agent
Claude Code

Table of Contents