BUG-4688: Fix IncludedSubmoduleNameToIdentifier namespace 62/64562/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 20 Oct 2017 09:09:46 +0000 (11:09 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 20 Oct 2017 10:00:25 +0000 (12:00 +0200)
commitfea100660148b5b6bc4a7ddbeee5b43dc125a6fd
tree1989efde876219fa07bea848da18f71aba6f817e
parent09918c9d64460c271e07f72108f7802e7aebe8b8
BUG-4688: Fix IncludedSubmoduleNameToIdentifier namespace

This namespace is used as an indirection towards lookup of submodule's
StmtContext. This is completely unnecessary, as we can easily store
the context in the namespace, as we already have it available when
include statement's prerequisite is resolved.

This eliminates the need for a ModuleIdentifier-based lookup.

Change-Id: I21b0aad832cad57ad35980df4e0b33b44d77b084
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/IncludeStatementImpl.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/YangInferencePipeline.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/AbstractEffectiveModule.java
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/source/IncludedSubmoduleNameToModuleCtx.java [moved from yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/source/IncludedSubmoduleNameToIdentifier.java with 74% similarity]