()
| 6369 | |
| 6370 | // This is used with json array declaration |
| 6371 | function arrayDeclaration () { |
| 6372 | var elementFns = []; |
| 6373 | if (peekToken().text != ']') { |
| 6374 | do { |
| 6375 | elementFns.push(expression()); |
| 6376 | } while (expect(',')); |
| 6377 | } |
| 6378 | consume(']'); |
| 6379 | return function(self, locals){ |
| 6380 | var array = []; |
| 6381 | for ( var i = 0; i < elementFns.length; i++) { |
| 6382 | array.push(elementFns[i](self, locals)); |
| 6383 | } |
| 6384 | return array; |
| 6385 | }; |
| 6386 | } |
| 6387 | |
| 6388 | function object () { |
| 6389 | var keyValues = []; |
no test coverage detected