[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:
Relates
relates to YANGTOOLS-1006 Change Module/Submodule mapping to co... Confirmed

 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).


Generated at Wed Feb 07 20:55:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.