Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Issue 2993833002: fasta listener assert enclosing event (Closed)

Created:
3 years, 4 months ago by danrubel
Modified:
3 years, 4 months ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fasta 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -178 lines) Patch
M pkg/analyzer/test/generated/parser_fasta_listener.dart View 1 2 3 5 chunks +196 lines, -172 lines 0 comments Download
M pkg/analyzer/test/generated/parser_fasta_test.dart View 1 2 3 chunks +20 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
danrubel
3 years, 4 months ago (2017-08-07 14:57:31 UTC) #2
Paul Berry
https://codereview.chromium.org/2993833002/diff/20001/pkg/analyzer/test/generated/parser_fasta_listener.dart File pkg/analyzer/test/generated/parser_fasta_listener.dart (right): https://codereview.chromium.org/2993833002/diff/20001/pkg/analyzer/test/generated/parser_fasta_listener.dart#newcode32 pkg/analyzer/test/generated/parser_fasta_listener.dart:32: String enclosingEvent; I think there's a simpler way to ...
3 years, 4 months ago (2017-08-07 15:34:51 UTC) #3
danrubel
https://codereview.chromium.org/2993833002/diff/20001/pkg/analyzer/test/generated/parser_fasta_listener.dart File pkg/analyzer/test/generated/parser_fasta_listener.dart (right): https://codereview.chromium.org/2993833002/diff/20001/pkg/analyzer/test/generated/parser_fasta_listener.dart#newcode32 pkg/analyzer/test/generated/parser_fasta_listener.dart:32: String enclosingEvent; On 2017/08/07 15:34:51, Paul Berry wrote: > ...
3 years, 4 months ago (2017-08-07 16:01:51 UTC) #4
Paul Berry
lgtm assuming comment is updated https://codereview.chromium.org/2993833002/diff/40001/pkg/analyzer/test/generated/parser_fasta_listener.dart File pkg/analyzer/test/generated/parser_fasta_listener.dart (right): https://codereview.chromium.org/2993833002/diff/40001/pkg/analyzer/test/generated/parser_fasta_listener.dart#newcode22 pkg/analyzer/test/generated/parser_fasta_listener.dart:22: * construct a new ...
3 years, 4 months ago (2017-08-07 16:05:07 UTC) #5
danrubel
https://codereview.chromium.org/2993833002/diff/40001/pkg/analyzer/test/generated/parser_fasta_listener.dart File pkg/analyzer/test/generated/parser_fasta_listener.dart (right): https://codereview.chromium.org/2993833002/diff/40001/pkg/analyzer/test/generated/parser_fasta_listener.dart#newcode22 pkg/analyzer/test/generated/parser_fasta_listener.dart:22: * construct a new listener and set the [enclosingEvent] ...
3 years, 4 months ago (2017-08-07 16:37:11 UTC) #6
danrubel
3 years, 4 months ago (2017-08-07 18:22:25 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
6e4f00a27c2880dcac12c3e4cab1005eede6caed (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698