MCPcopy
hub / github.com/tdewolff/minify / parseNotOption

Function parseNotOption

_benchmarks/sample_echarts.js:90967–90987  ·  view source on GitHub ↗
(exprOption, getters)

Source from the content-addressed store, hash-verified

90965 }
90966
90967 function parseNotOption(exprOption, getters) {
90968 var subOption = exprOption.not;
90969 var errMsg = '';
90970
90971 if ("development" !== 'production') {
90972 errMsg = makePrintable('"not" condition should only be `not: {}`.', 'Illegal condition:', exprOption);
90973 }
90974
90975 if (!isObjectNotArray(subOption)) {
90976 throwError(errMsg);
90977 }
90978
90979 var cond = new NotConditionInternal();
90980 cond.child = parseOption(subOption, getters);
90981
90982 if (!cond.child) {
90983 throwError(errMsg);
90984 }
90985
90986 return cond;
90987 }
90988
90989 function parseRelationalOption(exprOption, getters) {
90990 var errMsg = '';

Callers 1

parseOptionFunction · 0.85

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…