public function __get($name)Inherited
public function __get($name)
Inherited
Parameters
$name |
Return
wild |
public function __set($name, $value)Inherited
public function __set($name, $value)
Inherited
Parameters
$name | ||
$value |
Return
wild |
public function current()Inherited
public function current()
Inherited
Return
wild |
public function key()Inherited
public function key()
Inherited
Return
wild |
public function next()Inherited
public function next()
Inherited
Return
wild |
public function rewind()Inherited
public function rewind()
Inherited
Return
wild |
public function valid()Inherited
public function valid()
Inherited
Return
wild |
private function throwOnAttemptedIteration()Inherited
private function throwOnAttemptedIteration()
Inherited
Return
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
public function getPhobjectClassConstant($key, $byte_limit)
Inherited
Phobject
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
Parameters
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
Return
string | Value of the constant. |
final public static function loadAllRules()
final public static function loadAllRules()
Return
wild |
final public function getLintID()
final public function getLintID()
Return
wild |
abstract public function getLintName()
abstract public function getLintName()
Return
wild |
public function getLintSeverity()
public function getLintSeverity()
Return
wild |
public function getLinterConfigurationOptions()
public function getLinterConfigurationOptions()
Return
wild |
public function setLinterConfigurationValue($key, $value)
public function setLinterConfigurationValue($key, $value)
Parameters
$key | ||
$value |
Return
wild |
abstract public function process($root)
abstract public function process($root)
Parameters
XHPASTNode | $root |
Return
wild |
final public function setLinter($linter)
final public function setLinter($linter)
Parameters
ArcanistXHPASTLinter | $linter |
Return
wild |
final public function getActivePath()
final public function getActivePath()
Return
wild |
final public function getOtherLocation($offset, $path)
final public function getOtherLocation($offset, $path)
Parameters
$offset | ||
$path |
Return
wild |
final protected function raiseLintAtPath($desc)
final protected function raiseLintAtPath($desc)
Parameters
$desc |
Return
wild |
final public function raiseLintAtOffset($offset, $description, $original, $replacement)
final public function raiseLintAtOffset($offset, $description, $original, $replacement)
Parameters
$offset | ||
$description | ||
$original | ||
$replacement |
Return
wild |
final protected function raiseLintAtToken($token, $description, $replace)
final protected function raiseLintAtToken($token, $description, $replace)
Parameters
XHPASTToken | $token | |
$description | ||
$replace |
Return
wild |
final protected function raiseLintAtNode($node, $description, $replace)
final protected function raiseLintAtNode($node, $description, $replace)
Parameters
XHPASTNode | $node | |
$description | ||
$replace |
Return
wild |
protected function evaluateStaticBoolean($string)
protected function evaluateStaticBoolean($string)
Statically evaluate a boolean value from an XHP tree.
TODO: Improve this and move it to XHPAST proper?
Parameters
string | $string | The "semantic string" of a single value. |
Return
mixed | `true` or `false` if the value could be evaluated statically; `null` if static evaluation was not possible. |
protected function getAnonymousClosures($root)
protected function getAnonymousClosures($root)
Retrieve all anonymous closure(s).
Returns all descendant nodes which represent an anonymous function declaration.
Parameters
XHPASTNode | $root | Root node. |
Return
AASTNodeList |
protected function getConcreteVariableString($variable)
protected function getConcreteVariableString($variable)
TODO
Parameters
XHPASTNode | $variable |
Return
string |
protected function getFunctionCalls($root, $function_names)
protected function getFunctionCalls($root, $function_names)
Retrieve all calls to some specified function(s).
Returns all descendant nodes which represent a function call to one of the specified functions.
Parameters
XHPASTNode | $root | Root node. |
list<string> | $function_names | Function names. |
Return
AASTNodeList |
final protected function getModifiers($node)
final protected function getModifiers($node)
Get class/method modifiers.
Parameters
XHPASTNode | $node | A node of type `n_CLASS_DECLARATION` or `n_METHOD_DECLARATION`. |
Return
map<string, bool> | Class/method modifiers. |
public function getSuperGlobalNames()
public function getSuperGlobalNames()
Get PHP superglobals.
Return
list<string> |