Differential D25238 Diff 823 src/infrastructure/markup/syntax/highlighter/xhpast/PhutilXHPASTSyntaxHighlighterFuture.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/syntax/highlighter/xhpast/PhutilXHPASTSyntaxHighlighterFuture.php
Show All 26 Lines | try { | ||||
->resolve(); | ->resolve(); | ||||
} | } | ||||
} | } | ||||
private function applyXHPHighlight($result) { | private function applyXHPHighlight($result) { | ||||
// We perform two passes here: one using the AST to find symbols we care | // We perform two passes here: one using the AST to find symbols we care | ||||
// about -- particularly, class names and function names. These are used | // about -- particularly, class names and function names. These are used | ||||
// in the crossreference stuff to link into Diffusion. After we've done our | // in the cross-reference stuff to link into Diffusion. After we've done our | ||||
// AST pass, we do a followup pass on the token stream to catch all the | // AST pass, we do a followup pass on the token stream to catch all the | ||||
// simple stuff like strings and comments. | // simple stuff like strings and comments. | ||||
$tree = XHPASTTree::newFromDataAndResolvedExecFuture( | $tree = XHPASTTree::newFromDataAndResolvedExecFuture( | ||||
$this->source, | $this->source, | ||||
$result); | $result); | ||||
$root = $tree->getRootNode(); | $root = $tree->getRootNode(); | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0