Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Bracket collection literals should be represented separately from ConstantNode #1164
As of ODL 7.4.x, bracket collection literals (e.g. [1,2,3]) are represented as ConstantNode.
This creates ambiguity as the literal is a collection, yet it's created as a SingleValueNode. The ideal approach is to have a separate CollectionConstantNode that derives from CollectionNode. However, adjusting this logic for bracket collection literals would be a breaking change, so we should consider this change for the next version of ODL.
See ConstantNode implementation.