mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 12:35:05 +01:00
0f582e1708
For representing Identifiers that have an implicit leading $. With this done, maybe go one step further? * Rename VarLikeIdentifier -> VarIdentifier / VarName * Use VarIdentifier / VarName also as an inner node in Variable. Not sure if this adds any real value.
15 lines
395 B
PHP
15 lines
395 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node;
|
|
|
|
/**
|
|
* Represents a name that is written in source code with a leading dollar,
|
|
* but is not a proper variable. The leading dollar is not stored as part of the name.
|
|
*
|
|
* Examples: Names in property declarations are formatted as variables. Names in static property
|
|
* lookups are also formatted as variables.
|
|
*/
|
|
class VarLikeIdentifier extends Identifier
|
|
{
|
|
}
|