summaryrefslogtreecommitdiff
path: root/tests/Kvisibility
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-14 14:48:22 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-16 19:58:22 +0200
commit63a44186137e2706afec0aef278cd5d123fc98dc (patch)
treeeeac59fe4c3af336fbb88c5ff13eda4420d166fd /tests/Kvisibility
parentcbf32e29a130d22bc734b7778e6304ac9df2a3e8 (diff)
Record which MenuNode has each property
This allows accurate documentation to be generated for symbols and choices defined in multiple locations. There are now MenuNode.defaults, MenuNode.selects, etc., lists that mirror the corresponding Symbol/Choice lists. Symbol/Choice.__str__() now correctly show property locations as well, by simply concatenating the strings returned by MenuNode.__str__() for each node. _parse_properties() was modified to add all properties directly to the menu node instead of adding them to the contained symbol or choice. The properties are then copied up to symbols and choices in _finalize_tree(). Dependency propagation is handled at the same time. As a side effect, this cleans up the code a bit and de-bloats _parse_properties(). Update the menuconfig implementation to use the new functionality. It now lists the menu nodes for symbols and choices with the correct properties for each node (previously, all defaults, selects, implies, and ranges appeared on the first definition).
Diffstat (limited to 'tests/Kvisibility')
0 files changed, 0 insertions, 0 deletions