(v)
| 28 | |
| 29 | const lit = (v) => ({ Type: 'literal', Value: v, Unwrapped: false }) |
| 30 | const ref = (v) => ({ Type: 'group', Value: v, Unwrapped: false }) |
| 31 | const field = (name, type) => ({ Name: name, Occurrence: { n: 1, m: 1 }, Type: type, Comments: [] }) |
| 32 | const def = (name, props) => ({ Type: 'group', Name: name, Properties: props, IsChoiceAddition: false, Comments: [] }) |
| 33 | const byName = (ast, n) => ast.find((d) => d.Name === n) |
no outgoing calls
no test coverage detected