port recast to rust 🦀 (#178)

* port recast to rust with massaged serialisation

* remove logs

* fix the last of white space test failures

* remove ts recastor

* clean up imports

* use serde serialise features

* unneeded async

* final clean up recast.ts

* more clean up tweaks

* improve Rust BinaryPart types

* Comments, fix warnings

* Run clippy --fix

* Remove unused variable

* serialise none_code_nodes manual to force strings to numbers

---------

Co-authored-by: Adam Chalmers <adam.s.chalmers@gmail.com>
This commit is contained in:
Kurt Hutten
2023-07-20 12:38:05 +10:00
committed by GitHub
parent 11cc85a9e8
commit 5d90c0488f
13 changed files with 1022 additions and 547 deletions

View File

@ -64,7 +64,7 @@ export interface NoneCodeNode extends GeneralStatement {
export interface NoneCodeMeta {
// Stores the whitespace/comments that go after the statement who's index we're using here
[statementIndex: number]: NoneCodeNode
noneCodeNodes: { [statementIndex: number]: NoneCodeNode }
// Which is why we also need `start` for and whitespace at the start of the file/block
start?: NoneCodeNode
}