MCPcopy
hub / github.com/Tampermonkey/tampermonkey / function_params

Function function_params

src/jslint.js:3838–3861  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3836
3837
3838 function function_params() {
3839 var id, paren = next_token, params = [];
3840 advance('(');
3841 step_in();
3842 no_space();
3843 if (next_token.id === ')') {
3844 no_space();
3845 step_out(')', paren);
3846 return params;
3847 }
3848 for (;;) {
3849 edge();
3850 id = identifier();
3851 params.push(token);
3852 add_label(token, option.unparam ? 'parameter' : 'unparam');
3853 if (next_token.id === ',') {
3854 comma();
3855 } else {
3856 no_space();
3857 step_out(')', paren);
3858 return params;
3859 }
3860 }
3861 }
3862
3863
3864

Callers 1

do_functionFunction · 0.85

Calls 8

advanceFunction · 0.85
step_inFunction · 0.85
no_spaceFunction · 0.85
step_outFunction · 0.85
edgeFunction · 0.85
identifierFunction · 0.85
add_labelFunction · 0.85
commaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…