PHP Class PhpParser\Lexer\Emulative

Inheritance: extends PhpParser\Lexer
Show file Open project: nikic/php-parser Class Usage Examples

Protected Properties

Property Type Description
$inObjectAccess
$newKeywords

Public Methods

Method Description
__construct ( array $options = [] )
getNextToken ( &$value = null, &$startAttributes = null, &$endAttributes = null )
startLexing ( $code, PhpParser\ErrorHandler $errorHandler = null )

Protected Methods

Method Description
emulateTokens ( ) * Emulates tokens for newer PHP versions.
requiresEmulation ( $code ) * Checks if the code is potentially using features that require emulation.

Method Details

__construct() public method

public __construct ( array $options = [] )
$options array

emulateTokens() protected method

* Emulates tokens for newer PHP versions.
protected emulateTokens ( )

getNextToken() public method

public getNextToken ( &$value = null, &$startAttributes = null, &$endAttributes = null )

requiresEmulation() protected method

* Checks if the code is potentially using features that require emulation.
protected requiresEmulation ( $code )

startLexing() public method

public startLexing ( $code, PhpParser\ErrorHandler $errorHandler = null )
$errorHandler PhpParser\ErrorHandler

Property Details

$inObjectAccess protected property

protected $inObjectAccess

$newKeywords protected property

protected $newKeywords