Classes

Metadata entry for a single AST kind, as returned by ast\get_metadata().

This class describes a single node in a PHP AST.

Functions

string
get_kind_name(int $kind)

No description

array
get_metadata()

Provides metadata for the AST kinds.

array
get_supported_versions(bool $exclude_deprecated = false)

Returns currently supported AST versions.

bool
kind_uses_flags(int $kind)

No description

parse_code(string $code, int $version, string $filename = 'string code')

Parses code string and returns an AST root node.

parse_file(string $filename, int $version)

Parses code from a file and returns an AST root node.