Home
last modified time | relevance | path

Searched refs:MagicConst (Results 1 – 20 of 20) sorted by relevance

/PHP-Parser/test/PhpParser/Node/Scalar/
H A DMagicConstTest.php9 public function testGetName(MagicConst $magicConst, $name): void {
15 [new MagicConst\Class_(), '__CLASS__'],
16 [new MagicConst\Dir(), '__DIR__'],
17 [new MagicConst\File(), '__FILE__'],
18 [new MagicConst\Function_(), '__FUNCTION__'],
19 [new MagicConst\Line(), '__LINE__'],
20 [new MagicConst\Method(), '__METHOD__'],
21 [new MagicConst\Namespace_(), '__NAMESPACE__'],
22 [new MagicConst\Trait_(), '__TRAIT__'],
/PHP-Parser/lib/PhpParser/Node/Scalar/MagicConst/
H A DMethod.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Method extends MagicConst {
H A DNamespace_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Namespace_ extends MagicConst {
H A DClass_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Class_ extends MagicConst {
H A DDir.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Dir extends MagicConst {
H A DFile.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class File extends MagicConst {
H A DFunction_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Function_ extends MagicConst {
H A DLine.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Line extends MagicConst {
H A DTrait_.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Trait_ extends MagicConst {
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DMagicConst.php7 abstract class MagicConst extends Scalar { class
/PHP-Parser/test/PhpParser/
H A DConstExprEvaluatorTest.php86 if ($expr instanceof Scalar\MagicConst\Line) {
93 new Scalar\MagicConst\Line()
/PHP-Parser/test/PhpParser/Builder/
H A DPropertyTest.php187 new Scalar\MagicConst\Dir(),
188 new Scalar\MagicConst\Dir()
H A DClassConstTest.php216 new Scalar\MagicConst\Dir(),
217 new Scalar\MagicConst\Dir()
H A DParamTest.php81 new Scalar\MagicConst\Dir(),
82 new Scalar\MagicConst\Dir()
/PHP-Parser/grammar/
H A Dphp.y1160 | T_LINE { $$ = Scalar\MagicConst\Line[]; }
1161 | T_FILE { $$ = Scalar\MagicConst\File[]; }
1162 | T_DIR { $$ = Scalar\MagicConst\Dir[]; }
1163 | T_CLASS_C { $$ = Scalar\MagicConst\Class_[]; }
1164 | T_TRAIT_C { $$ = Scalar\MagicConst\Trait_[]; }
1165 | T_METHOD_C { $$ = Scalar\MagicConst\Method[]; }
1166 | T_FUNC_C { $$ = Scalar\MagicConst\Function_[]; }
1167 | T_NS_C { $$ = Scalar\MagicConst\Namespace_[]; }
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php12 use PhpParser\Node\Scalar\MagicConst; alias
96 protected function pScalar_MagicConst_Class(MagicConst\Class_ $node): string {
100 protected function pScalar_MagicConst_Dir(MagicConst\Dir $node): string {
104 protected function pScalar_MagicConst_File(MagicConst\File $node): string {
108 protected function pScalar_MagicConst_Function(MagicConst\Function_ $node): string {
112 protected function pScalar_MagicConst_Line(MagicConst\Line $node): string {
116 protected function pScalar_MagicConst_Method(MagicConst\Method $node): string {
120 protected function pScalar_MagicConst_Namespace(MagicConst\Namespace_ $node): string {
124 protected function pScalar_MagicConst_Trait(MagicConst\Trait_ $node): string {
/PHP-Parser/doc/component/
H A DConstant_expression_evaluation.markdown69 * `Scalar\MagicConst\*`
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php2485 …$self->semValue = new Scalar\MagicConst\Line($self->getAttributes($self->tokenStartStack[$stackPos…
2488 …$self->semValue = new Scalar\MagicConst\File($self->getAttributes($self->tokenStartStack[$stackPos…
2491 …$self->semValue = new Scalar\MagicConst\Dir($self->getAttributes($self->tokenStartStack[$stackPos-…
2494 …$self->semValue = new Scalar\MagicConst\Class_($self->getAttributes($self->tokenStartStack[$stackP…
2497 …$self->semValue = new Scalar\MagicConst\Trait_($self->getAttributes($self->tokenStartStack[$stackP…
2500 …$self->semValue = new Scalar\MagicConst\Method($self->getAttributes($self->tokenStartStack[$stackP…
2503 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…
2506 …$self->semValue = new Scalar\MagicConst\Namespace_($self->getAttributes($self->tokenStartStack[$st…
H A DPhp8.php2479 …$self->semValue = new Scalar\MagicConst\Line($self->getAttributes($self->tokenStartStack[$stackPos…
2482 …$self->semValue = new Scalar\MagicConst\File($self->getAttributes($self->tokenStartStack[$stackPos…
2485 …$self->semValue = new Scalar\MagicConst\Dir($self->getAttributes($self->tokenStartStack[$stackPos-…
2488 …$self->semValue = new Scalar\MagicConst\Class_($self->getAttributes($self->tokenStartStack[$stackP…
2491 …$self->semValue = new Scalar\MagicConst\Trait_($self->getAttributes($self->tokenStartStack[$stackP…
2494 …$self->semValue = new Scalar\MagicConst\Method($self->getAttributes($self->tokenStartStack[$stackP…
2497 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…
2500 …$self->semValue = new Scalar\MagicConst\Namespace_($self->getAttributes($self->tokenStartStack[$st…
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown188 like `__FILE__` (`PhpParser\Node\Scalar\MagicConst\File`). All `PhpParser\Node\Scalar`s extend

Completed in 87 milliseconds