transpile: Add AST node parent information#1655
transpile: Add AST node parent information#1655Rua wants to merge 10 commits intoimmunant:masterfrom
Conversation
1769d54 to
89964e1
Compare
267acbc to
3e346ab
Compare
|
I don't think we should merge a massive change that isn't used for anything. Edit: unless we also want #1679, in which case this is a prerequisite and not an independent change. |
|
There are also other things that this makes possible, not all of which have been considered yet necessarily. One thing that comes to mind is being able to completely replace EDIT: To illustrate, the c2rust/c2rust-transpile/src/translator/mod.rs Line 4179 in c11f9aa |
9968bba to
23f2116
Compare
c_astsubmodules #1652.This collects information about the parent nodes of each AST node (except types). It's not currently used for anything, but could potentially be used to solve #1321, by allowing conversion functions across the transpiler to easily find the types of their parent nodes.