Use flyweight EffectiveStatement implementations
(YANGTOOLS-1067)
|
|
| 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: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
This is the first step in fly-weight statements. As described in This is mostly yang-parser-reactor work, but also requires exposing access to AbstractStatementSupport.createEffective(Current, List). This should prove effective in this test case:
module foo {
namespace foo;
prefix foo;
grouping grp {
container foo {
description "desc";
reference "ref";
}
}
uses foo;
}
while /grp/foo and /foo are distinct objects, their EffectiveStatement.effectiveSubstatements() need to return the same object.
|