MCPcopy
hub / github.com/apache/echarts / parseNotOption

Function parseNotOption

src/util/conditionalExpression.ts:361–382  ·  view source on GitHub ↗
(
    exprOption: LogicalExpressionOption,
    getters: ConditionalGetters
)

Source from the content-addressed store, hash-verified

359}
360
361function 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
384function parseRelationalOption(
385 exprOption: RelationalExpressionOption,

Callers 1

parseOptionFunction · 0.85

Calls 4

makePrintableFunction · 0.90
throwErrorFunction · 0.90
isObjectNotArrayFunction · 0.85
parseOptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…