mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
20 lines
441 B
JavaScript
20 lines
441 B
JavaScript
"use strict";
|
|
|
|
const Expression = require('./expression');
|
|
|
|
class NotExp extends Expression {
|
|
constructor(subExpression) {
|
|
super();
|
|
|
|
this.subExpression = subExpression;
|
|
}
|
|
|
|
execute(inputNoteSet, executionContext, searchContext) {
|
|
const subNoteSet = this.subExpression.execute(inputNoteSet, executionContext, searchContext);
|
|
|
|
return inputNoteSet.minus(subNoteSet);
|
|
}
|
|
}
|
|
|
|
module.exports = NotExp;
|