Examples of IASTNode


Examples of org.eclipse.cdt.core.dom.ast.IASTNode

  private boolean isAppendable(final ASTModification modification) {
    if (modification.getKind() != ModificationKind.APPEND_CHILD) {
      return false;
    }
    final IASTNode node = modification.getNewNode();
    if (node instanceof ContainerNode) {
      for (final IASTNode containedNode : ((ContainerNode) node).getNodes()) {
        if (!((containedNode instanceof IASTDeclaration) || (containedNode instanceof IASTStatement))) {
          return false;
        }
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTNode

    }
  }

  private List<IASTComment> getLeadingComments(final IASTNode node) {
    final List<IASTComment> leadingComments = commentMap.getLeadingCommentsForNode(node);
    final IASTNode originalNode = node.getOriginalNode();
    if (originalNode != node) {
      leadingComments.addAll(commentMap.getLeadingCommentsForNode(originalNode));
    }
    return leadingComments;
  }
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTNode

    return !getTrailingComments(node).isEmpty();
  }

  private List<IASTComment> getTrailingComments(final IASTNode node) {
    final List<IASTComment> trailingComments = commentMap.getTrailingCommentsForNode(node);
    final IASTNode originalNode = node.getOriginalNode();
    if (originalNode != node) {
      trailingComments.addAll(commentMap.getTrailingCommentsForNode(originalNode));
    }
    return trailingComments;
  }
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTNode

    return !getFreestandingComments(node).isEmpty();
  }

  private List<IASTComment> getFreestandingComments(final IASTNode node) {
    final List<IASTComment> freestandingComments = commentMap.getFreestandingCommentsForNode(node);
    final IASTNode originalNode = node.getOriginalNode();
    if (originalNode != node) {
      freestandingComments.addAll(commentMap.getFreestandingCommentsForNode(originalNode));
    }
    return freestandingComments;
  }
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.