Could someone please give real examples of Tree.build method?? Get only incorrect results. common/tree.ts at main · lezer-parser/common · GitHub
Not sure what you want to do with Tree.build
, you need the result of a parse for that…
Maybe you need Parser::parse
instead? That is (code: String) -> Tree
and more likely what you want to use.
If you do actually want to use Tree.build
, you’ll need to elaborate more on what you want to accomplish