(
exprOption: LogicalExpressionOption,
getters: ConditionalGetters
)
| 359 | } |
| 360 | |
| 361 | function parseNotOption( |
| 362 | exprOption: LogicalExpressionOption, |
| 363 | getters: ConditionalGetters |
| 364 | ): ParsedConditionInternal { |
| 365 | const subOption = exprOption.not as ConditionalExpressionOption; |
| 366 | let errMsg = ''; |
| 367 | if (__DEV__) { |
| 368 | errMsg = makePrintable( |
| 369 | '"not" condition should only be `not: {}`.', |
| 370 | 'Illegal condition:', exprOption |
| 371 | ); |
| 372 | } |
| 373 | if (!isObjectNotArray(subOption)) { |
| 374 | throwError(errMsg); |
| 375 | } |
| 376 | const cond = new NotConditionInternal(); |
| 377 | cond.child = parseOption(subOption, getters); |
| 378 | if (!cond.child) { |
| 379 | throwError(errMsg); |
| 380 | } |
| 381 | return cond; |
| 382 | } |
| 383 | |
| 384 | function parseRelationalOption( |
| 385 | exprOption: RelationalExpressionOption, |
no test coverage detected
searching dependent graphs…