| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 8x 8x | import Node from './node';
/**
* Used to specify that the parent's implementation is internally defined.
*/
export default class InternalMarker extends Node {
/**
* Creates a marker
* @param {String} id - the literal ID to bind to.
* @param {Object} position - a position from nearley
*/
constructor(id: String, position: Object) {
super(position);
this.rootId = id;
}
/** @override */
get children() {
return null;
}
toString() {
return `internal(${this.rootId})`;
}
} |