From: epriestley Date: Sat, 28 Jan 2012 19:18:33 +0000 (-0800) Subject: Revert XHP classtag support in arcanist X-Git-Tag: conduit-4~166 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3ccb418b933afe69a0ae309dbba8c047508221c7;p=arcanist.git Revert XHP classtag support in arcanist Summary: Revert of D715, which allowed you to put xhp classes into libphutil libraries. We're removing support for XHP in resolving T635. According to @ide, removing this won't break anything. Test Plan: Straight revert. Grepped for methods. Reviewers: btrahan, ide, nh, jungejason Reviewed By: ide CC: aran, epriestley Maniphest Tasks: T635 Differential Revision: https://secure.phabricator.com/D1511 --- diff --git a/src/parser/phutilmodule/PhutilModuleRequirements.php b/src/parser/phutilmodule/PhutilModuleRequirements.php index 779b0179..894932b6 100644 --- a/src/parser/phutilmodule/PhutilModuleRequirements.php +++ b/src/parser/phutilmodule/PhutilModuleRequirements.php @@ -1,7 +1,7 @@ addDeclaration('class', $where, $name); } @@ -99,10 +98,8 @@ class PhutilModuleRequirements { } public function addClassDependency($child, XHPASTNode $where, $name) { - $name = self::mungeXHPClassName($name); if ($child !== null) { if (empty($this->builtins['class'][$name])) { - $child = self::mungeXHPClassName($child); $this->chain['class'][$child] = $name; } } @@ -177,12 +174,4 @@ class PhutilModuleRequirements { ); } - private static function mungeXHPClassName($name) { - if (strlen($name) && $name[0] == ':') { - // XHP's semantic actions munge element names without a preceding colon. - $name = substr($name, 1); - return 'xhp_'.str_replace(array(':', '-'), array('__', '_'), $name); - } - return $name; - } }