mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 20:19:05 +01:00
24 lines
597 B
TypeScript
24 lines
597 B
TypeScript
"use strict";
|
|
|
|
import NoteSet from "../note_set.js";
|
|
import SearchContext from "../search_context.js";
|
|
import Expression from "./expression.js";
|
|
|
|
class NotExp extends Expression {
|
|
subExpression: Expression;
|
|
|
|
constructor(subExpression: Expression) {
|
|
super();
|
|
|
|
this.subExpression = subExpression;
|
|
}
|
|
|
|
execute(inputNoteSet: NoteSet, executionContext: {}, searchContext: SearchContext) {
|
|
const subNoteSet = this.subExpression.execute(inputNoteSet, executionContext, searchContext);
|
|
|
|
return inputNoteSet.minus(subNoteSet);
|
|
}
|
|
}
|
|
|
|
export default NotExp;
|