dfinity / node-motoko

Compile and run Motoko smart contracts in Node.js or the browser.
Apache License 2.0
15 stars 4 forks source link

Add 'parent' property to AST nodes #40

Closed rvanasa closed 1 year ago

rvanasa commented 1 year ago

Adds a parent property which can be used to traverse up a Motoko abstract syntax tree. Note that this property is non-enumerable so that it's still possible to print and serialize AST nodes without encountering circular references.