PhpParser\Lexer\Emulative::requiresEmulation PHP Метод

requiresEmulation() защищенный Метод

* Checks if the code is potentially using features that require emulation.
protected requiresEmulation ( $code )
    protected function requiresEmulation($code)
    {
        if (version_compare(PHP_VERSION, self::PHP_7_0, '>=')) {
            return false;
        }
        if (preg_match('(\\?\\?|<=>|yield[ \\n\\r\\t]+from)', $code)) {
            return true;
        }
        if (version_compare(PHP_VERSION, self::PHP_5_6, '>=')) {
            return false;
        }
        return preg_match('(\\.\\.\\.|(?<!/)\\*\\*(?!/))', $code);
    }