difficulty with Tree.build method

I faced one unpredictable result with the method Tree.build. I read the documentation and used the example Lezer Reference Manual (codemirror.net). I had such a result. I think it is incorrect, or maybe I did something wrong.The thing is that children include top node and endIndexes are the same and incorrect if I am not mistaken.

These screenshots are not enough for us to figure out what the problem is. You’re going to have to put some more effort into explaining the issue.

1 Like

Of course, thanks for your attention to my problem Marjin. Maybe you can give some examples how to correctly build a tree beacuse when i use method in specs i achive strange tree as the result.Thanks in advance.

Have the same problem. If you will find the solution share please.