[YANGTOOLS-1078] Copy only SchemaTreeEffectiveStatements in UsesStatementSupport Created: 02/Feb/20  Updated: 23/Aug/20  Resolved: 23/Aug/20

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

Type: Improvement 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

Epic Link: Parser Performance

 Description   

RFC7950 provides explicit guidance as to what statements should be included and which not. Specifically, it says:

The effect of a "uses" reference to a grouping is that the nodes defined by the grouping are copied into the current schema tree and are then updated according to the "refine" and "augment" statements.

Which is to say that only SchemaTreeEffectiveStatements are to be copied – any other statement cannot be added to the schema tree, hence there is just no point in copying of it.


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