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