(scopeName: string, subNode: EnumDefinition)
| 109 | // export function parseFunction() |
| 110 | |
| 111 | export function parseEnum(scopeName: string, subNode: EnumDefinition): EnumType { |
| 112 | const {type, name, members} = subNode; |
| 113 | const namePath = `${scopeName}.${name}`; |
| 114 | const fields = members.map(({ name }) => name); |
| 115 | return { name, type, namePath, fields }; |
| 116 | } |
| 117 | |
| 118 | type SubNodeType = StructDefinition | EnumDefinition | FunctionDefinition | CustomErrorDefinition | EventDefinition |
| 119 | const SubNodeTypeStrings = [ |
nothing calls this directly
no outgoing calls
no test coverage detected