]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Expose XHPAST parse tree down the line to other parsers.
authorepriestley <epriestley@javelinjs.com>
Fri, 28 Jan 2011 23:18:19 +0000 (15:18 -0800)
committerepriestley <epriestley@javelinjs.com>
Fri, 28 Jan 2011 23:18:19 +0000 (15:18 -0800)
Summary:

Test Plan:

Reviewers:

CC:

src/lint/linter/xhpast/ArcanistXHPASTLinter.php

index 38ed96f7ae1e2888ebdf8633be1f71249f5be5f9..e1c292d01c7215df279748a83465016175630e4d 100644 (file)
@@ -108,6 +108,10 @@ class ArcanistXHPASTLinter extends ArcanistLinter {
       }
     }
   }
+  
+  public function getXHPASTTreeForPath($path) {
+    return idx($this->trees, $path);
+  }
 
   public function lintPath($path) {
     if (empty($this->trees[$path])) {