Invert SchemaInferenceStack's deque

Description

SchemaTreeInferenceStack.deque is currently being used as a stack, with push()/pop() being the predominant operations. This leads to the deque being organized on the opposite direction of statement tree and therefore we need to be careful not to use it a Collection and instead use descendingIterator() when interfacing with other constructs.

Invert the ordering of the deque, so that its iterator() order matches the path from root. This will improve interoperability with other constructs, improve debugging experience and allow us to use things like ImmutableList.copyOf()/Collection.addAll().

Activity

Show:
Done

Details

Assignee

Reporter

Components

Fix versions

Priority

Created April 10, 2022 at 3:54 PM
Updated June 13, 2022 at 9:36 AM
Resolved April 14, 2022 at 10:49 AM