1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-16 03:16:54 +01:00
PHP-Parser/lib/PhpParser/Node/Scalar
Nikita Popov 588e6a4d4c Add string kinds and doc string labels
Scalar\String_ and Scalar\Encapsed now have an additional "kind"
attribute, which may be one of:

 * String_::KIND_SINGLE_QUOTED
 * String_::KIND_DOUBLE_QUOTED
 * String_::KIND_NOWDOC
 * String_::KIND_HEREDOC

Additionally, if the string kind is one of the latter two, an
attribute "docLabel" is provided, which contains the doc string
label (STR in <<<STR) that was originally used.

The pretty printer will try to take the original kind of the string,
as well as the used doc string label into account.
2016-04-07 12:09:00 +09:00
..
MagicConst Make autoloader for new names PSR-0 compliant 2014-04-02 09:44:45 +02:00
DNumber.php Drop default values from Scalar ctor params 2015-07-12 22:02:18 +02:00
Encapsed.php Drop default values from Scalar ctor params 2015-07-12 22:02:18 +02:00
EncapsedStringPart.php Introduce Scalar\EncapsedStringPart 2015-12-03 22:55:07 +01:00
LNumber.php Remove internal LNumber::parse() method 2016-03-10 13:01:42 +01:00
MagicConst.php Drop support for old Node format 2015-05-02 22:17:34 +02:00
String_.php Add string kinds and doc string labels 2016-04-07 12:09:00 +09:00