Jens Johansen
3a1f732c0f
[parser] Make begin/end events always come in pairs
...
This CL:
* Changes the events so beginX and endX events always comes in pairs
(though technically not right as some specific events can be beginX
endY --- but in those cases it is at least documented and used in code
that actually tests it).
-> This entails adding some events and converting something from
"beginX" to "handleX" instead.
* Adds a utility that can generate an AST of sorts directly from the
parser via a listener using the begin/end matching (and knowing of the
specific ones that doesn't match directly).
* Adds a test that checks that - at least for all tested (50,000+) files
- the AST actually generate "correctly", i.e. matches up begin/ends
and ends up with a single top entry "CompilationUnit".
* Adds a different visualization to the parser listener events by
displaying the "AST directly from the parser" in a UI that can be
navigated. The visualization may not be the best, but it's certainly
a stepping stone.
Change-Id: I9b27f7bbf3be442adc92f357c7b3c46da6f84cf7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159664
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-01 09:30:43 +00:00
..
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-05-06 11:56:24 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-05-06 11:56:24 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-05-06 11:56:24 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-05-06 11:56:24 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2019-11-11 09:44:12 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-11-11 09:44:12 +00:00
2019-11-11 09:44:12 +00:00
2019-11-11 09:44:12 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-11-11 09:44:12 +00:00
2019-11-11 09:44:12 +00:00
2019-11-11 09:44:12 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-11-11 09:44:12 +00:00
2019-11-11 09:44:12 +00:00
2019-11-11 09:44:12 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-11-11 09:44:12 +00:00
2019-11-11 09:44:12 +00:00
2020-08-11 08:09:59 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2019-12-12 06:59:53 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-12-12 06:59:53 +00:00
2019-12-12 06:59:53 +00:00
2019-12-12 06:59:53 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-12-12 06:59:53 +00:00
2019-12-12 06:59:53 +00:00
2020-08-11 08:09:59 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-05-06 11:56:24 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-05-06 11:56:24 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-03-02 11:21:40 +00:00
2020-05-06 11:56:24 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-05-06 11:56:24 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-05-06 11:56:24 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-05-06 11:56:24 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-03-02 11:21:40 +00:00
2020-05-06 11:56:24 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 09:53:19 +00:00
2020-01-10 10:46:17 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-01-10 10:46:17 +00:00
2020-01-10 10:46:17 +00:00
2020-01-10 10:46:17 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-01-10 10:46:17 +00:00
2020-01-10 10:46:17 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-07-08 12:45:15 +00:00
2020-07-08 12:45:15 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-08-11 08:09:59 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2020-03-12 11:25:02 +00:00
2020-03-12 11:25:02 +00:00
2020-05-06 11:56:24 +00:00
2020-03-12 11:25:02 +00:00
2020-03-12 11:25:02 +00:00
2020-03-12 11:25:02 +00:00
2020-09-01 09:30:43 +00:00
2020-05-06 11:56:24 +00:00
2020-03-12 11:25:02 +00:00
2020-03-12 11:25:02 +00:00
2020-02-27 10:15:33 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-02-27 10:15:33 +00:00
2020-02-27 10:15:33 +00:00
2020-02-26 13:31:52 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-02-26 13:31:52 +00:00
2020-02-26 13:31:52 +00:00
2020-03-12 11:25:02 +00:00
2020-03-12 11:25:02 +00:00
2020-05-06 11:56:24 +00:00
2020-03-12 11:25:02 +00:00
2020-03-12 11:25:02 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 11:21:40 +00:00
2020-03-02 08:32:43 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 08:32:43 +00:00
2020-03-02 08:32:43 +00:00
2020-03-02 08:32:43 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 08:32:43 +00:00
2020-03-02 08:32:43 +00:00
2020-03-02 08:32:43 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-02 08:32:43 +00:00
2020-03-02 08:32:43 +00:00
2020-03-03 09:49:57 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-03 09:49:57 +00:00
2020-03-03 09:49:57 +00:00
2020-03-03 09:49:57 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-03 09:49:57 +00:00
2020-03-03 09:49:57 +00:00
2020-03-03 09:49:57 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-03-03 09:49:57 +00:00
2020-03-03 09:49:57 +00:00
2020-04-01 07:33:01 +00:00
2020-04-01 07:33:01 +00:00
2020-05-06 11:56:24 +00:00
2020-04-01 07:33:01 +00:00
2020-04-01 07:33:01 +00:00
2020-04-28 08:06:48 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-04-28 08:06:48 +00:00
2020-04-28 08:06:48 +00:00
2020-07-09 15:03:17 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-07-09 15:03:17 +00:00
2020-07-09 15:03:17 +00:00
2019-10-11 06:19:13 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2019-10-11 06:19:13 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-08-11 08:09:59 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2020-08-11 08:09:59 +00:00
2020-08-11 08:09:59 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2020-02-26 13:31:52 +00:00
2020-05-06 11:56:24 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2019-10-11 06:19:13 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00
2019-10-11 06:19:13 +00:00
2020-09-01 09:30:43 +00:00
2020-09-01 09:30:43 +00:00
2019-10-28 10:25:30 +00:00
2019-10-28 10:25:30 +00:00