protected final function visitOperation($operationType, O\MethodCallExpression $expression) { $this->addSegment(function ($segmentId) use($operationType, $expression) { $sourceInterpreter = $this->buildSourceInterpreter($segmentId); $sourceInterpreter->interpretSource($this->getArgumentAt(0, $expression)); $this->interpretation->interpretOperation($this->getSegmentId($operationType), $operationType, $sourceInterpreter->getInterpretation()); }); $this->visit($expression->getValue()); }
public function interpretQueryScope($sourceId, IScopeInterpretation $scopeInterpretation) { /* @var $scopeInterpretation IScopeParser */ $this->source = new Source\QueryScope($scopeInterpretation->getScope()); }