Lines Matching refs:clauses
4920 var clauses = expressions[i];
4923 var resources = getResourcesForClause(clauses.shift());
4926 …results = results.concat(resources.map(filterResources(clauses, i > 0, instanceMap)).filter(filter…
4951 function filterResources(clauses, removeDuplicates, map) { argument
4969 if (clauses.length > 0) {
4970 resourceIsAllowed = resourceIsAllowed && doesResourceMatchClauses(resource, clauses);
5026 function doesResourceMatchClauses(resource, clauses) { argument
5027 for (var i = 0; i < clauses.length; i++) {
5029 switch (clauses[i].attr) {
5031 map = METADATA.hasType[clauses[i].value];
5034 map = METADATA.hasTag[clauses[i].value];
5038 if (!map || (!!clauses[i].negative ? map[resource.index] : !map[resource.index])) {
5039 return clauses[i].negative;
5054 var clauses = [];
5077 clauses.push(clause);
5080 if (!clauses.length) {
5084 expressions.push(clauses);