JSX parsing plugin for the Acorn JavaScript parser that enables fast parsing of React JSX syntax
76
Recursive nested JSX parsing (JSX in expressions in JSX)
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%
Spread attributes ({...props})
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%
JSX fragment parsing (<>...</>)
Parser extension
100%
15%
Fragment detection
20%
0%
Children traversal
40%
0%
Child type identification
30%
0%
Nested fragments
100%
0%
AST generation for JSX elements and attributes
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%
Token context management (tc_oTag, tc_cTag, tc_expr)
Parser Extension
100%
100%
Access tokContexts
100%
100%
Extract Context Properties
100%
100%
Return All Three Contexts
100%
100%
Correct Output Format
100%
100%
Token type system (jsxName, jsxText, jsxTagStart, jsxTagEnd)
Parser extension
100%
100%
Token type access
100%
100%
Tokenization process
100%
100%
Token type comparison
100%
100%
Children content parsing (text, elements, expressions)
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%
Boolean attributes (disabled, selected)
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%
Empty expression validation in attributes
Parser initialization
80%
100%
Parse invocation
100%
100%
Error handling
40%
40%
Error detection
25%
25%
Parser options
100%
100%
Expression container attributes (onClick={handler})
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