MCPcopy
hub / github.com/cacjs/cac / parse

Function parse

src/utils.ts:17–29  ·  view source on GitHub ↗
(match: string[])

Source from the content-addressed store, hash-verified

15 const res = []
16
17 const parse = (match: string[]) => {
18 let variadic = false
19 let value = match[1]
20 if (value.startsWith('...')) {
21 value = value.slice(3)
22 variadic = true
23 }
24 return {
25 required: match[0].startsWith('<'),
26 value,
27 variadic,
28 }
29 }
30
31 let angledMatch
32 while ((angledMatch = ANGLED_BRACKET_RE_GLOBAL.exec(v))) {

Callers 1

findAllBracketsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…