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

Function walkInterface

scripts/javascript_natives/helpers.js:72–86  ·  view source on GitHub ↗

* @param thing *

(thing)

Source from the content-addressed store, hash-verified

70 * @param thing
71 * */
72function walkInterface(thing) {
73 thing.members.forEach(member => {
74 switch (member.type) {
75 case 'constructor':
76 storeMethod('Window', thing.name, member.arguments.map(argName));
77 break;
78 case 'operation':
79 handleOperation(member);
80 }
81 });
82 const namedConstructor = thing.extAttrs.find(extAttr => extAttr.name === 'NamedConstructor');
83 if (namedConstructor && namedConstructor.arguments) {
84 storeMethod('Window', namedConstructor.rhs.value, namedConstructor.arguments.map(argName));
85 }
86}
87
88/**
89 * @param thing

Callers 1

walkRootFunction · 0.85

Calls 4

storeMethodFunction · 0.85
handleOperationFunction · 0.85
mapMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected