1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00

Enable override ArcanistXHPASTLinter

Summary:
add method setXHPASTTreeForPath() so that a child class of
ArcanistXHPASTLinter can set the tree easily.

Test Plan: wrote a subclass of ArcanistXHPASTLinter and it worked.

Reviewers: pad, epriestley

Reviewed By: pad

CC: aran, pad, jungejason

Differential Revision: 1134
This commit is contained in:
Jason Ge 2011-11-28 22:15:06 -08:00
parent 994163d9ca
commit 3629308f2f

View file

@ -23,7 +23,7 @@
*/
class ArcanistXHPASTLinter extends ArcanistLinter {
private $trees = array();
protected $trees = array();
const LINT_PHP_SYNTAX_ERROR = 1;
const LINT_UNABLE_TO_PARSE = 2;