Use simple index for feature/extension/identity 16/94116/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Dec 2020 15:28:01 +0000 (16:28 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Dec 2020 15:54:51 +0000 (16:54 +0100)
commit3cb21f96c1d8b5b22dc948a2c016180cb2456fc8
treeb0f6bddc50eca2622385e9f2dac4ba671a122fb0
parent5295529448f7988e8924e95eaaeebcf091ae42c5
Use simple index for feature/extension/identity

Modules expose these three contructs in their user-facing namespaces.

While the same is available through inference's view of things, and
it is tempting to reuse those, this is a DTO contract over provided
substatements, hence use a simple filter to construct our own view
of the contents.

This reduces the dependency on NamespaceStmtCtx, making it easier
to separate the logic the DTO logic and the inference logic.

Change-Id: I544dd0d2b7f3cf07ea71f1075571056a0c62682d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/module/ModuleEffectiveStatementImpl.java