X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Ftable%2Fnode_modules%2Fajv%2Fdist%2Fcompile%2Fcodegen%2Fscope.js;h=acc5f76268e2f1236c923ebb89b04bc3f2d43270;hp=91919e8880b49340e7d16e0686840e407aff3b63;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js index 91919e88..acc5f762 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/compile/codegen/scope.js @@ -50,11 +50,11 @@ class ValueScopeName extends code_1.Name { } setValue(value, { property, itemIndex }) { this.value = value; - this.scopePath = code_1._ `.${new code_1.Name(property)}[${itemIndex}]`; + this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`; } } exports.ValueScopeName = ValueScopeName; -const line = code_1._ `\n`; +const line = (0, code_1._) `\n`; class ValueScope extends Scope { constructor(opts) { super(opts); @@ -101,7 +101,7 @@ class ValueScope extends Scope { return this._reduceValues(values, (name) => { if (name.scopePath === undefined) throw new Error(`CodeGen: name "${name}" has no value`); - return code_1._ `${scopeName}${name.scopePath}`; + return (0, code_1._) `${scopeName}${name.scopePath}`; }); } scopeCode(values = this._values, usedValues, getCode) { @@ -125,10 +125,10 @@ class ValueScope extends Scope { let c = valueCode(name); if (c) { const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const; - code = code_1._ `${code}${def} ${name} = ${c};${this.opts._n}`; + code = (0, code_1._) `${code}${def} ${name} = ${c};${this.opts._n}`; } else if ((c = getCode === null || getCode === void 0 ? void 0 : getCode(name))) { - code = code_1._ `${code}${c}${this.opts._n}`; + code = (0, code_1._) `${code}${c}${this.opts._n}`; } else { throw new ValueError(name);