MCPcopy Create free account
hub / github.com/apache/cloudstack / arrayDeclaration

Function arrayDeclaration

tools/ngui/static/js/lib/angular.js:6371–6386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 = [];

Callers 1

primaryFunction · 0.85

Calls 4

peekTokenFunction · 0.85
expressionFunction · 0.85
expectFunction · 0.85
consumeFunction · 0.85

Tested by

no test coverage detected