From 9affcb0db2fb70cfad3456445d8444a6fb452b3a Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 28 Jan 2011 15:18:19 -0800 Subject: [PATCH] Expose XHPAST parse tree down the line to other parsers. Summary: Test Plan: Reviewers: CC: --- src/lint/linter/xhpast/ArcanistXHPASTLinter.php | 4 ++++ 1 file changed, 4 insertions(+) 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])) {