firescript
Version:
Firescript transpiler
20 lines (14 loc) • 382 B
JavaScript
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