Page MenuHomePhabricator

abstract class AASTTree
Arcanist Technical Documentation ()

An abstract abstract syntax tree.

Methods

abstract public function newNode($id, $data, $tree)

This method is not documented.
Parameters
$id
array$data
AASTTree$tree
Return
wild

abstract public function newToken($id, $type, $value, $offset, $tree)

This method is not documented.
Parameters
$id
$type
$value
$offset
AASTTree$tree
Return
wild

public function __construct($tree, $stream, $source)

This method is not documented.
Parameters
array$tree
array$stream
$source
Return
this//Implicit.//

final public function setTreeType($description)

This method is not documented.
Parameters
$description
Return
wild

final public function getTreeType()

This method is not documented.
Return
wild

final public function setTokenConstants($token_map)

This method is not documented.
Parameters
array$token_map
Return
wild

final public function setNodeConstants($node_map)

This method is not documented.
Parameters
array$node_map
Return
wild

final public function getNodeTypeNameFromTypeID($type_id)

This method is not documented.
Parameters
$type_id
Return
wild

final public function getNodeTypeIDFromTypeName($type_name)

This method is not documented.
Parameters
$type_name
Return
wild

final public function getTokenTypeNameFromTypeID($type_id)

This method is not documented.
Parameters
$type_id
Return
wild

final public function getTokenTypeIDFromTypeName($type_name)

This method is not documented.
Parameters
$type_name
Return
wild

public function dispose()

Unlink internal datastructures so that PHP will garbage collect the tree.

This renders the object useless.

Return
void

final public function getRootNode()

This method is not documented.
Return
wild

protected function buildTree($tree)

This method is not documented.
Parameters
array$tree
Return
wild

final public function getRawTokenStream()

This method is not documented.
Return
wild

public function getOffsetToLineNumberMap()

This method is not documented.
Return
wild