[YANGTOOLS-1452] PrefixToModule has cognitive issues Created: 17/Aug/22 Updated: 17/Aug/22 Resolved: 17/Aug/22 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
PrefixToModule is unlike any other ParserNamespace: it specifies lookup methods, which are referenced by StatementStream implementations. Otherwise it acts as your normal namespace for lookups from statement implementations. This fusion of contracts is an obvious bug: while the two views are related, their missions are not. Separate out the StatementStream contract from the ParserNamespace contract and clean up whatever fallout there is. |