UNPKG

firescript

Version:
20 lines (14 loc) 382 B
const Node = require('./Node') class FirescriptGrouping extends Node { constructor (parser, name) { super(parser) this.elements = [] for (const scope of parser.walkScope()) { this.elements.push(scope.nextNode(this)) } } resolve (ctx) { return this.elements.length ? this.elements[0].resolve(ctx) : null } } module.exports = FirescriptGrouping