Lines Matching refs:typemap
171 * @param typemap array a typemap
176 function updateTypemap(&$typemap, $var, $type, $hint=null) { argument
177 if(empty($typemap[$var]) && $type) {
178 $typemap[$var] = array('type'=>$type,'hint'=>$hint);
216 * @param typemap array the type information collected so far
220 function constructQuery(&$root, &$typemap, $projection) { argument
255 list($group, $scope) = $this->transformGroup($tree, $typemap);
349 * @param typemap array the type information
352 function transformGroup(&$root, &$typemap) { argument
371 list($patterns, $filters, $scope) = $this->transformPatterns($patterns, $typemap);
375 list($u, $s) = $this->transformUnion($union, $typemap);
398 list($optional, $s) = $this->transformGroup($optional, $typemap);
434 list($minus, $s) = $this->transformGroup($minus, $typemap);
450 * @param typemap array the type information
453 function transformUnion(&$root, &$typemap) { argument
467 list($result,$scope) = $this->transformGroup(array_shift($subs), $typemap);
471 list($rhs, $s) = $this->transformGroup($sub, $typemap);
488 * @param typemap array the type information
491 function transformPatterns(&$lines, &$typemap) { argument
514 $this->updateTypemap($typemap, $subject['text'], 'ref');
526 $this->updateTypemap($typemap, $predicate['text'], 'text');
549 $this->updateTypemap($typemap, $object['text'], $vtype->type, $vtype->hint);
553 $this->updateTypemap($typemap, $object['text'], $type->type, $type->hint);
588 $this->updateTypemap($typemap, $lhs['text'], $ltype->type, $ltype->hint);
592 $this->updateTypemap($typemap, $rhs['text'], $ltype->type, $lhint->hint);
597 $this->updateTypemap($typemap, $rhs['text'], $rtype->type, $rtype->hint);
601 $this->updateTypemap($typemap, $lhs['text'], $rtype->type, $rtype->hint);
618 $this->updateTypemap($typemap, $lhs['text'],$type,$hint);
621 if(!empty($typemap[$lhs['text']])) {
622 extract($typemap[$lhs['text']]);
655 $this->updateTypemap($typemap, $rhs['text'],$type,$hint);
658 if(!empty($typemap[$rhs['text']])) {
659 extract($typemap[$rhs['text']]);
691 function getFields(&$tree, &$typemap) { argument
707 $fields = $this->parseFieldsLong($fieldsLines, $typemap);
717 function parseFieldsLong($lines, &$typemap) { argument
732 $this->updateTypemap($typemap, $variable, $type, $hint);
745 function parseFieldsShort($line, &$typemap) { argument
762 $this->updateTypemap($typemap, $variable, $type, $hint);