/*!
* Copyright (C) 2017 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
var Node = require('./node');
var KIND = 'error';
/**
* Defines an error node (used only on silentMode)
* @constructor Error
* @extends {Node}
* @property {string} message
* @property {number} line
* @property {number|string} token
* @property {string|array} expected
*/
var Error = Node.extends(function Error(message, token, line, expected, location) {
Node.apply(this, [KIND, location]);
this.message = message;
this.token = token;
this.line = line;
this.expected = expected;
});
module.exports = Error;
|