Global

Members

(constant) FULL_QUALIFIED_NAME :String

This is an identifier with a namespace separator that begins with a namespace separator, such as \Foo\Bar. The namespace \Foo is also a fully qualified name.

Source:

(constant) ignoreStack

outputs some debug information on current token

Source:

(constant) MODE_BLOCK :String

The node is declared bracket enclosed code :

<?php
declare(ticks=1) {
// some statements
}
Source:

(constant) MODE_NONE :String

The node is declared as a simple statement. In order to make things simpler children of the node are automatically collected until the next declare statement.

<?php
declare(ticks=1);
// some statements
declare(ticks=2);
// some statements
Source:

(constant) MODE_SHORT :String

The node is declared as a short tag syntax :

<?php
declare(ticks=1):
// some statements
enddeclare;
Source:

(constant) QUALIFIED_NAME :String

This is an identifier with a namespace separator, such as Foo\Bar

Source:

(constant) RELATIVE_NAME :String

This is an identifier starting with namespace, such as namespace\Foo\Bar.

Source:

(constant) TYPE_CONST :String

Importing a constant

Source:

(constant) TYPE_FUNC :String

Importing a function

Source:

(constant) TYPE_HEREDOC :String

The node is a shell execute string :

<?php
echo <<<STR
 Hello $world
STR
;
Source:

(constant) TYPE_OFFSET :String

The node contains a list of constref / variables / expr :

<?php
echo $foo->bar_$baz;
Source:

(constant) TYPE_SHELL :String

The node is a shell execute string :

<?php
echo `ls -larth $path`;
Source:

(constant) TYPE_STRING :String

The node is a double quote string :

<?php
echo "hello $world";
Source:

(constant) UNQUALIFIED_NAME :String

This is an identifier without a namespace separator, such as Foo

Source:

Methods

getStringBuffer(buffer) → {String}

Check if the inpyt is a buffer or a string

Parameters:
Name Type Description
buffer Buffer | String

Input value that can be either a buffer or a string

Source: