semantic icon indicating copy to clipboard operation
semantic copied to clipboard

Precise AST datatypes’ fields are generated in arbitrary order

Open patrickt opened this issue 5 years ago • 0 comments

Ported from https://github.com/tree-sitter/haskell-tree-sitter/issues/97.

They don’t reflect either the node-types.json file’s declared order or order within the grammar. This is due to aeson using HashMaps to represent objects during JSON parsing, which means that we get keys back in hash order.

patrickt avatar Feb 13 '20 16:02 patrickt