X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Ftable%2Fnode_modules%2Fajv%2Fdist%2Fcompile%2Fcodegen%2Findex.js;h=a6c805af14539cf6180f2536992ce13a8a4d0615;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=d2ff4643de6330ef59795d2c45b2867c5e1b00c7;hpb=3c06164f15bd10aed7d66b6314764a2961a14762;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js index d2ff4643..a6c805af 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/index.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0; +exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0; const code_1 = require("./code"); const scope_1 = require("./scope"); var code_2 = require("./code"); @@ -10,6 +10,7 @@ Object.defineProperty(exports, "strConcat", { enumerable: true, get: function () Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return code_2.nil; } }); Object.defineProperty(exports, "getProperty", { enumerable: true, get: function () { return code_2.getProperty; } }); Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return code_2.stringify; } }); +Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function () { return code_2.regexpCode; } }); Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return code_2.Name; } }); var scope_2 = require("./scope"); Object.defineProperty(exports, "Scope", { enumerable: true, get: function () { return scope_2.Scope; } }); @@ -449,7 +450,7 @@ class CodeGen { code.push(key); if (key !== value || this.opts.es5) { code.push(":"); - code_1.addCodeArg(code, value); + (0, code_1.addCodeArg)(code, value); } } code.push("}"); @@ -501,8 +502,8 @@ class CodeGen { const name = this._scope.toName(nameOrPrefix); if (this.opts.es5) { const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable); - return this.forRange("_i", 0, code_1._ `${arr}.length`, (i) => { - this.var(name, code_1._ `${arr}[${i}]`); + return this.forRange("_i", 0, (0, code_1._) `${arr}.length`, (i) => { + this.var(name, (0, code_1._) `${arr}[${i}]`); forBody(name); }); } @@ -512,7 +513,7 @@ class CodeGen { // With option `ownProperties` replaced with a `for-of` loop for object keys forIn(nameOrPrefix, obj, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.const) { if (this.opts.ownProperties) { - return this.forOf(nameOrPrefix, code_1._ `Object.keys(${obj})`, forBody); + return this.forOf(nameOrPrefix, (0, code_1._) `Object.keys(${obj})`, forBody); } const name = this._scope.toName(nameOrPrefix); return this._for(new ForIter("in", varKind, name, obj), () => forBody(name)); @@ -672,7 +673,7 @@ function subtractNames(names, from) { names[n] = (names[n] || 0) - (from[n] || 0); } function not(x) { - return typeof x == "boolean" || typeof x == "number" || x === null ? !x : code_1._ `!${par(x)}`; + return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._) `!${par(x)}`; } exports.not = not; const andCode = mappend(exports.operators.AND); @@ -688,9 +689,9 @@ function or(...args) { } exports.or = or; function mappend(op) { - return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : code_1._ `${par(x)} ${op} ${par(y)}`); + return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._) `${par(x)} ${op} ${par(y)}`); } function par(x) { - return x instanceof code_1.Name ? x : code_1._ `(${x})`; + return x instanceof code_1.Name ? x : (0, code_1._) `(${x})`; } //# sourceMappingURL=index.js.map \ No newline at end of file