]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use `PhutilXHPASTBinary` methods
authorJoshua Spence <josh@joshuaspence.com>
Mon, 2 Feb 2015 19:58:33 +0000 (06:58 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 2 Feb 2015 19:58:33 +0000 (06:58 +1100)
Summary: Use `PhutilXHPASTBinary` methods instead of `xhpast_parse` functions. Depends on D11517.

Test Plan: N/A, this is a direct swap.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11613

src/lint/linter/ArcanistBaseXHPASTLinter.php

index 694e4853f9bba9911f752381b099fa91e9f8bcc0..23296673ed9aa817e679fbea7b82dd7e1562ee80 100644 (file)
@@ -103,7 +103,8 @@ abstract class ArcanistBaseXHPASTLinter extends ArcanistFutureLinter {
   final protected function buildSharedFutures(array $paths) {
     foreach ($paths as $path) {
       if (!isset($this->futures[$path])) {
-        $this->futures[$path] = xhpast_get_parser_future($this->getData($path));
+        $this->futures[$path] = PhutilXHPASTBinary::getParserFuture(
+          $this->getData($path));
       }
     }
     return array_select_keys($this->futures, $paths);