TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

69 lines
1.4 KiB

<?php
/**
* This file is part of TypePHP.
*
* @link https://www.swoole.com/
* @contact service@swoole.com
*/
namespace TypePhp\Generator;
use TypePhp\CompilerBase;
class Symbol
{
public static function getStaticProperty(): string
{
return 'php::getStaticProperty';
}
public static function getStaticPropertyRef(): string
{
return 'php::getStaticPropertyRef';
}
public static function setStaticProperty(): string
{
return 'php::setStaticProperty';
}
public static function instanceOf(): string
{
return 'php::instanceOf';
}
public static function concat(): string
{
return 'php::concat';
}
public static function getCalledCe(): string
{
return CompilerBase::PREFIX . 'get_called_ce(this_)';
}
public static function getCalledClass(): string
{
return CompilerBase::PREFIX . 'get_called_class(this_)';
}
public static function constant(): string
{
return 'php::constant';
}
public static function getClassEntrySafe(): string
{
return 'php::getClassEntrySafe';
}
public static function argList(): string
{
return 'php::ArgList';
}
public static function safeIndex(string $index, string $size): string
{
return "php::safeIndex({$index}, {$size})";
}
}