PHP Class PhpParser\Lexer\Emulative

Inheritance: extends PhpParser\Lexer
Afficher le fichier Open project: nikic/php-parser Class Usage Examples

Protected Properties

Свойство Type Description
$inObjectAccess
$newKeywords

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

emulateTokens() protected méthode

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

getNextToken() public méthode

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

requiresEmulation() protected méthode

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

startLexing() public méthode

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

Property Details

$inObjectAccess protected_oe property

protected $inObjectAccess

$newKeywords protected_oe property

protected $newKeywords