UNPKG

enolib

Version:

The eno standard library

42 lines (32 loc) 735 B
class MissingElementBase { constructor(key, parent) { this._key = key; this._parent = parent; } _missingError(_element) { this._parent._missingError(this); } key(_loader) { this._parent._missingError(this); } optionalComment(_loader) { return null; } optionalStringComment() { return null; } // TODO: I think this I wanted to remove here and elsewhere and re-implement as internal helper for specs? raw() { return null; } requiredComment(_loader) { this._parent._missingError(this); } requiredStringComment() { this._parent._missingError(this); } stringKey() { this._parent._missingError(this); } } exports.MissingElementBase = MissingElementBase;