Skip to content

Instantly share code, notes, and snippets.

@guilhermeblanco
Created March 7, 2017 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermeblanco/bcecb06b7cf99fab15ec5eafc31474b9 to your computer and use it in GitHub Desktop.
Save guilhermeblanco/bcecb06b7cf99fab15ec5eafc31474b9 to your computer and use it in GitHub Desktop.
<?php
// ...
// Validate SingleValuedPathExpression (ie.: "product")
if (isset($this->queryComponents[$lookaheadValue]['metadata'])) {
$expr = $this->SingleValuedPathExpression();
break;
}
// Validating ResultVariable
if ( ! isset($this->queryComponents[$lookaheadValue]['resultVariable'])) {
$this->semanticalError('Cannot add having condition on a non result variable.');
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment