(more)
| 107 | const declared = p.types.get(name); |
| 108 | if (!declared) return methods; |
| 109 | const take = (more) => { |
| 110 | for (const [m, arity] of more) if (!methods.has(m)) methods.set(m, arity); |
| 111 | }; |
| 112 | const embedded = (type, imports) => { |
| 113 | if (type?.type === 'pointer_type') type = type.namedChildren[0]; |
| 114 | if (type?.type === 'generic_type') type = type.childForFieldName('type'); |