Reinstate "Check for nested augmentations" 33/85333/5
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 22 Oct 2019 20:20:00 +0000 (22:20 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 23 Oct 2019 12:23:12 +0000 (12:23 +0000)
commit801a53da5a59219883bb1141d2e8191c11b65f47
treed8af4066b585ba3f072820ea10a5526b6c791412
parent36c1f3025db6a33dc2ef1bd11a3c884ba88992d6
Reinstate "Check for nested augmentations"

This reverts commit 02fa7531709e3c4599bc9ec23dc605a21a711bc1, effectively
re-applying 759e69d85991edb987a760165adb83fa3f2ab67b.

We also add the mechanics needed to walk the copy history backwards, as
needed to understand the copy process.

JIRA: YANGTOOLS-956
Change-Id: I96b3afb30fdcd326ef9b780ff02ccc7f1c94e07e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/augment/AbstractAugmentStatementSupport.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/YT956Test.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/another-module.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/mainmodule.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/sub-module-1.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/sub-module-2.yang [new file with mode: 0644]
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java