"use strict"; class ParsingContext { constructor(params = {}) { this.includeNoteContent = !!params.includeNoteContent; this.fuzzyAttributeSearch = !!params.fuzzyAttributeSearch; this.highlightedTokens = []; this.error = null; } addError(error) { // we record only the first error, subsequent ones are usually consequence of the first if (!this.error) { this.error = error; console.log(this.error); } } } module.exports = ParsingContext;