JairusSW / as-json

The only JSON library you'll need for AssemblyScript. SIMD enabled
MIT License
79 stars 15 forks source link

Add sort function to Transformer.afterParse sources prior to visitation #42

Closed derekbar90 closed 1 year ago

derekbar90 commented 1 year ago

I just added a small change to the Transformer class, specifically to the afterParse method. I added a sorting function to ensure that user scripts are visited last during transformation. This is important because user scripts may reference other scripts in the project, and we want to ensure that those dependencies have been transformed first/all supporting classes encode statements have been populated.

Please let me know if you have any questions or concerns about this change.

derekbar90 commented 1 year ago

Fixes: #43

JairusSW commented 1 year ago

I commented in #43