Defer statement initialization in InferredStatementContext
(YANGTOOLS-784)
|
|
| 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. |