CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-acorn-jsx

JSX parsing plugin for the Acorn JavaScript parser that enables fast parsing of React JSX syntax

76

1.68x
Overview
Eval results
Files

Evaluation results

83%

72%

JSX Nesting Depth Analyzer

Recursive nested JSX parsing (JSX in expressions in JSX)

Criteria
Without context
With context

Parser initialization

20%

100%

Parse method usage

0%

90%

JSXElement recognition

0%

100%

JSXExpressionContainer handling

0%

60%

Recursive traversal

40%

60%

JSX element naming

0%

100%

Location tracking

0%

100%

100%

90%

JSX Spread Attribute Analyzer

Spread attributes ({...props})

Criteria
Without context
With context

Parser integration

50%

100%

AST generation

0%

100%

AST traversal

0%

100%

JSXElement identification

0%

100%

JSXSpreadAttribute detection

0%

100%

Element name extraction

0%

100%

Spread expression extraction

0%

100%

3%

-51%

JSX Fragment AST Analyzer

JSX fragment parsing (<>...</>)

Criteria
Without context
With context

Parser extension

100%

15%

Fragment detection

20%

0%

Children traversal

40%

0%

Child type identification

30%

0%

Nested fragments

100%

0%

8%

8%

JSX Attribute Analyzer

AST generation for JSX elements and attributes

Criteria
Without context
With context

Parser initialization

0%

33%

AST parsing

0%

20%

JSXElement identification

0%

0%

Element name extraction

0%

0%

JSXAttribute handling

0%

0%

String literal detection

0%

0%

Expression container detection

0%

0%

JSXSpreadAttribute handling

0%

0%

Boolean attribute detection

0%

0%

JSX element values

0%

0%

100%

JSX Parser Context Inspector

Token context management (tc_oTag, tc_cTag, tc_expr)

Criteria
Without context
With context

Parser Extension

100%

100%

Access tokContexts

100%

100%

Extract Context Properties

100%

100%

Return All Three Contexts

100%

100%

Correct Output Format

100%

100%

100%

JSX Token Type Inspector

Token type system (jsxName, jsxText, jsxTagStart, jsxTagEnd)

Criteria
Without context
With context

Parser extension

100%

100%

Token type access

100%

100%

Tokenization process

100%

100%

Token type comparison

100%

100%

100%

100%

JSX Children Analyzer

Children content parsing (text, elements, expressions)

Criteria
Without context
With context

Parser initialization

0%

100%

Parse JSX code

0%

100%

Navigate to children

0%

100%

Identify JSXText nodes

0%

100%

Identify JSXElement nodes

0%

100%

Identify JSXExpressionContainer nodes

0%

100%

Handle mixed children

0%

100%

100%

JSX Boolean Attribute Parser

Boolean attributes (disabled, selected)

Criteria
Without context
With context

acorn-jsx integration

100%

100%

AST parsing

100%

100%

JSXElement traversal

100%

100%

JSXOpeningElement access

100%

100%

Attribute filtering

100%

100%

Attribute name extraction

100%

100%

Result structure

100%

100%

70%

5%

JSX Attribute Validator

Empty expression validation in attributes

Criteria
Without context
With context

Parser initialization

80%

100%

Parse invocation

100%

100%

Error handling

40%

40%

Error detection

25%

25%

Parser options

100%

100%

100%

91%

JSX Attribute Expression Validator

Expression container attributes (onClick={handler})

Criteria
Without context
With context

acorn-jsx integration

20%

100%

JSX parsing

13%

100%

JSXElement identification

0%

100%

JSXAttribute extraction

0%

100%

JSXExpressionContainer detection

0%

100%

Expression extraction

0%

100%

Expression type identification

40%

100%

Install with Tessl CLI

npx tessl i tessl/npm-acorn-jsx
Evaluated
Agent
Claude Code

Table of Contents