PHP Class PHPSA\Definition\FileParser

Datei anzeigen Open project: ovr/phpsa Class Usage Examples

Protected Properties

Property Type Description
$compiler PHPSA\Compiler
$nodeTraverser PhpParser\NodeTraverser
$parser PhpParser\Parser

Public Methods

Method Description
__construct ( PhpParser\Parser $parser, Compiler $compiler )
parserFile ( string $filepath, Context $context )

Protected Methods

Method Description
parseTopDefinitions ( PhpParser\Node\Stmt | PhpParser\Node\Stmt[] $topStatement, AliasManager $aliasManager, string $filepath )

Method Details

__construct() public method

public __construct ( PhpParser\Parser $parser, Compiler $compiler )
$parser PhpParser\Parser
$compiler PHPSA\Compiler

parseTopDefinitions() protected method

protected parseTopDefinitions ( PhpParser\Node\Stmt | PhpParser\Node\Stmt[] $topStatement, AliasManager $aliasManager, string $filepath )
$topStatement PhpParser\Node\Stmt | PhpParser\Node\Stmt[]
$aliasManager PHPSA\AliasManager
$filepath string

parserFile() public method

public parserFile ( string $filepath, Context $context )
$filepath string
$context PHPSA\Context

Property Details

$compiler protected_oe property

protected Compiler,PHPSA $compiler
return PHPSA\Compiler

$nodeTraverser protected_oe property

protected NodeTraverser,PhpParser $nodeTraverser
return PhpParser\NodeTraverser

$parser protected_oe property

protected Parser,PhpParser $parser
return PhpParser\Parser