Community
Participate
Working Groups
Looks like this was really needed in only the packrat parser. You can also access the feature of a leaf node by finding the node of its assignment and reading it from the grammar model. As this is a change in API, it will not be fixed in 1.0.
LeafNode.feature was available a long time before the packrat parser. However, as Jan is right with his remark, we should get rid of it and replace it by a derived property. This will save many null-references in the node model and thereby slightly reduce the memory footprint. At least the profile showed a great many of null values for this feature. See also bug 264846.
The rewritten node model does not expose INode#getFeature
Closing all bugs that were set to RESOLVED before Neon.0