mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 19:25:38 +02:00
Code streamlining.
This commit is contained in:
parent
e543e223a4
commit
12d8ae41e2
1 changed files with 3 additions and 6 deletions
|
@ -83,12 +83,9 @@ public class ASTCommenter {
|
|||
}
|
||||
|
||||
private boolean isCommentOnSameLine(IASTNode node) {
|
||||
if (node.getFileLocation() == null) {
|
||||
return false;
|
||||
} else {
|
||||
return commentNodeLocation.getStartingLineNumber() == node.getFileLocation()
|
||||
.getEndingLineNumber();
|
||||
}
|
||||
IASTFileLocation fileLocation = node.getFileLocation();
|
||||
return fileLocation != null &&
|
||||
commentNodeLocation.getStartingLineNumber() == fileLocation.getEndingLineNumber();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue