6e4f00a27c
The fasta parser generates begin/end event pairs such as [beginCompilationUnit] and [endCompilationUnit]. Each event should be generated "within" a "higher level" begin/end event pair, except for [beginCompilationUnit] and [endCompilationUnit], which should not be generated within any begin/end event pair. This CL updates the fasta test listener and associated test code to assert that [endTopLevelDeclaration] is generated within or is enclosed by a begin/end "CompilationUnit" event pair, and that the [beginCompilationUnit] and [endCompilationUnit] events are not enclosed by any begin/end event pairs. R=paulberry@google.com Review-Url: https://codereview.chromium.org/2993833002 .