]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Enable override ArcanistXHPASTLinter
authorJason Ge <jungejason@fb.com>
Tue, 29 Nov 2011 06:15:06 +0000 (22:15 -0800)
committerJason Ge <jungejason@fb.com>
Wed, 30 Nov 2011 00:23:14 +0000 (16:23 -0800)
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

src/lint/linter/xhpast/ArcanistXHPASTLinter.php

index 09af5d15b28289f7a48e1342e34458470dd43a7d..87ba74a02901e759a7c02cc0975d0c5436a58e16 100644 (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;