Rework EffectiveStatementBase statement order restoration 67/85967/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Nov 2019 10:03:27 +0000 (11:03 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Nov 2019 10:07:13 +0000 (11:07 +0100)
commit75276bc6d944ff002de8149108d60603349d49c6
tree632c30a0cbc7f8075c9fa4cf4dccde10a0e0568a
parent3c0a8648375738abf50bc93cce5537af85cdec74
Rework EffectiveStatementBase statement order restoration

Rather than relying on mutation of effective substatements when we
are building an effective statements (and thus requiring StmtContext
to be StatementContextBase), use simple filtering to implement
statement ordering.

This limits the scope of mutable state, explains what is going
on and allows use of different StmtContext implementations.

JIRA: YANGTOOLS-1042
Change-Id: I84a2517ef0ce666fbc2f2c6faa3b0d0a43eef6eb
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/EffectiveStatementBase.java