From: Jason Ge Date: Tue, 29 Nov 2011 06:15:06 +0000 (-0800) Subject: Enable override ArcanistXHPASTLinter X-Git-Tag: conduit-4~229 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3629308f2faa5d212d4b57737181525761146f71;p=arcanist.git 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 --- diff --git a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php index 09af5d15..87ba74a0 100644 --- a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php +++ b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php @@ -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;