Class PatchedLookAheadPreservingNodeModelBuilder


  • public class PatchedLookAheadPreservingNodeModelBuilder
    extends org.eclipse.xtext.nodemodel.impl.NodeModelBuilder
    Copied from LookAheadPreservingNodeModelBuilder adapted to fix the issue https://github.com/eclipse/xtext-xtend/issues/1067 and https://github.com/eclipse/xsemantics/issues/155
    Author:
    Lorenzo Bettini
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void replaceAndTransferLookAhead​(org.eclipse.xtext.nodemodel.INode oldNode, org.eclipse.xtext.nodemodel.INode newRootNode)  
      • Methods inherited from class org.eclipse.xtext.nodemodel.impl.NodeModelBuilder

        addChild, associateWithSemanticElement, checkValidNewChild, compressAndReturnParent, initializeFirstChildInvariant, newCompositeNode, newCompositeNodeAsParentOf, newLeafNode, newRootNode, replace, replaceByRootNode, replaceChildren, replaceWithoutChildren, setCompleteContent, setForcedFirstGrammarElement, setLookAhead, setSyntaxError
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PatchedLookAheadPreservingNodeModelBuilder

        public PatchedLookAheadPreservingNodeModelBuilder()
    • Method Detail

      • replaceAndTransferLookAhead

        public void replaceAndTransferLookAhead​(org.eclipse.xtext.nodemodel.INode oldNode,
                                                org.eclipse.xtext.nodemodel.INode newRootNode)
        Overrides:
        replaceAndTransferLookAhead in class org.eclipse.xtext.nodemodel.impl.NodeModelBuilder