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;