* zin: add empty command.

This commit is contained in:
sunhao
2024-02-27 09:45:14 +08:00
parent bff7422d31
commit a0134404fa
+5
View File
@@ -61,6 +61,11 @@ class command
$node->add(text(...$args));
}
public static function empty(node $node, array $args)
{
$node->empty();
}
public static function prepend(node $node, array $args)
{
$node->add($args, 'children', true);