Skip to content

Commit 7982b23

Browse files
committed
Use PhutilXHPASTBinary methods
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/D11612
1 parent 37e534c commit 7982b23

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts/symbols/generate_php_symbols.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
foreach ($input as $file) {
2121
$file = Filesystem::readablePath($file);
2222
$data[$file] = Filesystem::readFile($file);
23-
$futures[$file] = xhpast_get_parser_future($data[$file]);
23+
$futures[$file] = PhutilXHPASTBinary::getParserFuture($data[$file]);
2424
}
2525

2626
$futures = id(new FutureIterator($futures))

src/applications/diviner/atomizer/DivinerPHPAtomizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ protected function newAtom($type) {
77
}
88

99
protected function executeAtomize($file_name, $file_data) {
10-
$future = xhpast_get_parser_future($file_data);
10+
$future = PhutilXHPASTBinary::getParserFuture($file_data);
1111
$tree = XHPASTTree::newFromDataAndResolvedExecFuture(
1212
$file_data,
1313
$future->resolve());

src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function processRequest() {
1111
if ($request->isFormPost()) {
1212
$source = $request->getStr('source');
1313

14-
$future = xhpast_get_parser_future($source);
14+
$future = PhutilXHPASTBinary::getParserFuture($source);
1515
$resolved = $future->resolve();
1616

1717
// This is just to let it throw exceptions if stuff is broken.

src/infrastructure/internationalization/management/PhabricatorInternationalizationManagementExtractWorkflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function execute(PhutilArgumentParser $args) {
3131
foreach ($path_files as $file) {
3232
$full_path = $root.DIRECTORY_SEPARATOR.$file;
3333
$data = Filesystem::readFile($full_path);
34-
$futures[$full_path] = xhpast_get_parser_future($data);
34+
$futures[$full_path] = PhutilXHPASTBinary::getParserFuture($data);
3535
}
3636
}
3737

0 commit comments

Comments
 (0)