MCPcopy Create free account
hub / github.com/Noumena-Network/code / makeNode

Function makeNode

src/utils/bash/parser.test.ts:8–20  ·  view source on GitHub ↗
(
  type: string,
  text: string,
  children: Node[] = [],
)

Source from the content-addressed store, hash-verified

6import type { Node } from './parser.js'
7
8function makeNode(
9 type: string,
10 text: string,
11 children: Node[] = [],
12): Node {
13 return {
14 type,
15 text,
16 startIndex: 0,
17 endIndex: text.length,
18 children,
19 }
20}
21
22describe('extractCommandArguments', () => {
23 it('extracts command name and arguments from a simple command', () => {

Callers 1

parser.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected