src/Source/SourceParser.php
public function parse(SourceStream $code, SourceStorageInterface $storage = NULL)
	{
		$buffer = new SourceBuffer();
		$this->doParse($code, $buffer, $storage);
		
		return $buffer;
	}
public function parse(SourceStream $code, SourceStorageInterface $storage = NULL)
	{
		$buffer = new SourceBuffer();
		$this->doParse($code, $buffer, $storage);
		
		return $buffer;
	}
public function parse ( SourceStream $ code , SourceStorageInterface $ storage = NULL ) { $ buffer = new SourceBuffer ( ) ; $ this -> doParse ( $ code , $ buffer , $ storage ) ; return $ buffer ; }
Parse the given code and create a SourceGenerator from it, extracted data for static
analysis is stored in the given storage implementation.

@param SourceStream $code The source code to be parsed.
@param SourceStorageInterface $storage The stoage implementation for extracted data.
@return SourceGenerator
Parse the given code and create a SourceGenerator from it extracted data for static analysis is stored in the given storage implementation .