ECMAScript code generator that transforms Mozilla's Parser API ASTs back into executable JavaScript code
95
{
"context": "This criteria evaluates how well the engineer uses escodegen's Mozilla-specific extension options, specifically the starlessGenerator configuration, to control generator function syntax in generated code.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import escodegen",
"description": "The implementation correctly imports or requires the escodegen package",
"max_score": 10
},
{
"name": "Use generate function",
"description": "The implementation uses escodegen.generate() as the core method for AST-to-code transformation",
"max_score": 20
},
{
"name": "Pass options object",
"description": "The implementation correctly passes an options object as the second parameter to escodegen.generate()",
"max_score": 15
},
{
"name": "Configure moz option",
"description": "The implementation uses the moz configuration object within the options to control Mozilla-specific behaviors",
"max_score": 25
},
{
"name": "Set starlessGenerator",
"description": "The implementation specifically sets the moz.starlessGenerator property to control whether generator functions include the * token",
"max_score": 25
},
{
"name": "Return generated code",
"description": "The implementation returns the string result from escodegen.generate() as the output",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-escodegendocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10