Some key choices to highlight:
- Surround Tokens with '
- Do not print UnknownRole, to reduce noise
- Surround Roles with <, to clarify the difference in meaning
Differential D85316
[SyntaxTree] Proposition of new tree dump eduucaldas on Aug 5 2020, 8:13 AM. Authored by
Details
Some key choices to highlight:
Diff Detail
Unit Tests Event TimelineComment Actions I'd suggest to drop the <> quotes (because the AST dump does not add quotes unless it is printing a multi-word thing, and because <> don't exactly scream "role" helping to read the output). I'd also suggest to replace multiple spaces before <> with a single space. Otherwise, looks great!
|
Some points to make a decision.
What should be the order of these extra information?
I like the order now, Most frequent in the left.
More decriptive markers?
We could choose to have more descriptive markers
I -> unmodifieable
M-> not backed by source code / synthesized
Ambiguity.
Since we choose to not dump a role for NodeRole::Unknown we might have some ambiguity between NodeRoles and markers. We can avoid that by surrounding markers, or making them lower-case. or even by just leaving one character markers