spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / pane-view / row-shapes-of.ts
12 lines · 373 BRaw
1import Tree from '../tree'
2import { rowShapeOf } from './row-shape-of.js'
3
4/**
5 * The rows of a pane's body, top to bottom, each as the layout tests read
6 * it (rowShapeOf).
7 *
8 * @param tree the pane's tree, its body the first child
9 * @returns each row's shape
10 */
11export const rowShapesOf = (tree: unknown) =>
12 Tree.childrenOf(Tree.childrenOf(tree)[0]).map(rowShapeOf)