Lines Matching refs:reporter
27977 reporter) {
27978 return this._getEncoder(enc).encode(data, reporter);
28021 reporter: Reporter.prototype.save.call(this)
28031 Reporter.prototype.restore.call(this, save.reporter);
28058 function EncoderBuffer(value, reporter) {
28062 if (!EncoderBuffer.isEncoderBuffer(item)) item = new EncoderBuffer(item, reporter);
28067 if (!(0 <= value && value <= 0xff)) return reporter.error('non-byte EncoderBuffer value');
28077 return reporter.error('Unsupported type: ' + _typeof(value));
28495 return new EncoderBuffer(data, this.reporter);
28498 Node.prototype._encode = function encode(data, reporter, parent) {
28502 var result = this._encodeValue(data, reporter, parent);
28505 if (this._skipDefault(result, reporter, parent)) return;
28509 Node.prototype._encodeValue = function encode(data, reporter, parent) {
28512 if (state.parent === null) return state.children[0]._encode(data, reporter || new Reporter());
28515 this.reporter = reporter; // Check if data is there
28529 result = this._encodeChoice(data, reporter);
28531 content = this._getUse(state.contains, parent)._encode(data, reporter);
28535 if (child._baseState.tag === 'null_') return child._encode(null, reporter, data);
28536 if (child._baseState.key === null) return reporter.error('Child should have a key');
28537 var prevKey = reporter.enterKey(child._baseState.key);
28538 … if (_typeof(data) !== 'object') return reporter.error('Child expected, but input is not object');
28540 var res = child._encode(data[child._baseState.key], reporter, data);
28542 reporter.leaveKey(prevKey);
28551 …if (!(state.args && state.args.length === 1)) return reporter.error('Too many args for : ' + state…
28552 if (!Array.isArray(data)) return reporter.error('seqof/setof, but data is not Array');
28557 return this._getUse(state.args[0], data)._encode(item, reporter);
28560 result = this._getUse(state.use, parent)._encode(data, reporter);
28573 if (state.use === null) reporter.error('Tag could be omitted only for .use()');
28584 Node.prototype._encodeChoice = function encodeChoice(data, reporter) {
28592 return node._encode(data.value, reporter);
29374 DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) {
29379 … === undefined) state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join();
29390 function encodeTag(tag, primitive, cls, reporter) {
29393 …if (typeof tag === 'number' && (tag | 0) === tag) res = tag;else return reporter.error('Unknown ta…
29394 if (res >= 0x1f) return reporter.error('Multi-octet tag encoding unsupported');