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,283,400 | 80283310e8d7c46171d3f797de42c170 | swh:1:cnt:c8dcacf13568769ffbf176858b0a39f5e5158966;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-110/ | 156cb1719a2d68a8fd40fc58414b6abee99befee | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyInInitialChunkError.js | WebAssemblyInInitialChunkError::constructor | function | /**
* @param {Module} module WASM module
* @param {ModuleGraph} moduleGraph the module graph
* @param {ChunkGraph} chunkGraph the chunk graph
* @param {RequestShortener} requestShortener request shortener
*/
constructor(module, moduleGraph, chunkGraph, requestShortener) {
const moduleChains = getInitialMod... |
1,283,401 | 703161990958f37ca848cea290fe13f6 | swh:1:cnt:0225e5395c366b7021117a0d3cde9927238569e1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-234/ | ef98d505e21146452c35a15bf4b2f5940d4845e8 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyJavascriptGenerator.js | WebAssemblyJavascriptGenerator | type | /** @typedef {import("webpack-sources").Source} Source */
/** @typedef {import("../Generator").GenerateContext} GenerateContext */
/** @typedef {import("../Module")} Module */
/** @typedef {import("../Module").SourceType} SourceType */
/** @typedef {import("../Module").SourceTypes} SourceTypes */
/** @typedef {import("... |
1,283,402 | 82866bc55e1093b06fd94895f8e1a996 | swh:1:cnt:0225e5395c366b7021117a0d3cde9927238569e1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-33/ | ef98d505e21146452c35a15bf4b2f5940d4845e8 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyJavascriptGenerator.js | WebAssemblyJavascriptGenerator::getTypes | function | /**
* @param {NormalModule} module fresh module
* @returns {SourceTypes} available types (do not mutate)
*/
getTypes(module) {
return WEBASSEMBLY_TYPES;
} |
1,283,403 | a5fb8b033b339ae606a96ca44bcf0c68 | swh:1:cnt:0225e5395c366b7021117a0d3cde9927238569e1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=44-223/ | ef98d505e21146452c35a15bf4b2f5940d4845e8 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyJavascriptGenerator.js | WebAssemblyJavascriptGenerator::generate | function | /**
* @param {NormalModule} module module for which the code should be generated
* @param {GenerateContext} generateContext context for generate
* @returns {Source | null} generated code
*/
generate(module, generateContext) {
const {
runtimeTemplate,
moduleGraph,
chunkGraph,
runtimeRequirements,
... |
1,283,404 | f887c9ba41d71f6d2a108297e1a1a737 | swh:1:cnt:0225e5395c366b7021117a0d3cde9927238569e1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-42/ | ef98d505e21146452c35a15bf4b2f5940d4845e8 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyJavascriptGenerator.js | WebAssemblyJavascriptGenerator::getSize | function | /**
* @param {NormalModule} module the module
* @param {SourceType=} type source type
* @returns {number} estimate size of the module
*/
getSize(module, type) {
return 95 + module.dependencies.length * 5;
} |
1,283,405 | 9f938f015e954c8b2be807788392c9d3 | swh:1:cnt:0225e5395c366b7021117a0d3cde9927238569e1;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=225-233/ | ef98d505e21146452c35a15bf4b2f5940d4845e8 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyJavascriptGenerator.js | WebAssemblyJavascriptGenerator::generateError | function | /**
* @param {Error} error the error
* @param {NormalModule} module module for which the code should be generated
* @param {GenerateContext} generateContext context for generate
* @returns {Source | null} generated code
*/
generateError(error, module, generateContext) {
return new RawSource(`throw new Erro... |
1,283,406 | 3fcc9ac221296ac6282c9dbf810502bd | swh:1:cnt:f88750ce244742330e529d34839847d4e75875d2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-149/ | ca6d2133a698372aca625c3930d5a43a16a12f17 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyModulesPlugin.js | WebAssemblyModulesPlugin | type | /**
* @typedef {object} WebAssemblyModulesPluginOptions
* @property {boolean=} mangleImports mangle imports
*/
class WebAssemblyModulesPlugin {
/**
* @param {WebAssemblyModulesPluginOptions} options options
*/
constructor(options) {
this.options = options;
}
/**
* Apply the plugin
* @param {Compiler}... |
1,283,407 | 499bb85fc0dd38745e6c886bc46d4939 | swh:1:cnt:f88750ce244742330e529d34839847d4e75875d2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-44/ | ca6d2133a698372aca625c3930d5a43a16a12f17 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyModulesPlugin.js | WebAssemblyModulesPlugin::constructor | function | /**
* @param {WebAssemblyModulesPluginOptions} options options
*/
constructor(options) {
this.options = options;
} |
1,283,408 | 2ee9dff7a3e6c9e250a75d117056c82e | swh:1:cnt:f88750ce244742330e529d34839847d4e75875d2;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=46-148/ | ca6d2133a698372aca625c3930d5a43a16a12f17 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyModulesPlugin.js | WebAssemblyModulesPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.compilation.tap(
PLUGIN_NAME,
(compilation, { normalModuleFactory }) => {
compilation.dependencyFactories.set(
WebAssemblyImportDependency,
normalModuleFactory
... |
1,283,409 | 7d5bd2d68ef0bbeba879360c6e0bafd6 | swh:1:cnt:768da151009ade7c565b9b02e309847f86fd58e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=65-199/ | c9469d31e515b07b7b2153d2efc119bde405b9d0 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js | WebAssemblyParser | type | class WebAssemblyParser extends Parser {
/**
* @param {string | Buffer | PreparsedAst} source the source to parse
* @param {ParserState} state the parser state
* @returns {ParserState} the parser state
*/
parse(source, state) {
if (!Buffer.isBuffer(source)) {
throw new Error("WebAssemblyParser input must... |
1,283,410 | be0010ce68b0fbde70968ccedae52272 | swh:1:cnt:768da151009ade7c565b9b02e309847f86fd58e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-198/ | c9469d31e515b07b7b2153d2efc119bde405b9d0 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js | WebAssemblyParser::parse | function | /**
* @param {string | Buffer | PreparsedAst} source the source to parse
* @param {ParserState} state the parser state
* @returns {ParserState} the parser state
*/
parse(source, state) {
if (!Buffer.isBuffer(source)) {
throw new Error("WebAssemblyParser input must be a Buffer");
}
// flag it as ESM
... |
1,283,411 | 78cac5c0a4091e4b2a2c94859b2316f5 | swh:1:cnt:768da151009ade7c565b9b02e309847f86fd58e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=100-138/ | c9469d31e515b07b7b2153d2efc119bde405b9d0 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js | WebAssemblyParser::parse::ModuleExport | function | ModuleExport({ node }) {
const descriptor = node.descr;
if (descriptor.exportType === "Func") {
const funcIdx = descriptor.id.value;
/** @type {t.FuncSignature} */
const funcSignature = moduleContext.getFunction(funcIdx);
const incompatibleType =
getJsIncompatibleTypeOfFuncSignature... |
1,283,412 | 56425bbb8b00c229dbbe7ec61bb7ef2f | swh:1:cnt:768da151009ade7c565b9b02e309847f86fd58e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=140-155/ | c9469d31e515b07b7b2153d2efc119bde405b9d0 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js | WebAssemblyParser::parse::Global | function | Global({ node }) {
const init = node.init[0];
/** @type {ImportNode} */
let importNode = null;
if (init.id === "get_global") {
const globalIdx = init.args[0].value;
if (globalIdx < importedGlobals.length) {
importNode = importedGlobals[globalIdx];
}
}
importedGlobals.pus... |
1,283,413 | 8473f2a32f67f30d577468b226594f15 | swh:1:cnt:768da151009ade7c565b9b02e309847f86fd58e8;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=157-192/ | c9469d31e515b07b7b2153d2efc119bde405b9d0 | wlbdashboard | wmcs | node_modules/webpack/lib/wasm-sync/WebAssemblyParser.js | WebAssemblyParser::parse::ModuleImport | function | ModuleImport({ node }) {
/** @type {false | string} */
let onlyDirectImport = false;
if (t.isMemory(node.descr) === true) {
onlyDirectImport = "Memory";
} else if (t.isTable(node.descr) === true) {
onlyDirectImport = "Table";
} else if (t.isFuncImportDescr(node.descr) === true) {
con... |
1,283,414 | 3dde4663cf4fa068c9590abd79f9b9ef | swh:1:cnt:42a5306e3a6a52ae8f06b0360e84406ec9b0b5d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-91/ | 177ab9de3e126d6fb723ef0ebb943abce88c467e | wlbdashboard | wmcs | node_modules/webpack/lib/web/FetchCompileAsyncWasmPlugin.js | FetchCompileAsyncWasmPlugin | type | class FetchCompileAsyncWasmPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
const globalWasmLoading = compilation.outputOptions.wasmLoading;
/**
* @param {Chu... |
1,283,415 | 86886519d22db4c1f0b07a66215b09e7 | swh:1:cnt:42a5306e3a6a52ae8f06b0360e84406ec9b0b5d6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-90/ | 177ab9de3e126d6fb723ef0ebb943abce88c467e | wlbdashboard | wmcs | node_modules/webpack/lib/web/FetchCompileAsyncWasmPlugin.js | FetchCompileAsyncWasmPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
const globalWasmLoading = compilation.outputOptions.wasmLoading;
/**
* @param {Chunk} chunk chunk
* @returns {boole... |
1,283,416 | 5b4c8b63dbea5a2a16aececdcf335a23 | swh:1:cnt:1e4f08e69518e19c811555a163e31c63980a0af6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=22-84/ | c221159ebcea21575909cc1f76b7f017407b653d | wlbdashboard | wmcs | node_modules/webpack/lib/web/FetchCompileWasmPlugin.js | FetchCompileWasmPlugin | type | class FetchCompileWasmPlugin {
/**
* @param {FetchCompileWasmPluginOptions=} options options
*/
constructor(options = {}) {
/** @type {FetchCompileWasmPluginOptions} */
this.options = options;
}
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(co... |
1,283,417 | 5293aa1ab562fe52ed83fc367a6e8361 | swh:1:cnt:1e4f08e69518e19c811555a163e31c63980a0af6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=23-29/ | c221159ebcea21575909cc1f76b7f017407b653d | wlbdashboard | wmcs | node_modules/webpack/lib/web/FetchCompileWasmPlugin.js | FetchCompileWasmPlugin::constructor | function | /**
* @param {FetchCompileWasmPluginOptions=} options options
*/
constructor(options = {}) {
/** @type {FetchCompileWasmPluginOptions} */
this.options = options;
} |
1,283,418 | 25a55ba8275983a3d6b86f290a8cfd93 | swh:1:cnt:1e4f08e69518e19c811555a163e31c63980a0af6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-83/ | c221159ebcea21575909cc1f76b7f017407b653d | wlbdashboard | wmcs | node_modules/webpack/lib/web/FetchCompileWasmPlugin.js | FetchCompileWasmPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
const globalWasmLoading = compilation.outputOptions.wasmLoading;
/**
* @param {Chunk} chunk chunk
* @returns {boole... |
1,283,419 | 5ed2fa1ae2891feb77a787c3248b61e1 | swh:1:cnt:488fce6cc673584fbf17f9b064a9b06f2d34f958;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-99/ | a44120741fef24aa653f7bcbffe1797ce09a2f74 | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpChunkLoadingPlugin.js | JsonpChunkLoadingPlugin | type | class JsonpChunkLoadingPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
const globalChunkLoading = compilation.outputOptions.chunkLoading;
/**
* @param {Chunk... |
1,283,420 | 58cb43edfd7707ffd1160469ac74fcc9 | swh:1:cnt:488fce6cc673584fbf17f9b064a9b06f2d34f958;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-98/ | a44120741fef24aa653f7bcbffe1797ce09a2f74 | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpChunkLoadingPlugin.js | JsonpChunkLoadingPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
const globalChunkLoading = compilation.outputOptions.chunkLoading;
/**
* @param {Chunk} chunk chunk
* @returns {boo... |
1,283,421 | a600fe0f9b7c40d750da143b335dc6b8 | swh:1:cnt:9e5af0b0f657dd0f374633963020827066c6b4be;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-453/ | 1dc390cd9cab51b29c89d67cb30df922593b3923 | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpChunkLoadingRuntimeModule.js | JsonpChunkLoadingRuntimeModule | type | class JsonpChunkLoadingRuntimeModule extends RuntimeModule {
/**
* @param {Compilation} compilation the compilation
* @returns {JsonpCompilationPluginHooks} hooks
*/
static getCompilationHooks(compilation) {
if (!(compilation instanceof Compilation)) {
throw new TypeError(
"The 'compilation' argument m... |
1,283,422 | 5d34bb741e81b0196a1f04bcdd5e4d11 | swh:1:cnt:9e5af0b0f657dd0f374633963020827066c6b4be;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=33-52/ | 1dc390cd9cab51b29c89d67cb30df922593b3923 | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpChunkLoadingRuntimeModule.js | JsonpChunkLoadingRuntimeModule::getCompilationHooks | function | /**
* @param {Compilation} compilation the compilation
* @returns {JsonpCompilationPluginHooks} hooks
*/
static getCompilationHooks(compilation) {
if (!(compilation instanceof Compilation)) {
throw new TypeError(
"The 'compilation' argument must be an instance of Compilation"
);
}
let hooks = com... |
1,283,423 | e8d99e6e68f6c1a2ac3f2b56f0162c0a | swh:1:cnt:9e5af0b0f657dd0f374633963020827066c6b4be;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-74/ | 1dc390cd9cab51b29c89d67cb30df922593b3923 | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpChunkLoadingRuntimeModule.js | JsonpChunkLoadingRuntimeModule::_generateBaseUri | function | /**
* @private
* @param {Chunk} chunk chunk
* @returns {string} generated code
*/
_generateBaseUri(chunk) {
const options = chunk.getEntryOptions();
if (options && options.baseUri) {
return `${RuntimeGlobals.baseURI} = ${JSON.stringify(options.baseUri)};`;
}
return `${RuntimeGlobals.baseURI} = (type... |
1,283,424 | 21e7fd21dc9b99737393b93c5a273a19 | swh:1:cnt:9e5af0b0f657dd0f374633963020827066c6b4be;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=54-61/ | 1dc390cd9cab51b29c89d67cb30df922593b3923 | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpChunkLoadingRuntimeModule.js | JsonpChunkLoadingRuntimeModule::constructor | function | /**
* @param {ReadOnlyRuntimeRequirements} runtimeRequirements runtime requirements
*/
constructor(runtimeRequirements) {
super("jsonp chunk loading", RuntimeModule.STAGE_ATTACH);
/** @type {ReadOnlyRuntimeRequirements} */
this._runtimeRequirements = runtimeRequirements;
} |
1,283,425 | 3177466f072765fe70d6ccb6b1b38438 | swh:1:cnt:9e5af0b0f657dd0f374633963020827066c6b4be;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=76-452/ | 1dc390cd9cab51b29c89d67cb30df922593b3923 | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpChunkLoadingRuntimeModule.js | JsonpChunkLoadingRuntimeModule::generate | function | /**
* @returns {string | null} runtime code
*/
generate() {
const compilation = /** @type {Compilation} */ (this.compilation);
const {
runtimeTemplate,
outputOptions: {
chunkLoadingGlobal,
hotUpdateGlobal,
crossOriginLoading,
scriptType,
charset
}
} = compilation;
const globalO... |
1,283,426 | 41e7c81dd6ac2014b2a747e3a86fd7d4 | swh:1:cnt:f8b99d68cb279261d72a9b93ba31bd9e40cb152c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=12-36/ | 2f390c25cbd4f2d65e2f474457630b715304076d | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpTemplatePlugin.js | JsonpTemplatePlugin | type | /** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../Compiler")} Compiler */
// TODO webpack 6 remove this class
class JsonpTemplatePlugin {
/**
* @deprecated use JsonpChunkLoadingRuntimeModule.getCompilationHooks instead
* @param {Compilation} compilation the compilation
* @returns {... |
1,283,427 | 92661a4821deeb62d1042630ae6b48cf | swh:1:cnt:f8b99d68cb279261d72a9b93ba31bd9e40cb152c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=17-24/ | 2f390c25cbd4f2d65e2f474457630b715304076d | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpTemplatePlugin.js | JsonpTemplatePlugin::getCompilationHooks | function | /**
* @deprecated use JsonpChunkLoadingRuntimeModule.getCompilationHooks instead
* @param {Compilation} compilation the compilation
* @returns {JsonpChunkLoadingRuntimeModule.JsonpCompilationPluginHooks} hooks
*/
static getCompilationHooks(compilation) {
return JsonpChunkLoadingRuntimeModule.getCompilationHo... |
1,283,428 | 822893c3ea9eee2bbf871a4e9b426424 | swh:1:cnt:f8b99d68cb279261d72a9b93ba31bd9e40cb152c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=26-35/ | 2f390c25cbd4f2d65e2f474457630b715304076d | wlbdashboard | wmcs | node_modules/webpack/lib/web/JsonpTemplatePlugin.js | JsonpTemplatePlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.options.output.chunkLoading = "jsonp";
new ArrayPushCallbackChunkFormatPlugin().apply(compiler);
new EnableChunkLoadingPlugin("jsonp").apply(compiler);
} |
1,283,429 | 60ba05769351a62b479215367a30fd67 | swh:1:cnt:5b8950122e05eccfdc6ec8c41c48d613609f2f0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=18-108/ | 0d3d94183e7b5e1edcf7034af3278f0a2739a1c3 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js | ImportScriptsChunkLoadingPlugin | type | class ImportScriptsChunkLoadingPlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
new StartupChunkDependenciesPlugin({
chunkLoading: "import-scripts",
asyncChunkLoading: true
}).apply(compiler);
compiler.hooks.thisCompilation.t... |
1,283,430 | 926b599e31619cc83351611af13ccee2 | swh:1:cnt:5b8950122e05eccfdc6ec8c41c48d613609f2f0c;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=19-107/ | 0d3d94183e7b5e1edcf7034af3278f0a2739a1c3 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingPlugin.js | ImportScriptsChunkLoadingPlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
new StartupChunkDependenciesPlugin({
chunkLoading: "import-scripts",
asyncChunkLoading: true
}).apply(compiler);
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
con... |
1,283,431 | a3149ffcbf4185207f56c37394869fe1 | swh:1:cnt:c1a79d8882508d7e81e16bfa9640df5cc36ae6f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=21-229/ | c8e69fa298c953adfa7d8d3a25c6772a807513d1 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js | ImportScriptsChunkLoadingRuntimeModule | type | /** @typedef {import("../Chunk")} Chunk */
/** @typedef {import("../ChunkGraph")} ChunkGraph */
/** @typedef {import("../Compilation")} Compilation */
/** @typedef {import("../Module").ReadOnlyRuntimeRequirements} ReadOnlyRuntimeRequirements */
class ImportScriptsChunkLoadingRuntimeModule extends RuntimeModule {
/**
... |
1,283,432 | 8ca33ca11a3caab8d97f7adc534f4bb5 | swh:1:cnt:c1a79d8882508d7e81e16bfa9640df5cc36ae6f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=27-37/ | c8e69fa298c953adfa7d8d3a25c6772a807513d1 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js | ImportScriptsChunkLoadingRuntimeModule::constructor | function | /**
* @param {ReadOnlyRuntimeRequirements} runtimeRequirements runtime requirements
* @param {boolean} withCreateScriptUrl with createScriptUrl support
*/
constructor(runtimeRequirements, withCreateScriptUrl) {
super("importScripts chunk loading", RuntimeModule.STAGE_ATTACH);
/** @type {ReadOnlyRuntimeRequir... |
1,283,433 | b97d3dada3570a04b5f988cde03c5f08 | swh:1:cnt:c1a79d8882508d7e81e16bfa9640df5cc36ae6f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=39-65/ | c8e69fa298c953adfa7d8d3a25c6772a807513d1 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js | ImportScriptsChunkLoadingRuntimeModule::_generateBaseUri | function | /**
* @private
* @param {Chunk} chunk chunk
* @returns {string} generated code
*/
_generateBaseUri(chunk) {
const options = chunk.getEntryOptions();
if (options && options.baseUri) {
return `${RuntimeGlobals.baseURI} = ${JSON.stringify(options.baseUri)};`;
}
const compilation = /** @type {Compilatio... |
1,283,434 | 9d30d7b509a8d89df8e2039280f20046 | swh:1:cnt:c1a79d8882508d7e81e16bfa9640df5cc36ae6f6;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=67-228/ | c8e69fa298c953adfa7d8d3a25c6772a807513d1 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js | ImportScriptsChunkLoadingRuntimeModule::generate | function | /**
* @returns {string | null} runtime code
*/
generate() {
const compilation = /** @type {Compilation} */ (this.compilation);
const fn = RuntimeGlobals.ensureChunkHandlers;
const withBaseURI = this.runtimeRequirements.has(RuntimeGlobals.baseURI);
const withLoading = this.runtimeRequirements.has(
Runtim... |
1,283,435 | 853774a0c0b942f9645ba8db39bdd2a6 | swh:1:cnt:4001aa1a9fc61c671559789fdbbbf81b3e4689fa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=11-24/ | e92da003d10041b125a3225aa37e9f497a7b54a3 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js | WebWorkerTemplatePlugin | type | /** @typedef {import("../Compiler")} Compiler */
class WebWorkerTemplatePlugin {
/**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.options.output.chunkLoading = "import-scripts";
new ArrayPushCallbackChunkFormatPlugin().apply(compile... |
1,283,436 | d94a91bb56e941b9de856c5f37f15940 | swh:1:cnt:4001aa1a9fc61c671559789fdbbbf81b3e4689fa;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=14-23/ | e92da003d10041b125a3225aa37e9f497a7b54a3 | wlbdashboard | wmcs | node_modules/webpack/lib/webworker/WebWorkerTemplatePlugin.js | WebWorkerTemplatePlugin::apply | function | /**
* Apply the plugin
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
apply(compiler) {
compiler.options.output.chunkLoading = "import-scripts";
new ArrayPushCallbackChunkFormatPlugin().apply(compiler);
new EnableChunkLoadingPlugin("import-scripts").apply(compiler);
} |
1,283,437 | 464f2279ca4a2bd62a8909860b3d86d7 | swh:1:cnt:172bfe23b5fdcf07c827559f46be1e54f6b6de37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=28-64/ | f6cce352c662cb6a98c232377d3aa757229a451a | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/definition.js | Definition | type | /**
* @class Definition
*/
class Definition {
constructor(type, name, node, parent, index, kind) {
/**
* @member {String} Definition#type - type of the occurrence (e.g. "Parameter", "Variable", ...).
*/
this.type = type;
/**
* @member {espree.Identifier} Defini... |
1,283,438 | 3f1056ccaaab7fc5c81451d6bc758a9a | swh:1:cnt:172bfe23b5fdcf07c827559f46be1e54f6b6de37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=66-79/ | f6cce352c662cb6a98c232377d3aa757229a451a | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/definition.js | ParameterDefinition | type | /**
* @class ParameterDefinition
*/
class ParameterDefinition extends Definition {
constructor(name, node, index, rest) {
super(Variable.Parameter, name, node, null, index, null);
/**
* Whether the parameter definition is a part of a rest parameter.
* @member {boolean} Parameter... |
1,283,439 | bd767ef8ba00a78abf94f439db484b9c | swh:1:cnt:172bfe23b5fdcf07c827559f46be1e54f6b6de37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=32-63/ | f6cce352c662cb6a98c232377d3aa757229a451a | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/definition.js | Definition::constructor | function | constructor(type, name, node, parent, index, kind) {
/**
* @member {String} Definition#type - type of the occurrence (e.g. "Parameter", "Variable", ...).
*/
this.type = type;
/**
* @member {espree.Identifier} Definition#name - the identifier AST node of the occurrenc... |
1,283,440 | 3f50b0e557630012ce942a0b7ae0a864 | swh:1:cnt:172bfe23b5fdcf07c827559f46be1e54f6b6de37;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=70-78/ | f6cce352c662cb6a98c232377d3aa757229a451a | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/definition.js | ParameterDefinition::constructor | function | constructor(name, node, index, rest) {
super(Variable.Parameter, name, node, null, index, null);
/**
* Whether the parameter definition is a part of a rest parameter.
* @member {boolean} ParameterDefinition#rest
*/
this.rest = rest;
} |
1,283,441 | 917f205fcd7766a0f3c5f6364068f1da | swh:1:cnt:0f16fa40f8323ffd08439d1812cdd0603ec2dd75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=61-76/ | 3e8f2237bff99751e373b7b9bafcd5b5375447fa | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/index.js | defaultOptions | function | /**
* Set the default options
* @returns {Object} options
*/
function defaultOptions() {
return {
optimistic: false,
directive: false,
nodejsScope: false,
impliedStrict: false,
sourceType: "script", // one of ['script', 'module']
ecmaVersion: 5,
childVisito... |
1,283,442 | 4dfc4449d38fbfa29353870b91d602ff | swh:1:cnt:0f16fa40f8323ffd08439d1812cdd0603ec2dd75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-93/ | 3e8f2237bff99751e373b7b9bafcd5b5375447fa | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/index.js | updateDeeply::isHashObject | function | /**
* Is hash object
* @param {Object} value - Test value
* @returns {boolean} Result
*/
function isHashObject(value) {
return typeof value === "object" && value instanceof Object && !(value instanceof Array) && !(value instanceof RegExp);
} |
1,283,443 | 37ce96595d11afbacbcf361296023b9d | swh:1:cnt:0f16fa40f8323ffd08439d1812cdd0603ec2dd75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=78-111/ | 3e8f2237bff99751e373b7b9bafcd5b5375447fa | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/index.js | updateDeeply | function | /**
* Preform deep update on option object
* @param {Object} target - Options
* @param {Object} override - Updates
* @returns {Object} Updated options
*/
function updateDeeply(target, override) {
/**
* Is hash object
* @param {Object} value - Test value
* @returns {boolean} Result
*/
f... |
1,283,444 | 9241eb9811c5866882f9d2a5fa2c0c80 | swh:1:cnt:0f16fa40f8323ffd08439d1812cdd0603ec2dd75;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=113-143/ | 3e8f2237bff99751e373b7b9bafcd5b5375447fa | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/index.js | analyze | function | /**
* Main interface function. Takes an Espree syntax tree and returns the
* analyzed scopes.
* @function analyze
* @param {espree.Tree} tree - Abstract Syntax Tree
* @param {Object} providedOptions - Options that tailor the scope analysis
* @param {boolean} [providedOptions.optimistic=false] - the optimistic fla... |
1,283,445 | 18cb9947cab5f237a3238e43b8f2ab53 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=31-38/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | getLast | function | /**
* Get last array element
* @param {array} xs - array
* @returns {any} Last elment
*/
function getLast(xs) {
return xs[xs.length - 1] || null;
} |
1,283,446 | 3b0ea9f3d28ab87f9aeb12e2eed7997c | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=54-61/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::constructor | function | constructor(options, rootPattern, callback) {
super(null, options);
this.rootPattern = rootPattern;
this.callback = callback;
this.assignments = [];
this.rightHandNodes = [];
this.restElements = [];
} |
1,283,447 | 8d336186c5fda9f0ad05e3fae926773c | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=41-52/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::isPattern | function | static isPattern(node) {
const nodeType = node.type;
return (
nodeType === Syntax.Identifier ||
nodeType === Syntax.ObjectPattern ||
nodeType === Syntax.ArrayPattern ||
nodeType === Syntax.SpreadElement ||
nodeType === Syntax.RestElement ||
... |
1,283,448 | c7b166628bcdc20bacfee069ea92a8e0 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=63-71/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::Identifier | function | Identifier(pattern) {
const lastRestElement = getLast(this.restElements);
this.callback(pattern, {
topLevel: pattern === this.rootPattern,
rest: lastRestElement !== null && lastRestElement !== undefined && lastRestElement.argument === pattern,
assignments: this.assig... |
1,283,449 | 2e1a44c64f52ca07c3eb2a554d5c4973 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=73-84/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::Property | function | Property(property) {
// Computed property's key is a right hand node.
if (property.computed) {
this.rightHandNodes.push(property.key);
}
// If it's shorthand, its key is same as its value.
// If it's shorthand and has its default value, its key is same as its value.... |
1,283,450 | 882e2dc77e838b43456be82886be05e6 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=86-92/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::ArrayPattern | function | ArrayPattern(pattern) {
for (let i = 0, iz = pattern.elements.length; i < iz; ++i) {
const element = pattern.elements[i];
this.visit(element);
}
} |
1,283,451 | 8028432544b3a5702b2234dcff798bd2 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=94-99/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::AssignmentPattern | function | AssignmentPattern(pattern) {
this.assignments.push(pattern);
this.visit(pattern.left);
this.rightHandNodes.push(pattern.right);
this.assignments.pop();
} |
1,283,452 | 573b6aeb3f0e27c7a9536535b7f90f16 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=101-105/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::RestElement | function | RestElement(pattern) {
this.restElements.push(pattern);
this.visit(pattern.argument);
this.restElements.pop();
} |
1,283,453 | e3a5a13090584b93ce5328e5a740e8f9 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=107-116/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::MemberExpression | function | MemberExpression(node) {
// Computed property's key is a right hand node.
if (node.computed) {
this.rightHandNodes.push(node.property);
}
// the object is only read, write to its property.
this.rightHandNodes.push(node.object);
} |
1,283,454 | b905512075a67e3d2a6b2aacdee10a4c | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=118-127/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::SpreadElement | function | //
// ForInStatement.left and AssignmentExpression.left are LeftHandSideExpression.
// By spec, LeftHandSideExpression is Pattern or MemberExpression.
// (see also: https://github.com/estree/estree/pull/20#issuecomment-74584758)
// But espree 2.0 parses to ArrayExpression, ObjectExpression, etc...
... |
1,283,455 | 75e8ded3440fb48feb5500458aea0e15 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=129-131/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::ArrayExpression | function | ArrayExpression(node) {
node.elements.forEach(this.visit, this);
} |
1,283,456 | adfa9febc16570e6ae522240dea8fd1a | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=133-138/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::AssignmentExpression | function | AssignmentExpression(node) {
this.assignments.push(node);
this.visit(node.left);
this.rightHandNodes.push(node.right);
this.assignments.pop();
} |
1,283,457 | 68adee8741bdc4225462c102338b8645 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=140-147/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor::CallExpression | function | CallExpression(node) {
// arguments are right hand nodes.
node.arguments.forEach(a => {
this.rightHandNodes.push(a);
});
this.visit(node.callee);
} |
1,283,458 | ed6a0cf9ab2e30539f8fd1cc17049075 | swh:1:cnt:afa629173b73aef59de6eca0ed52e5216d879648;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=40-148/ | c6dcaf1e2cecb59c3926a8a8a8d00b3911f59f91 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/pattern-visitor.js | PatternVisitor | type | class PatternVisitor extends esrecurse.Visitor {
static isPattern(node) {
const nodeType = node.type;
return (
nodeType === Syntax.Identifier ||
nodeType === Syntax.ObjectPattern ||
nodeType === Syntax.ArrayPattern ||
nodeType === Syntax.SpreadElement... |
1,283,459 | 793a76a41dec2a956161cc5c47f952ea | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=30-145/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference | type | /**
* A Reference represents a single occurrence of an identifier in code.
* @class Reference
*/
class Reference {
constructor(ident, scope, flag, writeExpr, maybeImplicitGlobal, partial, init) {
/**
* Identifier syntax node.
* @member {espreeIdentifier} Reference#identifier
*... |
1,283,460 | 38b810e7b1b8f8a04c11e55804c1b6a3 | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=35-90/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference::constructor | function | constructor(ident, scope, flag, writeExpr, maybeImplicitGlobal, partial, init) {
/**
* Identifier syntax node.
* @member {espreeIdentifier} Reference#identifier
*/
this.identifier = ident;
/**
* Reference to the enclosing Scope.
* @member {Scope} Re... |
1,283,461 | 846a5e37c2a67791dde149ccfe0ee5f1 | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=119-126/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference::isReadOnly | function | /**
* Whether the reference is read-only.
* @method Reference#isReadOnly
* @returns {boolean} read only
*/
isReadOnly() {
return this.flag === Reference.READ;
} |
1,283,462 | 0ad6e0f176d593fa904d756b731a0f3a | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=110-117/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference::isRead | function | /**
* Whether the reference is readable.
* @method Reference#isRead
* @returns {boolean} read
*/
isRead() {
return !!(this.flag & Reference.READ);
} |
1,283,463 | 8323d84c2c14a39a13f916ce90b1d497 | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=101-108/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference::isWrite | function | /**
* Whether the reference is writeable.
* @method Reference#isWrite
* @returns {boolean} write
*/
isWrite() {
return !!(this.flag & Reference.WRITE);
} |
1,283,464 | 3d3217988685efb829d73f972c61de92 | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=92-99/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference::isStatic | function | /**
* Whether the reference is static.
* @method Reference#isStatic
* @returns {boolean} static
*/
isStatic() {
return !this.tainted && this.resolved && this.resolved.scope.isStatic();
} |
1,283,465 | 0438a7f36b19499882e310fdedb65184 | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=128-135/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference::isWriteOnly | function | /**
* Whether the reference is write-only.
* @method Reference#isWriteOnly
* @returns {boolean} write only
*/
isWriteOnly() {
return this.flag === Reference.WRITE;
} |
1,283,466 | 7ffccd0106608677f8b065a0b8cc84b0 | swh:1:cnt:9529827fe786c63389d1727f85fe07ea72365f15;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=137-144/ | cf2c9813b1409f0abfb2d99302c4c302d7fe8da8 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/reference.js | Reference::isReadWrite | function | /**
* Whether the reference is read-write.
* @method Reference#isReadWrite
* @returns {boolean} read write
*/
isReadWrite() {
return this.flag === Reference.RW;
} |
1,283,467 | 509cc7f8378ec0ac0d14f46897924626 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=68-72/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Importer::constructor | function | constructor(declaration, referencer) {
super(null, referencer.options);
this.declaration = declaration;
this.referencer = referencer;
} |
1,283,468 | 5461ff9bb458f0e1f1e9d18e433d79cd | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=88-94/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Importer::ImportNamespaceSpecifier | function | ImportNamespaceSpecifier(node) {
const local = (node.local || node.id);
if (local) {
this.visitImport(local, node);
}
} |
1,283,469 | e1279aec912b0267cd40effed17f47d4 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=102-110/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Importer::ImportSpecifier | function | ImportSpecifier(node) {
const local = (node.local || node.id);
if (node.name) {
this.visitImport(node.name, node);
} else {
this.visitImport(local, node);
}
} |
1,283,470 | c5816833508b49095777cfcaa0a16436 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=367-389/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::AssignmentExpression | function | AssignmentExpression(node) {
if (PatternVisitor.isPattern(node.left)) {
if (node.operator === "=") {
this.visitPattern(node.left, { processRightHandNodes: true }, (pattern, info) => {
let maybeImplicitGlobal = null;
if (!this.currentScope().is... |
1,283,471 | 4e23ce1f24e5f6c98787e0fabb9b7b66 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=564-566/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ForOfStatement | function | ForOfStatement(node) {
this.visitForIn(node);
} |
1,283,472 | 44dbccd7b89323e9a627000c2a8ef50e | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=568-570/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ForInStatement | function | ForInStatement(node) {
this.visitForIn(node);
} |
1,283,473 | d50ca0dc8bb1e5766c5080f3eff9bc55 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=528-539/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::VariableDeclaration | function | VariableDeclaration(node) {
const variableTargetScope = (node.kind === "var") ? this.currentScope().variableScope : this.currentScope();
for (let i = 0, iz = node.declarations.length; i < iz; ++i) {
const decl = node.declarations[i];
this.visitVariableDeclaration(variableTarget... |
1,283,474 | 22d294c537e4546cf96643c8dac97a51 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=576-582/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ImportDeclaration | function | ImportDeclaration(node) {
assert(this.scopeManager.__isES6() && this.scopeManager.isModule(), "ImportDeclaration should appear when the mode is ES6 and in the module context.");
const importer = new Importer(node, this);
importer.visit(node);
} |
1,283,475 | 6dfed02c9b12125ae8faeb3a0c0ec0a1 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=584-594/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::visitExportDeclaration | function | visitExportDeclaration(node) {
if (node.source) {
return;
}
if (node.declaration) {
this.visit(node.declaration);
return;
}
this.visitChildren(node);
} |
1,283,476 | 78a9d93958d7c1c9203f686c6f302a23 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=621-624/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::MetaProperty | function | MetaProperty() { // eslint-disable-line class-methods-use-this
// do nothing.
} |
1,283,477 | 8744c1ab10a80965e54621a3b74fae50 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=462-466/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::LabeledStatement | function | // eslint-disable-line class-methods-use-this
LabeledStatement(node) {
this.visit(node.body);
} |
1,283,478 | ceef1156b584e8a41a8766ffbc2132a5 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=96-100/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Importer::ImportDefaultSpecifier | function | ImportDefaultSpecifier(node) {
const local = (node.local || node.id);
this.visitImport(local, node);
} |
1,283,479 | 059144d1ef96e399c4034de720ed9fdb | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=115-121/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::constructor | function | constructor(options, scopeManager) {
super(null, options);
this.options = options;
this.scopeManager = scopeManager;
this.parent = null;
this.isInnerMethodDefinition = false;
} |
1,283,480 | 2523fc66c9f801d689b8ec927a10216c | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=127-131/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::close | function | close(node) {
while (this.currentScope() && node === this.currentScope().block) {
this.scopeManager.__currentScope = this.currentScope().__close(this.scopeManager);
}
} |
1,283,481 | ee9548b052bb474934714fcce2874434 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=312-340/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::visitForIn | function | visitForIn(node) {
if (node.left.type === Syntax.VariableDeclaration && node.left.kind !== "var") {
this.scopeManager.__nestForScope(node);
}
if (node.left.type === Syntax.VariableDeclaration) {
this.visit(node.left);
this.visitPattern(node.left.declarations[... |
1,283,482 | cc4062d162ff0ab05829ff86e57faaac | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=445-450/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::MemberExpression | function | MemberExpression(node) {
this.visit(node.object);
if (node.computed) {
this.visit(node.property);
}
} |
1,283,483 | 8cfc050aa19529195395e0016c089a17 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=452-454/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::Property | function | Property(node) {
this.visitProperty(node);
} |
1,283,484 | d3be15cb1a2378da6a1b209842a9360a | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=468-481/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ForStatement | function | ForStatement(node) {
// Create ForStatement declaration.
// NOTE: In ES6, ForStatement dynamically generates
// per iteration environment. However, escope is
// a static analyzer, we only generate one scope for ForStatement.
if (node.init && node.init.type === Syntax.VariableDec... |
1,283,485 | e07135599a6906228b98e05ce6d3aab7 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=483-485/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ClassExpression | function | ClassExpression(node) {
this.visitClass(node);
} |
1,283,486 | 6914b41fd24e00970c4f3ad182e2b3da | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=487-489/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ClassDeclaration | function | ClassDeclaration(node) {
this.visitClass(node);
} |
1,283,487 | 857a8647040360c3b2a5c7ebd34cb775 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=491-501/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::CallExpression | function | CallExpression(node) {
// Check this is direct call to eval
if (!this.scopeManager.__ignoreEval() && node.callee.type === Syntax.Identifier && node.callee.name === "eval") {
// NOTE: This should be `variableScope`. Since direct eval call always creates Lexical environment and
/... |
1,283,488 | c90f18f76184b5cb4e4060a906f8bafd | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=541-554/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::SwitchStatement | function | // sec 13.11.8
SwitchStatement(node) {
this.visit(node.discriminant);
if (this.scopeManager.__isES6()) {
this.scopeManager.__nestSwitchScope(node);
}
for (let i = 0, iz = node.cases.length; i < iz; ++i) {
this.visit(node.cases[i]);
}
this.cl... |
1,283,489 | a24491f0aaee3fbb4689ae82debbf0b2 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=605-607/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ExportDefaultDeclaration | function | ExportDefaultDeclaration(node) {
this.visitExportDeclaration(node);
} |
1,283,490 | fce361b63778edd0f4ad90f2fa6f4737 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=601-603/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ExportAllDeclaration | function | ExportAllDeclaration(node) {
this.visitExportDeclaration(node);
} |
1,283,491 | 685718329862f23a2cc67bc573f1d1e5 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=513-515/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::ThisExpression | function | ThisExpression() {
this.currentScope().variableScope.__detectThis();
} |
1,283,492 | 3bf788816b48dead38a636c8eef9f675 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=503-511/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::BlockStatement | function | BlockStatement(node) {
if (this.scopeManager.__isES6()) {
this.scopeManager.__nestBlockScope(node);
}
this.visitChildren(node);
this.close(node);
} |
1,283,493 | 0b53abd60d4163bb86010a36c0d6bfbc | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=74-86/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Importer::visitImport | function | visitImport(id, specifier) {
this.referencer.visitPattern(id, pattern => {
this.referencer.currentScope().__define(pattern,
new Definition(
Variable.ImportBinding,
pattern,
specifier,
this.declaration,
... |
1,283,494 | 27d6820274814e670bb094204e217565 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=123-125/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::currentScope | function | currentScope() {
return this.scopeManager.__currentScope;
} |
1,283,495 | d64979359a96830307aa3493fea4bc9a | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=133-138/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::pushInnerMethodDefinition | function | pushInnerMethodDefinition(isInnerMethodDefinition) {
const previous = this.isInnerMethodDefinition;
this.isInnerMethodDefinition = isInnerMethodDefinition;
return previous;
} |
1,283,496 | dcb360a5de95c27d0b0eb47c9e465040 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=159-174/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::visitPattern | function | visitPattern(node, options, callback) {
let visitPatternOptions = options;
let visitPatternCallback = callback;
if (typeof options === "function") {
visitPatternCallback = options;
visitPatternOptions = { processRightHandNodes: false };
}
traverseIdentif... |
1,283,497 | 079f56b9f418f368d087264b150a7105 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=342-365/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::visitVariableDeclaration | function | visitVariableDeclaration(variableTargetScope, type, node, index) {
const decl = node.declarations[index];
const init = decl.init;
this.visitPattern(decl.id, { processRightHandNodes: true }, (pattern, info) => {
variableTargetScope.__define(
pattern,
... |
1,283,498 | 70031084d36066c08635f383314422c8 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=144-157/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::referencingDefaultValue | function | referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) {
const scope = this.currentScope();
assignments.forEach(assignment => {
scope.__referencing(
pattern,
Reference.WRITE,
assignment.right,
maybeImplicitGlo... |
1,283,499 | f800e014cca04933ffedac8e54548db1 | swh:1:cnt:63d1935b3a957f15975282072cf36113b125b61a;origin=https://gitlab.wikimedia.org/toolforge-repos/wlbdashboard.git;lines=264-292/ | 75927a5a17a3f3f4fb3c1afb3008fbe8b8daaa05 | wlbdashboard | wmcs | node_modules/webpack/node_modules/eslint-scope/lib/referencer.js | Referencer::visitClass | function | visitClass(node) {
if (node.type === Syntax.ClassDeclaration) {
this.currentScope().__define(node.id,
new Definition(
Variable.ClassName,
node.id,
node,
null,
null,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.