DescriptionParser support for trailing commas (#26647).
Adds parser support for trailing commas in parameter and argument lists.
Meta-tracking issue: https://github.com/dart-lang/sdk/issues/26644
In most cases, errors were preserved (and tested) across parsers with and without the flag set. (The exception is a formal paramater list with an extra comma, like `(a,,)` which with trailing comma support enabled only reports a missing identifier; needless to say this is captured in a test and is up for further debate.)
Amazingly (and for better or worse), turning this option on in the parser (`parseTrailingCommas = true`) produces NO errors in the analyzer and server tests.
BUG=26647
R=brianwilkerson@google.com
Committed: https://github.com/dart-lang/sdk/commit/aea4632375d9cbedff2b3ce87dd8b46b1e2645be
Patch Set 1 #
Messages
Total messages: 6 (3 generated)
|