Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313879

Summary: [Node model] LeafNode.feature is obsolete
Product: [Modeling] TMF Reporter: Jan Koehnlein <jan>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 1.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: M4   
Hardware: All   
OS: All   
Whiteboard:

Description Jan Koehnlein CLA 2010-05-21 04:33:17 EDT
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.
Comment 1 Sebastian Zarnekow CLA 2010-06-25 11:48:58 EDT
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.
Comment 2 Sebastian Zarnekow CLA 2010-12-13 17:14:06 EST
The rewritten node model does not expose INode#getFeature
Comment 3 Karsten Thoms CLA 2017-09-19 17:58:33 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:09:19 EDT
Closing all bugs that were set to RESOLVED before Neon.0