From: epriestley Date: Fri, 28 Jan 2011 23:18:19 +0000 (-0800) Subject: Expose XHPAST parse tree down the line to other parsers. X-Git-Tag: conduit-4~426 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9affcb0db2fb70cfad3456445d8444a6fb452b3a;p=arcanist.git Expose XHPAST parse tree down the line to other parsers. Summary: Test Plan: Reviewers: CC: --- diff --git a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php index 38ed96f7..e1c292d0 100644 --- a/src/lint/linter/xhpast/ArcanistXHPASTLinter.php +++ b/src/lint/linter/xhpast/ArcanistXHPASTLinter.php @@ -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])) {