[YANGTOOLS-1199] Add support for passing effective statement dependencies Created: 05/Dec/20  Updated: 07/Feb/21  Resolved: 07/Feb/21

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

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

YANGTOOLS-1197 and YANGTOOLS-1198 are all about storing a proper reference which is picked up by createEffective(Current) via namespaces.

There are quite a few places which perform this kind of trick – having a lot of namespaces for essentially the same purpose.

Consider extending EffectiveStmtCtx.Current with a key/value lookup mechanism, populated by (for example) StmtContext.Mutable.setEffectiveParameter(key, value).

This would provide a well-defined blueprint how to solve this kind of a problem without open-coding it all over the place.



 Comments   
Comment by Robert Varga [ 07/Feb/21 ]

Solved as part of Duplicate of YANGTOOLS-1214

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