Descriptionfasta listener assert enclosing event
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
Committed: https://github.com/dart-lang/sdk/commit/6e4f00a27c2880dcac12c3e4cab1005eede6caed
Patch Set 1 #Patch Set 2 : tweak test fail message #
Total comments: 2
Patch Set 3 : cleanup event assertion #
Total comments: 2
Patch Set 4 : update comment #
Messages
Total messages: 8 (2 generated)
|