Home
last modified time | relevance | path

Searched refs:MagicConst (Results 1 – 22 of 22) 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 {
H A DProperty.php3 namespace PhpParser\Node\Scalar\MagicConst;
5 use PhpParser\Node\Scalar\MagicConst; alias
7 class Property 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 DClassConstTest.php216 new Scalar\MagicConst\Dir(),
217 new Scalar\MagicConst\Dir()
H A DPropertyTest.php226 new Scalar\MagicConst\Dir(),
227 new Scalar\MagicConst\Dir()
H A DParamTest.php81 new Scalar\MagicConst\Dir(),
82 new Scalar\MagicConst\Dir()
/PHP-Parser/grammar/
H A Dphp.y1201 | T_LINE { $$ = Scalar\MagicConst\Line[]; }
1202 | T_FILE { $$ = Scalar\MagicConst\File[]; }
1203 | T_DIR { $$ = Scalar\MagicConst\Dir[]; }
1204 | T_CLASS_C { $$ = Scalar\MagicConst\Class_[]; }
1205 | T_TRAIT_C { $$ = Scalar\MagicConst\Trait_[]; }
1206 | T_METHOD_C { $$ = Scalar\MagicConst\Method[]; }
1207 | T_FUNC_C { $$ = Scalar\MagicConst\Function_[]; }
1208 | T_NS_C { $$ = Scalar\MagicConst\Namespace_[]; }
1209 | T_PROPERTY_C { $$ = Scalar\MagicConst\Property[]; }
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php12 use PhpParser\Node\Scalar\MagicConst; alias
97 protected function pScalar_MagicConst_Class(MagicConst\Class_ $node): string {
101 protected function pScalar_MagicConst_Dir(MagicConst\Dir $node): string {
105 protected function pScalar_MagicConst_File(MagicConst\File $node): string {
109 protected function pScalar_MagicConst_Function(MagicConst\Function_ $node): string {
113 protected function pScalar_MagicConst_Line(MagicConst\Line $node): string {
117 protected function pScalar_MagicConst_Method(MagicConst\Method $node): string {
121 protected function pScalar_MagicConst_Namespace(MagicConst\Namespace_ $node): string {
125 protected function pScalar_MagicConst_Trait(MagicConst\Trait_ $node): string {
129 protected function pScalar_MagicConst_Property(MagicConst\Property $node): string {
/PHP-Parser/doc/component/
H A DConstant_expression_evaluation.markdown69 * `Scalar\MagicConst\*`
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php2529 …$self->semValue = new Scalar\MagicConst\Line($self->getAttributes($self->tokenStartStack[$stackPos…
2532 …$self->semValue = new Scalar\MagicConst\File($self->getAttributes($self->tokenStartStack[$stackPos…
2535 …$self->semValue = new Scalar\MagicConst\Dir($self->getAttributes($self->tokenStartStack[$stackPos-…
2538 …$self->semValue = new Scalar\MagicConst\Class_($self->getAttributes($self->tokenStartStack[$stackP…
2541 …$self->semValue = new Scalar\MagicConst\Trait_($self->getAttributes($self->tokenStartStack[$stackP…
2544 …$self->semValue = new Scalar\MagicConst\Method($self->getAttributes($self->tokenStartStack[$stackP…
2547 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…
2550 …$self->semValue = new Scalar\MagicConst\Namespace_($self->getAttributes($self->tokenStartStack[$st…
2553 …$self->semValue = new Scalar\MagicConst\Property($self->getAttributes($self->tokenStartStack[$stac…
H A DPhp8.php2531 …$self->semValue = new Scalar\MagicConst\Line($self->getAttributes($self->tokenStartStack[$stackPos…
2534 …$self->semValue = new Scalar\MagicConst\File($self->getAttributes($self->tokenStartStack[$stackPos…
2537 …$self->semValue = new Scalar\MagicConst\Dir($self->getAttributes($self->tokenStartStack[$stackPos-…
2540 …$self->semValue = new Scalar\MagicConst\Class_($self->getAttributes($self->tokenStartStack[$stackP…
2543 …$self->semValue = new Scalar\MagicConst\Trait_($self->getAttributes($self->tokenStartStack[$stackP…
2546 …$self->semValue = new Scalar\MagicConst\Method($self->getAttributes($self->tokenStartStack[$stackP…
2549 …$self->semValue = new Scalar\MagicConst\Function_($self->getAttributes($self->tokenStartStack[$sta…
2552 …$self->semValue = new Scalar\MagicConst\Namespace_($self->getAttributes($self->tokenStartStack[$st…
2555 …$self->semValue = new Scalar\MagicConst\Property($self->getAttributes($self->tokenStartStack[$stac…
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown188 like `__FILE__` (`PhpParser\Node\Scalar\MagicConst\File`). All `PhpParser\Node\Scalar`s extend
/PHP-Parser/
H A DCHANGELOG.md30 `Node\Scalar\MagicConst\Property` node.

Completed in 73 milliseconds