()
| 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(); |
no test coverage detected