[YANGTOOLS-1190] Refactor AbstractAugmentStatementSupport Created: 27/Nov/20  Updated: 03/Dec/20

Status: Confirmed
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: None

Type: Task 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:
Blocks
is blocked by YANGTOOLS-1189 Parser does not reject use of mis-mat... Resolved
Relates
relates to YANGTOOLS-1184 Release InferredStatementContext's ef... Resolved

 Description   

AbstractAugmentStatementSupport supports both use cases of augment statement, with a single fused workflow.

As part of it, it inserts its context into its target, hence having the same StmtContext under different roots – which breaks lifecycle when cleanups occur (YANGTOOLS-1184).

Refactor the class to make it very explicit which role is being served and what we are trying to achieve.


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