UNPKG

firescript

Version:
22 lines (16 loc) 363 B
const Node = require('./Node') class Super extends Node { constructor (parser) { super(parser) if (!parser.match('identifier "super"')) { this.syntaxError(`Unexpectrd token, super identifier expected`) } parser.skipNext() } resolve (ctx) { return this.createJSON(ctx, { type: 'Super' }) } } module.exports = Super