Details
-
Improvement
-
Status: Resolved
-
Resolution: Won't Do
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
Description
Since a SchemaContext is an immutable entity containing children which get referenced a lot, it would nice to have a really quick identifier unique within a SchemaContext instance.
We have implemented something similar for declared statements in yang-parser-impl by each substatement track the (int) offset in which it appears in its parent.
This allows quick lookups in the form of /2/7/0/1 to express the SchemaPath within a SchemaContext – extremely useful when there is some schema-specific state being tracked.
Attachments
Issue Links
- is blocked by
-
YANGTOOLS-853 Fix EffectiveStatement namespace implementation
-
- Confirmed
-
- relates to
-
YANGTOOLS-843 The schema path should be unique to every schema node inside the module.
-
- Resolved
-