mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
21 lines
536 B
JavaScript
21 lines
536 B
JavaScript
"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;
|