WebAPIKit
WebAPIKit copied to clipboard
Try splitting modules
One of the difficulties of splitting modules is that webidl files make circular references. For example, dom.idl and html.idl reference each other.
Here is my basic idea to solve the problem without tuning idl files by hands:
- Analyze all
*.idlfiles at once - Build a dependency graph against type symbols
- Compute SCC to merge only circularly referenced symbols across idl files, then translate it into DAG
- Compact the graph by merging by source idl file names as much as possible.
The DAG looks like:

I'm going to put my PRs on hold until you're done with this one, again sorry about the conflicts 😅
There was a lot more work and issues than I originally envisioned, so this PR is not meant to be merged in a near day. This is just for call for advice hehe. So this doesn't block the merge of other PRs