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,286,200
5aeedffd56cbcebb5f303ab53751b1e7
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=138-143/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
interpolate
function
// TODO do not allow arrays here function interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string { return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x) }
1,286,201
cf85ad8a45b1df154dd1047548aba362
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=145-147/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
stringify
function
function stringify(x: unknown): Code { return new _Code(safeStringify(x)) }
1,286,202
cd5c08ac17e7f18dbf27ae61487412e3
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=149-153/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
safeStringify
function
function safeStringify(x: unknown): string { return JSON.stringify(x) .replace(/\u2028/g, "\\u2028") .replace(/\u2029/g, "\\u2029") }
1,286,203
57b9fa75de5f7fa1f2a3732f62b81f87
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=106-119/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
optimize
function
function optimize(expr: CodeItem[]): void { let i = 1 while (i < expr.length - 1) { if (expr[i] === plus) { const res = mergeExprItems(expr[i - 1], expr[i + 1]) if (res !== undefined) { expr.splice(i - 1, 3, res) continue } expr[i++] = "+" } i++ } }
1,286,204
43a31d2ee7fe97d1225407be9a769e46
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=160-165/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
getEsmExportName
function
function getEsmExportName(key: Code | string | number): Code { if (typeof key == "string" && IDENTIFIER.test(key)) { return new _Code(`${key}`) } throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`) }
1,286,205
4b2ec66d8e88fa7aaf9ccead85f80ed2
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=13-17/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
Name::constructor
function
constructor(s: string) { super() if (!IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier") this.str = s }
1,286,206
b2b1894f8f04b2814b28e3541a420e2b
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-25/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
Name::emptyStr
function
emptyStr(): boolean { return false }
1,286,207
1044638cf70f4bf83b601519cd654e8b
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=37-40/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
_Code::constructor
function
constructor(code: string | readonly CodeItem[]) { super() this._items = typeof code === "string" ? [code] : code }
1,286,208
c903114ff02d859a833fc77e1899abd9
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=42-44/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
_Code::toString
function
toString(): string { return this.str }
1,286,209
c903114ff02d859a833fc77e1899abd9
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-21/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
Name::toString
function
toString(): string { return this.str }
1,286,210
eb6a69b803c33aa67e10413000d4c413
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-50/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
_Code::emptyStr
function
emptyStr(): boolean { if (this._items.length > 1) return false const item = this._items[0] return item === "" || item === '""' }
1,286,211
b1bdd7de1cb3d08f5350a00b8e92e661
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-54/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
_Code::str
function
get str(): string { return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, "")) }
1,286,212
28effe44edf1e2f0b0e48414619f08be
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=56-61/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
_Code::names
function
get names(): UsedNames { return (this._names ??= this._items.reduce((names: UsedNames, c) => { if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1 return names }, {})) }
1,286,213
58e031de39f99056958a77551c6fa91e
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-98/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
str
function
function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code { const expr: CodeItem[] = [safeStringify(strs[0])] let i = 0 while (i < args.length) { expr.push(plus) addCodeArg(expr, args[i]) expr.push(plus, safeStringify(strs[++i])) } optimize(expr) return new _Code(expr) }
1,286,214
a05bb0917875e6e50559da811abc973b
swh:1:cnt:9d4de6149f9451273ae7e3ca547cb69baed7877c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=134-136/
eb3fb702ccfb08801fc26b6f3b684bcad228f1a0
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/code.ts
strConcat
function
function strConcat(c1: Code, c2: Code): Code { return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}` }
1,286,215
8bb322d03191da96fabf16361bb451c8
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=224-275/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
If
type
class If extends BlockNode { static readonly kind = "if" else?: If | Else constructor( private condition: Code | boolean, nodes?: ChildNode[] ) { super(nodes) } render(opts: CGOptions): string { let code = `if(${this.condition})` + super.render(opts) if (this.else) code += "else " + thi...
1,286,216
295603f6f78aab3bbc286a09bd01b469
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=372-407/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Try
type
class Try extends BlockNode { catch?: Catch finally?: Finally render(opts: CGOptions): string { 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(): this { super.optimizeNo...
1,286,217
706b2ad822e306a623413e1919f29f2c
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=409-418/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Catch
type
class Catch extends BlockNode { static readonly kind = "catch" constructor(readonly error: Name) { super() } render(opts: CGOptions): string { return `catch(${this.error})` + super.render(opts) } }
1,286,218
f97fe14eee71a9cb292925bf7c9a9baa
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=364-370/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Return
type
class Return extends ParentNode { static readonly kind = "return" render(opts: CGOptions): string { return "return " + super.render(opts) } }
1,286,219
5f0d46b801f16217a1c08b95d7d8ee34
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=220-222/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Else
type
class Else extends BlockNode { static readonly kind = "else" }
1,286,220
89aa89983af50baed79a88b6b8880d8d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=433-440/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
EndBlockNodeType
type
type EndBlockNodeType = | typeof If | typeof Else | typeof For | typeof Func | typeof Return | typeof Catch | typeof Finally
1,286,221
d52f835fcdf673b08fc6b85f3dcae89d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=9-9/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
SafeExpr
type
type SafeExpr = Code | number | boolean | null
1,286,222
794e1af35f767f48d1aaef062615a906
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-12/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Block
type
type Block = Code | (() => void)
1,286,223
78b0517cb4b884b3d512add3cd733d5d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-107/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
AssignOp
type
class AssignOp extends Assign { constructor( lhs: Code, private readonly op: Code, rhs: SafeExpr, sideEffects?: boolean ) { super(lhs, rhs, sideEffects) } render({_n}: CGOptions): string { return `${this.lhs} ${this.op}= ${this.rhs};` + _n } }
1,286,224
6bcb7fb3fbf3c2e3ffb99824f3c7d17f
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=146-167/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
AnyCode
type
class AnyCode extends Node { constructor(private code: SafeExpr) { super() } render({_n}: CGOptions): string { return `${this.code};` + _n } optimizeNodes(): this | undefined { return `${this.code}` ? this : undefined } optimizeNames(names: UsedNames, constants: Constants): this { this....
1,286,225
9fbc2ef5a9295b8ec30508dc2a9b9f94
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=323-346/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForIter
type
class ForIter extends For { constructor( private readonly loop: "of" | "in", private readonly varKind: Name, private readonly name: Name, private iterable: Code ) { super() } render(opts: CGOptions): string { return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + sup...
1,286,226
36de7711e2d67726e4da56881dbff1e7
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=427-427/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
StartBlockNode
type
type StartBlockNode = If | For | Func | Return | Try
1,286,227
33fbf9bdb36c52460a17df8dcb204c23
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=429-429/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
LeafNode
type
type LeafNode = Def | Assign | Label | Break | Throw | AnyCode
1,286,228
cb6893b03546be3335ee68df15c81386
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=431-431/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ChildNode
type
type ChildNode = StartBlockNode | LeafNode
1,286,229
0fa2d3576d0d8880c984befd2adf9418
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=444-448/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGenOptions
type
interface CodeGenOptions { es5?: boolean lines?: boolean ownProperties?: boolean }
1,286,230
1f2d827519e77b11816568ee055ff45b
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=450-452/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CGOptions
type
interface CGOptions extends CodeGenOptions { _n: "\n" | "" }
1,286,231
f40ae327c1789a3823552cf993786c52
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=454-780/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen
type
class CodeGen { readonly _scope: Scope readonly _extScope: ValueScope readonly _values: ScopeValueSets = {} private readonly _nodes: ParentNode[] private readonly _blockStarts: number[] = [] private readonly _constants: Constants = {} private readonly opts: CGOptions constructor(extScope: ValueScope, o...
1,286,232
b4448d1a3f23a14a8eeb3a5725e51d9d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=43-67/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Def
type
class Def extends Node { constructor( private readonly varKind: Name, private readonly name: Name, private rhs?: SafeExpr ) { super() } render({es5, _n}: CGOptions): string { const varKind = es5 ? varKinds.var : this.varKind const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}` ...
1,286,233
3d2ef229855e0fc67ccdcf04e3b65eae
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=120-130/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Break
type
class Break extends Node { readonly names: UsedNames = {} constructor(readonly label?: Code) { super() } render({_n}: CGOptions): string { const label = this.label ? ` ${this.label}` : "" return `break${label};` + _n } }
1,286,234
1069fa68f3b4355ffad7d3a6cd56ab08
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=132-144/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Throw
type
class Throw extends Node { constructor(readonly error: Code) { super() } render({_n}: CGOptions): string { return `throw ${this.error};` + _n } get names(): UsedNames { return this.error.names } }
1,286,235
17a59c6298815ffabc230b0237dd154c
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=218-218/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Root
type
class Root extends ParentNode {}
1,286,236
d6e10ac315d9fd633fe12f4b274ece01
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=420-425/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Finally
type
class Finally extends BlockNode { static readonly kind = "finally" render(opts: CGOptions): string { return "finally" + super.render(opts) } }
1,286,237
282fd0b2315a0643c07c822f97e4c06e
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=442-442/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Constants
type
type Constants = Record<string, SafeExpr | undefined>
1,286,238
d0f894cf9be91c5bc657aa978a9e5744
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=69-92/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Assign
type
class Assign extends Node { constructor( readonly lhs: Code, public rhs: SafeExpr, private readonly sideEffects?: boolean ) { super() } render({_n}: CGOptions): string { return `${this.lhs} = ${this.rhs};` + _n } optimizeNames(names: UsedNames, constants: Constants): this | undefined {...
1,286,239
412735252829f6d328322638d09d54f2
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=109-118/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Label
type
class Label extends Node { readonly names: UsedNames = {} constructor(readonly label: Name) { super() } render({_n}: CGOptions): string { return `${this.label}:` + _n } }
1,286,240
cf94a00af2c8fc5f42de911d3375db22
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=281-299/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForLoop
type
class ForLoop extends For { constructor(private iteration: Code) { super() } render(opts: CGOptions): string { return `for(${this.iteration})` + super.render(opts) } optimizeNames(names: UsedNames, constants: Constants): this | undefined { if (!super.optimizeNames(names, constants)) return t...
1,286,241
cbfc2961f624acb238faeeafd8c8530e
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=301-321/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForRange
type
class ForRange extends For { constructor( private readonly varKind: Name, private readonly name: Name, private readonly from: SafeExpr, private readonly to: SafeExpr ) { super() } render(opts: CGOptions): string { const varKind = opts.es5 ? varKinds.var : this.varKind const {name, f...
1,286,242
998e5004fb706ead71952ed81f06d6f4
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=348-362/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Func
type
class Func extends BlockNode { static readonly kind = "func" constructor( public name: Name, public args: Code, public async?: boolean ) { super() } render(opts: CGOptions): string { const _async = this.async ? "async " : "" return `${_async}function ${this.name}(${this.args})` + supe...
1,286,243
aea44dd49f4b1067b500220bff49350d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=844-844/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
MAppend
type
type MAppend = (x: Code, y: Code) => Code
1,286,244
6df0f1fdbe44ebd0593cbd1678e05c6b
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=137-139/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Throw::render
function
render({_n}: CGOptions): string { return `throw ${this.error};` + _n }
1,286,245
a32091a981d3f250723cbfdda57bcd74
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=159-162/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
AnyCode::optimizeNames
function
optimizeNames(names: UsedNames, constants: Constants): this { this.code = optimizeExpr(this.code, names, constants) return this }
1,286,246
bc670a9c57e46db1f54206d82cda7265
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=528-531/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::var
function
// `var` declaration with optional assignment var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { return this._def(varKinds.var, nameOrPrefix, rhs, _constant) }
1,286,247
7690eedd9a90a61913716f04f7eee0f2
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=324-331/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForIter::constructor
function
constructor( private readonly loop: "of" | "in", private readonly varKind: Name, private readonly name: Name, private iterable: Code ) { super() }
1,286,248
a4e31665dc73fa93ef2c64c065ab742a
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=584-587/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::else
function
// `else` clause - only valid after `if` or `else if` clauses else(): CodeGen { return this._elseNode(new Else()) }
1,286,249
fc0922ebe24fe30226db8517b60672f9
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=589-592/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::endIf
function
// end `if` statement (needed if gen.if was used only with condition) endIf(): CodeGen { return this._endBlockNode(If, Else) }
1,286,250
bae237a504c35941e938aa4909bd2139
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=422-424/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Finally::render
function
render(opts: CGOptions): string { return "finally" + super.render(opts) }
1,286,251
71c3553925dcfb37e182bc7f6ebfcc55
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=533-536/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::assign
function
// assignment code assign(lhs: Code, rhs: SafeExpr, sideEffects?: boolean): CodeGen { return this._leafNode(new Assign(lhs, rhs, sideEffects)) }
1,286,252
29526a1ae4971aa0533c7076bbaa081e
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=635-648/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::forIn
function
// `for-in` statement. // With option `ownProperties` replaced with a `for-of` loop for object keys forIn( nameOrPrefix: Name | string, obj: Code, forBody: (item: Name) => void, varKind: Code = this.opts.es5 ? varKinds.var : varKinds.const ): CodeGen { if (this.opts.ownProperties) { retu...
1,286,253
48ff9d564e98c0ded4349b876b2ee779
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=650-653/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::endFor
function
// end `for` loop endFor(): CodeGen { return this._endBlockNode(For) }
1,286,254
a3c46d223f89d7abcf4dea186f1826e4
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=565-577/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::if
function
// `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed) if(condition: Code | boolean, thenBody?: Block, elseBody?: Block): CodeGen { this._blockNode(new If(condition)) if (thenBody && elseBody) { this.code(thenBody).else().code(elseBody).endIf() } else if (thenBody) { ...
1,286,255
198d3d893e9bfb881988a68b54dc0f66
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=82-86/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Assign::optimizeNames
function
optimizeNames(names: UsedNames, constants: Constants): this | undefined { if (this.lhs instanceof Name && !names[this.lhs.str] && !this.sideEffects) return this.rhs = optimizeExpr(this.rhs, names, constants) return this }
1,286,256
e0084246fccce0d19726c92ffac73d32
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=550-563/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::object
function
// returns code for object literal for the passed argument list of key-value pairs object(...keyValues: [Name | string, SafeExpr | string][]): _Code { const code: CodeItem[] = ["{"] for (const [key, value] of keyValues) { if (code.length > 1) code.push(",") code.push(key) if (key !== value |...
1,286,257
a2da57f6c054811351baca9152505395
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=655-658/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::label
function
// `label` statement label(label: Name): CodeGen { return this._leafNode(new Label(label)) }
1,286,258
183b1b340ed4c31b1b55e8b64169fd66
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=735-738/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::_leafNode
function
private _leafNode(node: LeafNode): CodeGen { this._currNode.nodes.push(node) return this }
1,286,259
575e1438825c134c15e3ae96b6cc195a
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=479-482/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::scopeName
function
// reserves unique name in the external scope scopeName(prefix: string): ValueScopeName { return this._extScope.name(prefix) }
1,286,260
c167808cc2c4c34b50ca8f49e9dbf3ed
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=415-417/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Catch::render
function
render(opts: CGOptions): string { return `catch(${this.error})` + super.render(opts) }
1,286,261
867d55b34ace2857e958b2df533cc2cc
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-80/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Assign::render
function
render({_n}: CGOptions): string { return `${this.lhs} = ${this.rhs};` + _n }
1,286,262
879c6bf6d96f806ed8f46fc4412a23a3
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=203-205/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
names
function
get names(): UsedNames { return this.nodes.reduce((names: UsedNames, n) => addNames(names, n.names), {}) }
1,286,263
1c19bf1af3bb706228202e7b36b6be81
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=617-633/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::forOf
function
// `for-of` statement (in es5 mode replace with a normal for loop) forOf( nameOrPrefix: Name | string, iterable: Code, forBody: (item: Name) => void, varKind: Code = varKinds.const ): CodeGen { const name = this._scope.toName(nameOrPrefix) if (this.opts.es5) { const arr = iterable inst...
1,286,264
8b687c43ae4ec1b9f1de775ae6a58ab2
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=502-504/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::scopeCode
function
scopeCode(): Code { return this._extScope.scopeCode(this._values) }
1,286,265
013eaa4a308422efbb22eb572b2beeef
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=506-516/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::_def
function
private _def( varKind: Name, nameOrPrefix: Name | string, rhs?: SafeExpr, constant?: boolean ): Name { const name = this._scope.toName(nameOrPrefix) if (rhs !== undefined && constant) this._constants[name.str] = rhs this._leafNode(new Def(varKind, name, rhs)) return name }
1,286,266
bdca35032c30ff3f37f42bfbcaedbc05
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-117/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Label::render
function
render({_n}: CGOptions): string { return `${this.label}:` + _n }
1,286,267
1544be1b9dd2e53a26dcf473b5831b9b
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=104-106/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
AssignOp::render
function
render({_n}: CGOptions): string { return `${this.lhs} ${this.op}= ${this.rhs};` + _n }
1,286,268
6483e0a0123d5488b3437cff021e9b7b
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=397-402/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Try::names
function
get names(): UsedNames { const names = super.names if (this.catch) addNames(names, this.catch.names) if (this.finally) addNames(names, this.finally.names) return names }
1,286,269
c8e6ca07b682e8c0625ddcd849069599
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=660-663/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::break
function
// `break` statement break(label?: Code): CodeGen { return this._leafNode(new Break(label)) }
1,286,270
13fc2f6767d7f3a358328256dbf3e1b1
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=697-702/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::block
function
// start self-balancing block block(body?: Block, nodeCount?: number): CodeGen { this._blockStarts.push(this._nodes.length) if (body) this.code(body).endBlock(nodeCount) return this }
1,286,271
cdfc4f734e7315d835d0121b5dd8a9f2
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=763-765/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::_root
function
private get _root(): Root { return this._nodes[0] as Root }
1,286,272
9dab3f3ecfed67afea413d9a242bf7be
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=792-819/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
optimizeExpr
function
function optimizeExpr(expr: SafeExpr, names: UsedNames, constants: Constants): SafeExpr { if (expr instanceof Name) return replaceName(expr) if (!canOptimize(expr)) return expr return new _Code( expr._items.reduce((items: CodeItem[], c: SafeExpr | string) => { if (c instanceof Name) c = replaceName(c) ...
1,286,273
9d9f66d184150d0cb5ed2219f2ac143d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=840-842/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
or
function
function or(...args: Code[]): Code { return args.reduce(orCode) }
1,286,274
2a95e9060123192ad2bcf960d47ce755
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=846-848/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
mappend
function
function mappend(op: Code): MAppend { return (x, y) => (x === nil ? y : y === nil ? x : _`${par(x)} ${op} ${par(y)}`) }
1,286,275
790cc1ac2f217e2990df302cb5de7dbe
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=178-188/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
optimizeNodes
function
optimizeNodes(): this | ChildNode | ChildNode[] | undefined { 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.splice(i, 1) } return nodes.length > 0 ?...
1,286,276
60af5465a69b9a19da58a33746c5ddf7
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=147-149/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
AnyCode::constructor
function
constructor(private code: SafeExpr) { super() }
1,286,277
dd8e72cc8c1b3aec417e22685c62ab97
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=350-356/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Func::constructor
function
constructor( public name: Name, public args: Code, public async?: boolean ) { super() }
1,286,278
4aeca3752eb96b948d47a56c12376640
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=376-381/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Try::render
function
render(opts: CGOptions): string { 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,286,279
b17f8c0e0e81a148cd4c95cf687ad5d2
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=594-598/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::_for
function
private _for(node: For, forBody?: Block): CodeGen { this._blockNode(node) if (forBody) this.code(forBody).endFor() return this }
1,286,280
b5bd89efb1f26be83a2d547a862532a6
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=821-823/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
subtractNames
function
function subtractNames(names: UsedNames, from: UsedNames): void { for (const n in from) names[n] = (names[n] || 0) - (from[n] || 0) }
1,286,281
db6cd060bc25fdc6251ac67edaa0527d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=52-56/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Def::render
function
render({es5, _n}: CGOptions): string { const varKind = es5 ? varKinds.var : this.varKind const rhs = this.rhs === undefined ? "" : ` = ${this.rhs}` return `${varKind} ${this.name}${rhs};` + _n }
1,286,282
e614ad230a82624daa28b5a8662a330e
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=111-113/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Label::constructor
function
constructor(readonly label: Name) { super() }
1,286,283
0e8b93132c61ae54f25a80b8778dc538
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=190-201/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
optimizeNames
function
optimizeNames(names: UsedNames, constants: Constants): this | undefined { const {nodes} = this let i = nodes.length while (i--) { // iterating backwards improves 1-pass optimization const n = nodes[i] if (n.optimizeNames(names, constants)) continue subtractNames(names, n.names) ...
1,286,284
b8d08fbf70c30cb55e2da703912ea45b
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=411-413/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Catch::constructor
function
constructor(readonly error: Name) { super() }
1,286,285
577ed0ec161407ac65264fbaf04b61dd
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=518-521/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::const
function
// `const` declaration (`var` in es5 mode) const(nameOrPrefix: Name | string, rhs: SafeExpr, _constant?: boolean): Name { return this._def(varKinds.const, nameOrPrefix, rhs, _constant) }
1,286,286
d22b4da60d8f03e0d4500d2ade05d30b
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=484-490/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::scopeValue
function
// reserves unique name in the external scope and assigns value to it scopeValue(prefixOrName: ValueScopeName | string, value: NameValue): Name { const name = this._extScope.value(prefixOrName, value) const vs = this._values[name.prefix] || (this._values[name.prefix] = new Set()) vs.add(name) return n...
1,286,287
5753c940e99c9027737a99e283c6d3ab
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=337-341/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForIter::optimizeNames
function
optimizeNames(names: UsedNames, constants: Constants): this | undefined { if (!super.optimizeNames(names, constants)) return this.iterable = optimizeExpr(this.iterable, names, constants) return this }
1,286,288
f471fc7d1fb2d9a44db2981f8fbf5a1f
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=133-135/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Throw::constructor
function
constructor(readonly error: Code) { super() }
1,286,289
fef69deca4c666bb36b0222add9b614c
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=240-256/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
If::optimizeNodes
function
optimizeNodes(): If | ChildNode[] | undefined { 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 as Else | undefine...
1,286,290
ad82a5bffebea2b241762b068ac1c59b
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=174-176/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
render
function
render(opts: CGOptions): string { return this.nodes.reduce((code, n) => code + n.render(opts), "") }
1,286,291
ca8b30345a76773e601c544432ee5b88
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=296-298/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForLoop::names
function
get names(): UsedNames { return addNames(super.names, this.iteration.names) }
1,286,292
72e781a6eba7bda02f11ad70b469c908
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=302-309/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForRange::constructor
function
constructor( private readonly varKind: Name, private readonly name: Name, private readonly from: SafeExpr, private readonly to: SafeExpr ) { super() }
1,286,293
54d6880c91385343c17d4c5ac88f9a1e
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=311-315/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
ForRange::render
function
render(opts: CGOptions): string { const varKind = opts.es5 ? varKinds.var : this.varKind const {name, from, to} = this return `for(${varKind} ${name}=${from}; ${name}<${to}; ${name}++)` + super.render(opts) }
1,286,294
8bc73ed17b7be8ac9b99d3263b130d4d
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=492-494/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::getScopeValue
function
getScopeValue(prefix: string, keyOrRef: unknown): ValueScopeName | undefined { return this._extScope.getValue(prefix, keyOrRef) }
1,286,295
ea2468d197d0cbed3348449ca4911d39
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=523-526/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::let
function
// `let` declaration with optional assignment (`var` in es5 mode) let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name { return this._def(varKinds.let, nameOrPrefix, rhs, _constant) }
1,286,296
4bc5a4ac99ad06b4b8be9da16dc114b5
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=390-395/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
Try::optimizeNames
function
optimizeNames(names: UsedNames, constants: Constants): this { super.optimizeNames(names, constants) this.catch?.optimizeNames(names, constants) this.finally?.optimizeNames(names, constants) return this }
1,286,297
3de03de38a8f738ffcf0dd3436c624e4
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=772-775/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
CodeGen::_currNode
function
private set _currNode(node: ParentNode) { const ns = this._nodes ns[ns.length - 1] = node }
1,286,298
aabfb38291ad5fc66f8b9fa34e51d0c5
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=833-835/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
and
function
function and(...args: Code[]): Code { return args.reduce(andCode) }
1,286,299
4aaa4bfab69d668b3f544ce54981e81c
swh:1:cnt:5a6d1ee58c106245ba8a1b56f929fe3a23f337b8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=850-852/
340521a1dacadb2518fc637a668b640cef6e3685
wlbdashboard
wmcs
node_modules/workbox-build/node_modules/ajv/lib/compile/codegen/index.ts
par
function
function par(x: Code): Code { return x instanceof Name ? x : _`(${x})` }