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

Function expect

tools/ngui/static/js/lib/angular.js:6090–6100  ·  view source on GitHub ↗
(e1, e2, e3, e4)

Source from the content-addressed store, hash-verified

6088 }
6089
6090 function expect(e1, e2, e3, e4){
6091 var token = peek(e1, e2, e3, e4);
6092 if (token) {
6093 if (json && !token.json) {
6094 throwError("is not valid json", token);
6095 }
6096 tokens.shift();
6097 return token;
6098 }
6099 return false;
6100 }
6101
6102 function consume(e1){
6103 if (!expect(e1)) {

Callers 15

consumeFunction · 0.85
statementsFunction · 0.85
_filterChainFunction · 0.85
filterFunction · 0.85
_assignmentFunction · 0.85
logicalORFunction · 0.85
logicalANDFunction · 0.85
equalityFunction · 0.85
relationalFunction · 0.85
additiveFunction · 0.85
multiplicativeFunction · 0.85
unaryFunction · 0.85

Calls 2

peekFunction · 0.85
throwErrorFunction · 0.85

Tested by

no test coverage detected