Defer statement initialization in InferredStatementContext (YANGTOOLS-784)

[YANGTOOLS-1185] Integrate EffectiveStmtCtx and StmtContext Created: 25/Nov/20  Updated: 03/Dec/20  Resolved: 03/Dec/20

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

Type: Sub-task Priority: Medium
Reporter: Robert Varga Assignee: Miroslav Kovac
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

EffectiveStmtCtx is always implemented as a proxy on top of a StatementContextBase – hence it is a superfluous object.

Make sure StmtContext and EffectiveStmtCtx.Current can be implemented by StatementContextBase at the same time. There is a lot of overlap in their methods – these should be isolated into CommonStmtCtx with their (shorter) EffectiveStmtCtx names.

StmtContext should then extend CommonStmtCtx and provide its current method as default forwarders.


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