Best way to check if a syntax tree contains errors?

What is the best way to check if a syntax tree contains at least one error? I could of course use a tree cursor to iterate through the entire tree, but maybe there is a convenience method to do this?

There isn’t—iterating and checking each node is the way to do this.

2 Likes