> */ public function getNodeTypes() : array { return [Double::class]; } /** * @param Double $node */ public function refactor(Node $node) : ?Node { $kind = $node->getAttribute(AttributeKey::KIND); if ($kind !== Double::KIND_REAL) { return null; } $node->setAttribute(AttributeKey::KIND, Double::KIND_FLOAT); $node->setAttribute(AttributeKey::ORIGINAL_NODE, null); return $node; } }