MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / storeMethod

Function storeMethod

scripts/javascript_natives/helpers.js:125–134  ·  view source on GitHub ↗

* @param parent * @param name * @param args *

(parent, name, args)

Source from the content-addressed store, hash-verified

123 * @param args
124 * */
125function storeMethod(parent, name, args) {
126 if (!methods.has(name)) {
127 methods.set(name, new Map());
128 }
129 const method = methods.get(name);
130 if (!method.has(parent)) {
131 method.set(parent, []);
132 }
133 method.get(parent).push(args);
134}
135
136export function postProcess(dryRun = false) {
137 for (const name of methods.keys()) {

Callers 3

parseTSFunctionFunction · 0.85
walkInterfaceFunction · 0.85
handleOperationFunction · 0.85

Calls 4

setMethod · 0.65
getMethod · 0.65
hasMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected