[YANGTOOLS-491] Yang parser not able to deal with short-case-stmt in augment/uses-augment Created: 25/Aug/15 Updated: 10/Apr/22 Resolved: 06/Nov/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Martin Ciglan | Assignee: | Martin Ciglan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 4183 |
| Description |
|
Issue: module stated below causes NullPointerException in code generator. Solution: short-case-stmt should be expanded during parsing to full case-stmt to avoid it. module uses-augment-test { yang-version 1; grouping grp1 { } grouping grp2 { container cont { } } |
| Comments |
| Comment by Martin Ciglan [ 28/Aug/15 ] |
|
just to be precise, with actual ANTLR grammar, statement in augment or uses-augment is recognized as data-def-stmt, not short-case-stmt |
| Comment by Martin Ciglan [ 18/Sep/15 ] |
|
fix pushed: |