Lines Matching refs:clauses
3811 var clauses = expressions[i];
3814 var firstClause = clauses[0];
3838 // use additional clauses to filter corpus
3839 if (clauses.length > 1) {
3840 var otherClauses = clauses.slice(1);
3899 function getResourceMatchesClausesFilter(clauses) {
3901 return doesResourceMatchClauses(resource, clauses);
3906 function doesResourceMatchClauses(resource, clauses) {
3907 for (var i = 0; i < clauses.length; i++) {
3909 switch (clauses[i].attr) {
3911 map = IS_RESOURCE_OF_TYPE[clauses[i].value];
3914 map = IS_RESOURCE_IN_LANG[clauses[i].value];
3917 map = IS_RESOURCE_TAGGED[clauses[i].value];
3921 if (!map || (!!clauses[i].negative ? map[resource.index] : !map[resource.index])) {
3922 return clauses[i].negative;
3945 // Break expression into clauses (clause e.g. 'tag:foo')
3946 var clauses = [];
3969 clauses.push(clause);
3972 if (!clauses.length) {
3976 expressions.push(clauses);