packages/wescheme-blocks/src/WeschemeParser.js
Showing 5 of 5 total issues
Function parse
has a Cognitive Complexity of 245 (exceeds 5 allowed). Consider refactoring. Open
Open
export function parse(code) { function fallback(sexp) { var elts = sexp instanceof Array ? parseStar(sexp) : [parseExprSingleton(sexp)]; var guess = new structures.unsupportedExpr(elts, "Parse error");
- Read upRead up
Avoid too many return
statements within this function. Open
Open
return (function () { var res = new structures.quotedExpr(sexp); res.location = sexp.location; return res; })();
Avoid too many return
statements within this function. Open
Open
return fallback(sexp);
Avoid too many return
statements within this function. Open
Open
return parseExpr(sexp);
Avoid too many return
statements within this function. Open
Open
return new structures.defVar( parseIdExpr(sexp[1]), parseExpr(sexp[2]), sexp );