This commit is contained in:
marihachi 2021-04-10 20:20:25 +09:00
parent 10e50dd8fa
commit d1181beaac

View file

@ -25,8 +25,8 @@ export function toString(node: MfmNode | MfmNode[]): string {
}
}
export function inspect(tree: MfmNode[], action: (node: MfmNode) => void): void {
for (const node of tree) {
export function inspect(nodes: MfmNode[], action: (node: MfmNode) => void): void {
for (const node of nodes) {
action(node);
if (node.children != null) {
inspect(node.children, action);