Package org.eclipse.xtext.parsetree.reconstr.impl

Examples of org.eclipse.xtext.parsetree.reconstr.impl.NodeIterator.previous()


    List<ILeafNode> currentComments = new ArrayList<ILeafNode>();

    NodeIterator nodeIterator = new NodeIterator(rootNode);
    // rewind to previous token with token owner
    while(nodeIterator.hasPrevious() && currentEObject == null) {
      INode node = nodeIterator.previous();
      if(tokenUtil.isToken(node)) {
        currentEObject = tokenUtil.getTokenOwner(node);
      }
    }
    while(nodeIterator.hasNext()) {
View Full Code Here


    NodeIterator nodeIterator = new NodeIterator(rootNode);

    // rewind to previous token with token owner
    while(nodeIterator.hasPrevious()) {
      INode node = nodeIterator.previous();
      if(tokenUtil.isToken(node)) {
        EObject prevEObject = tokenUtil.getTokenOwner(node);
        if(prevEObject != null) {
          // starting location
          sequence.addSemantic(prevEObject, node, getLastLeaf(node));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.