(kind: string)
| 70 | function members(code: string, file = 'Min.pas') { |
| 71 | const result = extractFromSource(file, code); |
| 72 | const of = (kind: string) => |
| 73 | result.nodes.filter((n) => n.kind === kind).map((n) => `${n.qualifiedName}:${n.startLine}`).sort(); |
| 74 | return { result, methods: of('method'), fields: of('field'), constants: of('constant') }; |
| 75 | } |
| 76 |