MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / parse_arguments

Function parse_arguments

js/SCAST.js:290–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288 }
289 }
290 function parse_arguments() {
291 var r={
292 type: "Arguments",
293 body: [],
294 poi:{line:input.peek().poi.line,start:input.peek().poi.start},
295 value:''
296 }
297 skip_punc("(");
298 while (!is_punc(")")) {
299 var sts = parse_arg()
300 if(sts){
301 r.value+=sts.value+' ';
302 r.body.push(sts)
303 }
304 }
305 skip_punc(")");
306 return r
307 }
308 function parse_arg(){//todo
309 if(is_sp(","))return skip_split(",");
310 if(is_punc('{'))return parse_block();

Callers 8

parse_argFunction · 0.70
parse_defineFunction · 0.70
parse_conditionFunction · 0.70
until_next_kwFunction · 0.70
parse_variableFunction · 0.70
parse_idFunction · 0.70
parse_newFunction · 0.70
parse_expressionFunction · 0.70

Calls 3

skip_puncFunction · 0.70
is_puncFunction · 0.70
parse_argFunction · 0.70

Tested by

no test coverage detected