frontend/sequences/locals_list/sanitize_nodes.ts
Function sanitizeNodes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const sanitizeNodes = (thisSequence: Sequence): SanitizationResult => {
// Collect all *declared* variables.
const declared: Dictionary<ScopeDeclarationBodyItem> = {};
(thisSequence.args.locals.body || []).map(variable =>
declared[variable.args.label] = variable);