[YANGTOOLS-1365] Expose SubmoduleEffectiveStatement from IncludeEffectiveStatement Created: 14/Nov/21 Updated: 14/Nov/23 |
|
| Status: | Confirmed |
| Project: | yangtools |
| Component/s: | model-api, parser |
| Affects Version/s: | None |
| Fix Version/s: | 14.0.0 |
| Type: | New Feature | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
yang.model.api.Module exposes its submodules via getModules(). ModuleEffectiveStatement does not have that capability as it inlines all effective statements from submodules. This is a slight oversight, which we should fix cleanly – which is to expose the included submodule from the 'include' statement which inlines it. We also should be ignoring 'belongs-to' statements for the purposes of inlining and warn/error out if there is a mismatch (i.e. no include for a submodule). |