Skip to content

Commit bf786c6

Browse files
committed
Add a Transform() utility for rewriting demangle trees. (NFC)
Transform() recursively transforms a demangle tree by doing a post-order traversal and replacing each node with fn(node). In most cases this utility will do less work than the ad-hoc implementation it is replacing because we now only recreate nodes that actually changed. (cherry picked from commit 347e815)
1 parent ed9af1f commit bf786c6

File tree

2 files changed

+241
-235
lines changed

2 files changed

+241
-235
lines changed

0 commit comments

Comments
 (0)