antlr/antlr4 — Issue #28: Implicit label analysis only covers outer alts for list detection
Author: sharwell
Created: 2012-02-28 20:44:22+00:00
State: open
Labels: code-gen, type:bug:1

In the code generated for the following rule, the `VarSpecContext.expressionList()` method returns a `List>` when in reality the `expressionList` rule can be called at most 1 time.

```
varSpec
: identifierList
( type ('=' expressionList)?
| '=' expressionList
)
;
```