Files
Trilium/src/services/search/parsing_context.js

20 lines
473 B
JavaScript
Raw Normal View History

2020-05-21 11:46:01 +02:00
"use strict";
class ParsingContext {
constructor(includeNoteContent) {
this.includeNoteContent = includeNoteContent;
this.highlightedTokens = [];
2020-05-21 13:45:18 +02:00
this.fuzzyAttributeSearch = false;
2020-05-21 11:46:01 +02:00
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;