Squash self-steps when parsing expression 02/86002/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Nov 2019 00:17:33 +0000 (01:17 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Nov 2019 01:04:34 +0000 (02:04 +0100)
commita23240717beac38a261da4daccdae1018f4429d7
treea59fc041a54db6c999ee88c4ffc6b129236a4318
parent920e8373050d1221c2bdd7c2226491c539bd7678
Squash self-steps when parsing expression

There is no point to repeat self-reference steps, make sure we
skip them when creating a location path. This results in slightly
smaller expressions as well as more obvious comparisons.

JIRA: YANGTOOLS-1045
Change-Id: If681dce2a6bc7155965fed91c47f19f2c541805a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 63b3f4804b408d86a27a6dbe80c21ea7cca921b0)
yang/yang-xpath-impl/src/main/java/org/opendaylight/yangtools/yang/xpath/impl/AntlrXPathParser.java