id int64 0 1.29M | original_id stringlengths 32 32 | swhid stringlengths 100 170 | sha1 stringlengths 40 40 | repo_name stringlengths 2 45 | repo_group stringclasses 12
values | filepath stringlengths 5 153 | name stringlengths 1 14.9k | type stringclasses 3
values | code stringlengths 7 2.12M |
|---|---|---|---|---|---|---|---|---|---|
1,285,400 | c8bbe8800ff5e3da48967b67d966d11f | swh:1:cnt:f9ea5259a70b0e2517885fe9504f8abb9603e7c6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-44/ | 7545415752913c3d8b182942e8ae5120be64ae9c | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/code.js | _Code::str | function | get str() {
var _a;
return ((_a = this._str) !== null && _a !== void 0 ? _a : (this._str = this._items.reduce((s, c) => `${s}${c}`, "")));
} |
1,285,401 | ee74539a9c7a6a4669539b3d5dabc86b | swh:1:cnt:f9ea5259a70b0e2517885fe9504f8abb9603e7c6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=130-132/ | 7545415752913c3d8b182942e8ae5120be64ae9c | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/code.js | stringify | function | function stringify(x) {
return new _Code(safeStringify(x));
} |
1,285,402 | 8020a478634c63d2defc92344c07e907 | swh:1:cnt:f9ea5259a70b0e2517885fe9504f8abb9603e7c6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=120-122/ | 7545415752913c3d8b182942e8ae5120be64ae9c | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/code.js | strConcat | function | function strConcat(c1, c2) {
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;
} |
1,285,403 | 9597f04b892658d668ca2e202eddb11a | swh:1:cnt:f9ea5259a70b0e2517885fe9504f8abb9603e7c6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=152-154/ | 7545415752913c3d8b182942e8ae5120be64ae9c | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/code.js | regexpCode | function | function regexpCode(rx) {
return new _Code(rx.toString());
} |
1,285,404 | eb5cb6ddeea789901d1ac8d8186d950a | swh:1:cnt:d586a4b49f79d65f71598781c6beed3c9ec332e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=6-6/ | 05b28f542c636b337b6de68b223586c29470ac76 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.d.ts | SafeExpr | type | type SafeExpr = Code | number | boolean | null; |
1,285,405 | 04ae35d6d9d15f5874cc47906ea88da3 | swh:1:cnt:d586a4b49f79d65f71598781c6beed3c9ec332e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=7-7/ | 05b28f542c636b337b6de68b223586c29470ac76 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.d.ts | Block | type | type Block = Code | (() => void); |
1,285,406 | d8500f464e3f583bc8625ca47e925d04 | swh:1:cnt:d586a4b49f79d65f71598781c6beed3c9ec332e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=20-24/ | 05b28f542c636b337b6de68b223586c29470ac76 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.d.ts | CodeGenOptions | type | interface CodeGenOptions {
es5?: boolean;
lines?: boolean;
ownProperties?: boolean;
} |
1,285,407 | ba0e92995d6fe73367c6842ae6e37c8e | swh:1:cnt:d586a4b49f79d65f71598781c6beed3c9ec332e4;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=25-76/ | 05b28f542c636b337b6de68b223586c29470ac76 | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.d.ts | CodeGen | type | class CodeGen {
readonly _scope: Scope;
readonly _extScope: ValueScope;
readonly _values: ScopeValueSets;
private readonly _nodes;
private readonly _blockStarts;
private readonly _constants;
private readonly opts;
constructor(extScope: ValueScope, opts?: CodeGenOptions);
toString(): ... |
1,285,408 | 729a0583e2e8f59c2aecd44e7c908b39 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-39/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Node | type | class Node {
optimizeNodes() {
return this;
}
optimizeNames(_names, _constants) {
return this;
}
} |
1,285,409 | 59825931c1ad599774dacc0f6d40d327 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=93-102/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Label | type | class Label extends Node {
constructor(label) {
super();
this.label = label;
this.names = {};
}
render({ _n }) {
return `${this.label}:` + _n;
}
} |
1,285,410 | e6bca6e8f49d424a7206b3178fa0c15d | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-62/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Def | type | class Def extends Node {
constructor(varKind, name, rhs) {
super();
this.varKind = varKind;
this.name = name;
this.rhs = rhs;
}
render({ es5, _n }) {
const varKind = es5 ? scope_1.varKinds.var : this.varKind;
const rhs = this.rhs === undefined ? "" : ` = ${thi... |
1,285,411 | 69e628c3f235bc45ff996e24da2e418f | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=103-113/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Break | type | class Break extends Node {
constructor(label) {
super();
this.label = label;
this.names = {};
}
render({ _n }) {
const label = this.label ? ` ${this.label}` : "";
return `break${label};` + _n;
}
} |
1,285,412 | 0f59d2ce28904efd98fe6e624bbf513c | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=145-183/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ParentNode | type | class ParentNode extends Node {
constructor(nodes = []) {
super();
this.nodes = nodes;
}
render(opts) {
return this.nodes.reduce((code, n) => code + n.render(opts), "");
}
optimizeNodes() {
const { nodes } = this;
let i = nodes.length;
while (i--) {
... |
1,285,413 | d7ec998a19cb644a51b3c3dfdbf9c2db | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=303-314/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Func | type | class Func extends BlockNode {
constructor(name, args, async) {
super();
this.name = name;
this.args = args;
this.async = async;
}
render(opts) {
const _async = this.async ? "async " : "";
return `${_async}function ${this.name}(${this.args})` + super.render(op... |
1,285,414 | e052ac840e37af64c438cc5218e65e99 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=194-241/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | If | type | class If extends BlockNode {
constructor(condition, nodes) {
super(nodes);
this.condition = condition;
}
render(opts) {
let code = `if(${this.condition})` + super.render(opts);
if (this.else)
code += "else " + this.else.render(opts);
return code;
}
... |
1,285,415 | f36b224ddb7dae7a74e48a083404379a | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=322-353/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Try | type | class Try extends BlockNode {
render(opts) {
let code = "try" + super.render(opts);
if (this.catch)
code += this.catch.render(opts);
if (this.finally)
code += this.finally.render(opts);
return code;
}
optimizeNodes() {
var _a, _b;
super... |
1,285,416 | c7e3d4266af83e9e2f952be24f698d6e | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=370-635/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen | type | class CodeGen {
constructor(extScope, opts = {}) {
this._values = {};
this._blockStarts = [];
this._constants = {};
this.opts = { ...opts, _n: opts.lines ? "\n" : "" };
this._extScope = extScope;
this._scope = new scope_1.Scope({ parent: extScope });
this._nod... |
1,285,417 | 293fcb8942c412c9bf8310e51bbd4a5c | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=84-92/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | AssignOp | type | class AssignOp extends Assign {
constructor(lhs, op, rhs, sideEffects) {
super(lhs, rhs, sideEffects);
this.op = op;
}
render({ _n }) {
return `${this.lhs} ${this.op}= ${this.rhs};` + _n;
}
} |
1,285,418 | eea7343a270672d4e8c11dcaf5267cce | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-83/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Assign | type | class Assign extends Node {
constructor(lhs, rhs, sideEffects) {
super();
this.lhs = lhs;
this.rhs = rhs;
this.sideEffects = sideEffects;
}
render({ _n }) {
return `${this.lhs} = ${this.rhs};` + _n;
}
optimizeNames(names, constants) {
if (this.lhs inst... |
1,285,419 | 2c5523fc719c25da768533044e31c8cc | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=191-192/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Else | type | class Else extends BlockNode {
} |
1,285,420 | 26975caa017318932521cada0312506c | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=243-244/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | For | type | class For extends BlockNode {
} |
1,285,421 | 727a2a7e3786d11d62f9e1bde3f3ccd4 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=246-263/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForLoop | type | class ForLoop extends For {
constructor(iteration) {
super();
this.iteration = iteration;
}
render(opts) {
return `for(${this.iteration})` + super.render(opts);
}
optimizeNames(names, constants) {
if (!super.optimizeNames(names, constants))
return;
... |
1,285,422 | efbe779f2f292a5b1f5de86ef9208bc5 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=354-362/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Catch | type | class Catch extends BlockNode {
constructor(error) {
super();
this.error = error;
}
render(opts) {
return `catch(${this.error})` + super.render(opts);
}
} |
1,285,423 | aafafe0dd94452deda942014177ee1c4 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=114-125/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Throw | type | class Throw extends Node {
constructor(error) {
super();
this.error = error;
}
render({ _n }) {
return `throw ${this.error};` + _n;
}
get names() {
return this.error.names;
}
} |
1,285,424 | ddbfc48c5f58ce03eafe4daecd37285e | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=126-144/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | AnyCode | type | class AnyCode extends Node {
constructor(code) {
super();
this.code = code;
}
render({ _n }) {
return `${this.code};` + _n;
}
optimizeNodes() {
return `${this.code}` ? this : undefined;
}
optimizeNames(names, constants) {
this.code = optimizeExpr(this.... |
1,285,425 | 64cdbe3d80b81d1a5345b0e264b3f5d1 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=184-188/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | BlockNode | type | class BlockNode extends ParentNode {
render(opts) {
return "{" + opts._n + super.render(opts) + "}" + opts._n;
}
} |
1,285,426 | 46e382ef9869da9dfb33229b9199a82b | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=264-281/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForRange | type | class ForRange extends For {
constructor(varKind, name, from, to) {
super();
this.varKind = varKind;
this.name = name;
this.from = from;
this.to = to;
}
render(opts) {
const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind;
const { name, from, ... |
1,285,427 | 19196e4281cced8e78d1492fc428b7fe | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=316-320/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Return | type | class Return extends ParentNode {
render(opts) {
return "return " + super.render(opts);
}
} |
1,285,428 | 015ac66c76b916fc801ccc3cffdb6d7e | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=282-302/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForIter | type | class ForIter extends For {
constructor(loop, varKind, name, iterable) {
super();
this.loop = loop;
this.varKind = varKind;
this.name = name;
this.iterable = iterable;
}
render(opts) {
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + ... |
1,285,429 | ea4cbee76ccb7ce08ec101a083970a7c | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=189-190/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Root | type | class Root extends ParentNode {
} |
1,285,430 | 8359ed09dedaab532fc4e5c3149346fc | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=364-368/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Finally | type | class Finally extends BlockNode {
render(opts) {
return "finally" + super.render(opts);
}
} |
1,285,431 | 84b231f4ecd24df4d1d17f45e28d7c96 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=89-91/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | AssignOp::render | function | render({ _n }) {
return `${this.lhs} ${this.op}= ${this.rhs};` + _n;
} |
1,285,432 | c09cca87227ba493dcb9f092a955b118 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=146-149/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ParentNode::constructor | function | constructor(nodes = []) {
super();
this.nodes = nodes;
} |
1,285,433 | 6b2495389466cceaa91341793c27d042 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=359-361/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Catch::render | function | render(opts) {
return `catch(${this.error})` + super.render(opts);
} |
1,285,434 | 243a4de85a54779132872673abd4934b | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=608-615/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::_endBlockNode | function | _endBlockNode(N1, N2) {
const n = this._currNode;
if (n instanceof N1 || (N2 && n instanceof N2)) {
this._nodes.pop();
return this;
}
throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`);
} |
1,285,435 | e9538168ad2a8f695da8d934164d40f5 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=666-669/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | optimizeExpr::canOptimize | function | function canOptimize(e) {
return (e instanceof code_1._Code &&
e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined));
} |
1,285,436 | fb9899cb283adc798ef6b628d4f181ac | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=680-683/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | and | function | // boolean AND (&&) expression with the passed arguments
function and(...args) {
return args.reduce(andCode);
} |
1,285,437 | bb63f01bd3f36e8b69961afb2b14281b | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=391-397/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::scopeValue | function | // reserves unique name in the external scope and assigns value to it
scopeValue(prefixOrName, value) {
const name = this._extScope.value(prefixOrName, value);
const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set());
vs.add(name);
return name;
} |
1,285,438 | e63f47c144380e0314b5942c8ea4200a | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=131-133/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | AnyCode::render | function | render({ _n }) {
return `${this.code};` + _n;
} |
1,285,439 | d37a0e7e7d4d2546dfa3d34bba4c3cf1 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=277-280/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForRange::names | function | get names() {
const names = addExprNames(super.names, this.from);
return addExprNames(names, this.to);
} |
1,285,440 | e0f48741cdd5f7216175e2dd3abad39f | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=383-386/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::name | function | // returns unique name in the internal scope
name(prefix) {
return this._scope.name(prefix);
} |
1,285,441 | 0600ae5ea2323797c73a8e31f0721744 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=436-443/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::code | function | // appends passed SafeExpr to code or executes Block
code(c) {
if (typeof c == "function")
c();
else if (c !== code_1.nil)
this._leafNode(new AnyCode(c));
return this;
} |
1,285,442 | 64502aec3182505271dfbc5aad3667e2 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=631-634/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::_currNode | function | set _currNode(node) {
const ns = this._nodes;
ns[ns.length - 1] = node;
} |
1,285,443 | cced5c9e30d1379cbb99492c019997fa | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=659-665/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | optimizeExpr::replaceName | function | function replaceName(n) {
const c = constants[n.str];
if (c === undefined || names[n.str] !== 1)
return n;
delete names[n.str];
return c;
} |
1,285,444 | a9729e2a1b2aab7f7b558f59731b657c | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=260-262/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForLoop::names | function | get names() {
return addNames(super.names, this.iteration.names);
} |
1,285,445 | ee7f8325db5349710bb0b2953f320e15 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-58/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Def::optimizeNames | function | optimizeNames(names, constants) {
if (!names[this.name.str])
return;
if (this.rhs)
this.rhs = optimizeExpr(this.rhs, names, constants);
return this;
} |
1,285,446 | 827e1e6caf8221d9d7b0373ba54dc83f | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-46/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Def::constructor | function | constructor(varKind, name, rhs) {
super();
this.varKind = varKind;
this.name = name;
this.rhs = rhs;
} |
1,285,447 | a7b10a4997148db1731e004f1c2c0162 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=234-240/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | If::names | function | get names() {
const names = super.names;
addExprNames(names, this.condition);
if (this.else)
addNames(names, this.else.names);
return names;
} |
1,285,448 | 2e06db3d25d23dc082c9e672a37b9aa5 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=345-352/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Try::names | function | get names() {
const names = super.names;
if (this.catch)
addNames(names, this.catch.names);
if (this.finally)
addNames(names, this.finally.names);
return names;
} |
1,285,449 | e43909c5b55c0cbb123bd29bc57ae309 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=199-204/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | If::render | function | render(opts) {
let code = `if(${this.condition})` + super.render(opts);
if (this.else)
code += "else " + this.else.render(opts);
return code;
} |
1,285,450 | f037e3f5895e4c409b656c0f10a9ff4e | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=694-696/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | par | function | function par(x) {
return x instanceof code_1.Name ? x : (0, code_1._) `(${x})`;
} |
1,285,451 | 5197d8246dcc932b87400592ad1f1dbe | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=127-130/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | AnyCode::constructor | function | constructor(code) {
super();
this.code = code;
} |
1,285,452 | 5bd0b14403ba507e0fae32ae7ca63fd7 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=195-198/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | If::constructor | function | constructor(condition, nodes) {
super(nodes);
this.condition = condition;
} |
1,285,453 | f860ae8fe6d800824cbf8a2f97121944 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-78/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Assign::optimizeNames | function | optimizeNames(names, constants) {
if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects)
return;
this.rhs = optimizeExpr(this.rhs, names, constants);
return this;
} |
1,285,454 | 2cc32af8f1c546bbd4cfdc0793078413 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=134-136/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | AnyCode::optimizeNodes | function | optimizeNodes() {
return `${this.code}` ? this : undefined;
} |
1,285,455 | 3fd6f1e26b5bc9efd472fd79c4fdb901 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=355-358/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Catch::constructor | function | constructor(error) {
super();
this.error = error;
} |
1,285,456 | d4df41bc41f2171427695129509bc54d | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=428-431/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::assign | function | // assignment code
assign(lhs, rhs, sideEffects) {
return this._leafNode(new Assign(lhs, rhs, sideEffects));
} |
1,285,457 | a2535e17896bd76f7885669d80b09c5f | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=485-490/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::_for | function | _for(node, forBody) {
this._blockNode(node);
if (forBody)
this.code(forBody).endFor();
return this;
} |
1,285,458 | aab89d3ad91e4c4c920a478d7c7e5f96 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=525-528/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::label | function | // `label` statement
label(label) {
return this._leafNode(new Label(label));
} |
1,285,459 | a0a46ebf5ab2a0108fe0ab5d2c91cf2f | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=564-570/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::block | function | // start self-balancing block
block(body, nodeCount) {
this._blockStarts.push(this._nodes.length);
if (body)
this.code(body).endBlock(nodeCount);
return this;
} |
1,285,460 | 71d03d4c7b4aac3a82552e3d3da19e72 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=686-689/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | or | function | // boolean OR (||) expression with the passed arguments
function or(...args) {
return args.reduce(orCode);
} |
1,285,461 | e1dd2a8ff1a41d0215c6e7840ab5ced4 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=36-38/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Node::optimizeNames | function | optimizeNames(_names, _constants) {
return this;
} |
1,285,462 | 39888cafde772af68c44f3c31423f378 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=304-309/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Func::constructor | function | constructor(name, args, async) {
super();
this.name = name;
this.args = args;
this.async = async;
} |
1,285,463 | 5b93064aad265e374262f949f19583b8 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=432-435/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::add | function | // `+=` code
add(lhs, rhs) {
return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
} |
1,285,464 | 5f43947615cb17833a11e2963bc2e898 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=481-484/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::endIf | function | // end `if` statement (needed if gen.if was used only with condition)
endIf() {
return this._endBlockNode(If, Else);
} |
1,285,465 | a0bf5c66a8847b3c7676a136842b06dc | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=398-400/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::getScopeValue | function | getScopeValue(prefix, keyOrRef) {
return this._extScope.getValue(prefix, keyOrRef);
} |
1,285,466 | 9ef2cce20544ce20efcfd6ecb47a36c1 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=477-480/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::else | function | // `else` clause - only valid after `if` or `else if` clauses
else() {
return this._elseNode(new Else());
} |
1,285,467 | 6fa4ed4453c89843717baa5b4aa3ea58 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=495-499/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::forRange | function | // `for` statement for a range of values
forRange(nameOrPrefix, from, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) {
const name = this._scope.toName(nameOrPrefix);
return this._for(new ForRange(varKind, name, from, to), () => forBody(name));
} |
1,285,468 | c422c79fbd3bcb8476a564faf72c5c04 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=500-511/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::forOf | function | // `for-of` statement (in es5 mode replace with a normal for loop)
forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) {
const name = this._scope.toName(nameOrPrefix);
if (this.opts.es5) {
const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iter... |
1,285,469 | 3e2ed903a4cb7eaccb3c844dd513ee01 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=571-582/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::endBlock | function | // end the current self-balancing block
endBlock(nodeCount) {
const len = this._blockStarts.pop();
if (len === undefined)
throw new Error("CodeGen: not in self-balancing block");
const toClose = this._nodes.length - len;
if (toClose < 0 || (nodeCount !== undefined && toCl... |
1,285,470 | df809717a9f2b25ad36af4957c7d3295 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=671-674/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | subtractNames | function | function subtractNames(names, from) {
for (const n in from)
names[n] = (names[n] || 0) - (from[n] || 0);
} |
1,285,471 | 8eed692aa9941294e06d3a55670b8299 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=416-419/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::const | function | // `const` declaration (`var` in es5 mode)
const(nameOrPrefix, rhs, _constant) {
return this._def(scope_1.varKinds.const, nameOrPrefix, rhs, _constant);
} |
1,285,472 | f0df2d1831ef97ed4b3f86dfce5af111 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=59-61/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Def::names | function | get names() {
return this.rhs instanceof code_1._CodeOrName ? this.rhs.names : {};
} |
1,285,473 | 3fd6f1e26b5bc9efd472fd79c4fdb901 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-118/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Throw::constructor | function | constructor(error) {
super();
this.error = error;
} |
1,285,474 | 29176d69902c87ddd38d10d1cab2e491 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=247-250/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForLoop::constructor | function | constructor(iteration) {
super();
this.iteration = iteration;
} |
1,285,475 | 80f202e06cc07604cdd9dd3a9c54af95 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=251-253/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForLoop::render | function | render(opts) {
return `for(${this.iteration})` + super.render(opts);
} |
1,285,476 | 17ea6f2decea0856c8bde2a30d4593a7 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=473-476/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::elseIf | function | // `else if` clause - invalid without `if` or after `else` clauses
elseIf(condition) {
return this._elseNode(new If(condition));
} |
1,285,477 | a5f5234af8b07a1f7c367c9d0bd4eea0 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=512-520/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::forIn | function | // `for-in` statement.
// 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, (0, code_1._) `Objec... |
1,285,478 | 9757b6028327b16f5fe8eb6d90db43c6 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=583-589/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::func | function | // `function` heading (or definition if funcBody is passed)
func(name, args = code_1.nil, async, funcBody) {
this._blockNode(new Func(name, args, async));
if (funcBody)
this.code(funcBody).endFunc();
return this;
} |
1,285,479 | 96f2468feae7155a7d945979a6ade21d | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=371-379/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::constructor | function | constructor(extScope, opts = {}) {
this._values = {};
this._blockStarts = [];
this._constants = {};
this.opts = { ...opts, _n: opts.lines ? "\n" : "" };
this._extScope = extScope;
this._scope = new scope_1.Scope({ parent: extScope });
this._nodes = [new Root()];
... |
1,285,480 | ae3c84fb5a1559c5a7ef5faa7e2563da | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=293-298/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ForIter::optimizeNames | function | optimizeNames(names, constants) {
if (!super.optimizeNames(names, constants))
return;
this.iterable = optimizeExpr(this.iterable, names, constants);
return this;
} |
1,285,481 | 34e84162bd0578823d1cdb01700e7d5b | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=323-330/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Try::render | function | render(opts) {
let code = "try" + super.render(opts);
if (this.catch)
code += this.catch.render(opts);
if (this.finally)
code += this.finally.render(opts);
return code;
} |
1,285,482 | 2edc5bf6035ec113e14c0f75bd30f849 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=380-382/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::toString | function | toString() {
return this._root.render(this.opts);
} |
1,285,483 | a05d17f2ef7e48fc5b7921b0406c7d73 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=47-51/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Def::render | function | render({ es5, _n }) {
const varKind = es5 ? scope_1.varKinds.var : this.varKind;
const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}`;
return `${varKind} ${this.name}${rhs};` + _n;
} |
1,285,484 | cc9fef0bbd9004fff79c71782d52e426 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=79-82/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Assign::names | function | get names() {
const names = this.lhs instanceof code_1.Name ? {} : { ...this.lhs.names };
return addExprNames(names, this.rhs);
} |
1,285,485 | e14c9464232d47db6874018b03f12c55 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=205-225/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | If::optimizeNodes | function | optimizeNodes() {
super.optimizeNodes();
const cond = this.condition;
if (cond === true)
return this.nodes; // else is ignored here
let e = this.else;
if (e) {
const ns = e.optimizeNodes();
e = this.else = Array.isArray(ns) ? new Else(ns) : ns;... |
1,285,486 | c89f641ec21d177ec6d5ff91ce886cfa | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=406-408/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::scopeCode | function | scopeCode() {
return this._extScope.scopeCode(this._values);
} |
1,285,487 | fd47c4883b9823b0b230c9562c79d7a6 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=642-644/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | addExprNames | function | function addExprNames(names, from) {
return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;
} |
1,285,488 | 9d4e555492969f107b537de87e3552f6 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=153-166/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ParentNode::optimizeNodes | function | optimizeNodes() {
const { nodes } = this;
let i = nodes.length;
while (i--) {
const n = nodes[i].optimizeNodes();
if (Array.isArray(n))
nodes.splice(i, 1, ...n);
else if (n)
nodes[i] = n;
else
nodes.s... |
1,285,489 | 4664ca5c6e27ca7a3ecee14627ad1fe9 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=180-182/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | ParentNode::names | function | get names() {
return this.nodes.reduce((names, n) => addNames(names, n.names), {});
} |
1,285,490 | afe53aaf8d22bf282622ad7af3965ddb | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=401-405/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::scopeRefs | function | // return code that assigns values in the external scope to the names that are used internally
// (same names that were returned by gen.scopeName or gen.scopeValue)
scopeRefs(scopeName) {
return this._extScope.scopeRefs(scopeName, this._values);
} |
1,285,491 | 5333e24f25eaf3f86ca06659d718a8df | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=590-593/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::endFunc | function | // end function definition
endFunc() {
return this._endBlockNode(Func);
} |
1,285,492 | f88044171afe9a2b915fd06cd8ac53ea | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=600-603/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::_leafNode | function | _leafNode(node) {
this._currNode.nodes.push(node);
return this;
} |
1,285,493 | dceb02d0c5fab7ae51b2d5dab4c1d79e | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=624-626/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::_root | function | get _root() {
return this._nodes[0];
} |
1,285,494 | 5d929d8c825039f7979b8aaec9d1c041 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=645-670/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | optimizeExpr | function | function optimizeExpr(expr, names, constants) {
if (expr instanceof code_1.Name)
return replaceName(expr);
if (!canOptimize(expr))
return expr;
return new code_1._Code(expr._items.reduce((items, c) => {
if (c instanceof code_1.Name)
c = replaceName(c);
if (c insta... |
1,285,495 | 353cf1253503658adfdc416aabc9243d | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=119-121/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Throw::render | function | render({ _n }) {
return `throw ${this.error};` + _n;
} |
1,285,496 | 0e6ce02e728b50a699bb982b0f4927a9 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=185-187/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | BlockNode::render | function | render(opts) {
return "{" + opts._n + super.render(opts) + "}" + opts._n;
} |
1,285,497 | 785aee883a55affc605322b67fa6bc44 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=365-367/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | Finally::render | function | render(opts) {
return "finally" + super.render(opts);
} |
1,285,498 | 8cf39fdc0c3ee8038896ec2dd62a3902 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=560-563/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::throw | function | // `throw` statement
throw(error) {
return this._leafNode(new Throw(error));
} |
1,285,499 | 87ec993805814bfeca0388b5eec17a40 | swh:1:cnt:a6c805af14539cf6180f2536992ce13a8a4d0615;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=594-599/ | 3254b299acfa250342e2bdf0d5cc447af4cf55ab | wlbdashboard | wmcs | node_modules/workbox-build/node_modules/ajv/dist/compile/codegen/index.js | CodeGen::optimize | function | optimize(n = 1) {
while (n-- > 0) {
this._root.optimizeNodes();
this._root.optimizeNames(this._root.names, this._constants);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.