mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-31 12:12:28 +08:00
16 lines
308 B
JavaScript
16 lines
308 B
JavaScript
![]() |
"use strict";
|
||
|
|
||
|
class NotExp {
|
||
|
constructor(subExpression) {
|
||
|
this.subExpression = subExpression;
|
||
|
}
|
||
|
|
||
|
execute(noteSet, searchContext) {
|
||
|
const subNoteSet = this.subExpression.execute(noteSet, searchContext);
|
||
|
|
||
|
return noteSet.minus(subNoteSet);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = NotExp;
|