Files
Trilium/src/services/search/parsing_context.js
2020-05-21 13:45:18 +02:00

20 lines
473 B
JavaScript

"use strict";
class ParsingContext {
constructor(includeNoteContent) {
this.includeNoteContent = includeNoteContent;
this.highlightedTokens = [];
this.fuzzyAttributeSearch = false;
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;
}
}
}
module.exports = ParsingContext;