Pinq\Parsing\IParser::parse PHP Method

parse() public method

The __LINE__ magic constant should be resolved to is correct value.
public parse ( Pinq\Parsing\IFunctionReflection $reflection ) : Pinq\Parsing\IFunctionStructure
$reflection Pinq\Parsing\IFunctionReflection
return Pinq\Parsing\IFunctionStructure
    public function parse(IFunctionReflection $reflection);

Usage Example

Example #1
0
 protected final function assertParsedAs(callable $function, array $expressions)
 {
     if ($this->currentImplementation === null) {
         throw new \Exception('Please remember to use the @dataProvider annotation to test all the implementations.');
     }
     $this->assertEquals($expressions, $this->currentImplementation->parse($this->currentImplementation->getReflection($function))->getBodyExpressions());
 }
All Usage Examples Of Pinq\Parsing\IParser::parse