DescriptionRename deprecated "supplemental_dependencies" and clean up IDL dependency script
This is a cleanup patch:
* Rename "supplemental_dependencies" to "interface_dependencies",
since these are actually partial interfaces and implements,
not supplementals (which has a technical meaning that's not being used here)
(Changed throughout.)
* Rename preprocess_idls.py to compute_dependencies.py,
since this computes dependencies, and is not a preprocessor
(a preprocessor changes source files before they hit the compiler,
while this doesn't change the .idls: it just computes dependencies)
* Significant refactoring to compute_dependencies.py (was: preprocess_idls.py)
When renaming variables, I had trouble understanding what the variables
actually were (what's the difference between "supplemental_dependencies"
and "supplementals"?), so I cleaned up to make it clearer.
The main function parse_idl_files was actually computing a backwards
dictionary (!), and then reversing it at the end (!), which is brain-bending,
and dates back to Perl when we just had partial dependencies, not implements.
I rewrote it to just compute the dependencies in the forward order.
I also made the code simpler (less deeply nested, less hard-coded) and clearly
separated the IDL parsing from the output file writing: previously some files
were written in the middle of parsing, while others were done afterwards.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153766
Patch Set 1 #Patch Set 2 : Fix exec #
Total comments: 22
Patch Set 3 : Revised #Patch Set 4 : Typo #Patch Set 5 : Comment typo fixed #
Messages
Total messages: 11 (0 generated)
|