(tags: OpenTag[])
| 158 | } |
| 159 | |
| 160 | export function collectCompositionIds(tags: OpenTag[]): Set<string> { |
| 161 | const ids = new Set<string>(); |
| 162 | for (const tag of tags) { |
| 163 | const compId = readAttr(tag.raw, "data-composition-id"); |
| 164 | if (compId) ids.add(compId); |
| 165 | } |
| 166 | return ids; |
| 167 | } |
| 168 | |
| 169 | export function extractCompositionIdsFromCss(css: string): string[] { |
| 170 | const ids = new Set<string>(); |
no test coverage detected