(text: string)
| 743 | let declared = false; |
| 744 | const bounds: string[] = []; |
| 745 | const take = (text: string): void => { |
| 746 | for (const b of splitRustTopLevel(text, '+')) { |
| 747 | const bound = b.replace(/^for\s*<[^>]*>\s*/, '').trim(); |
| 748 | if (bound === '' || bound.startsWith('?') || bound.startsWith('\'')) continue; |
| 749 | bounds.push(bound); |
| 750 | } |
| 751 | }; |
| 752 | for (const item of items) { |
| 753 | for (const part of splitRustTopLevel(item.generics, ',')) { |
| 754 | const m = /^([A-Za-z_]\w*)\s*(?::([\s\S]*?))?(?:=[\s\S]*)?$/.exec(part); |
no test coverage detected