private OccurrenceLocation getLocationForFirstToken(ASTNode node) { try { int nextEndOffset= new TokenScanner(fASTRoot.getTypeRoot()).getNextEndOffset(node.getStartPosition(), true); return new OccurrenceLocation(node.getStartPosition(), nextEndOffset - node.getStartPosition(), 0, fDescription); } catch (CoreException e) { // ignore } return new OccurrenceLocation(node.getStartPosition(), node.getLength(), 0, fDescription); }
private OccurrenceLocation getLocationForFirstToken(ASTNode node) { try { int nextEndOffset= new TokenScanner(fASTRoot.getTypeRoot()).getNextEndOffset(node.getStartPosition(), true); return new OccurrenceLocation(node.getStartPosition(), nextEndOffset - node.getStartPosition(), 0, fDescription); } catch (CoreException e) { // ignore } return new OccurrenceLocation(node.getStartPosition(), node.getLength(), 0, fDescription); }