Examples of IASTMacroExpansionLocation


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

  protected boolean macroExpansionAlreadyPrinted(final IASTNode node) {
    final IASTNodeLocation[] locs = node.getNodeLocations();
    if (locs.length == 1) {
      if (locs[0] instanceof IASTMacroExpansionLocation) {
        final IASTMacroExpansionLocation macroNode = (IASTMacroExpansionLocation) locs[0];
        if (macroNode.asFileLocation().getNodeOffset() == lastMacroExpOffset) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

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

      initEmptyMacros(unit);
    }
    final IASTNodeLocation[] locs = getNodeLocations(node);
    if ((locs != null) && (locs.length == 1)) {
      if (locs[0] instanceof IASTMacroExpansionLocation) {
        final IASTMacroExpansionLocation macroNode = (IASTMacroExpansionLocation) locs[0];

        if (macroNode.asFileLocation().getNodeOffset() == lastMacroExpOffset) {
          return true;
        }
        if (write) {
          lastMacroExpOffset = macroNode.asFileLocation().getNodeOffset();
          node = node.getOriginalNode();
          scribe.print(node.getRawSignature());
        }
        return true;
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.