mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 19:55:45 +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) {
|
private boolean isCommentOnSameLine(IASTNode node) {
|
||||||
if (node.getFileLocation() == null) {
|
IASTFileLocation fileLocation = node.getFileLocation();
|
||||||
return false;
|
return fileLocation != null &&
|
||||||
} else {
|
commentNodeLocation.getStartingLineNumber() == fileLocation.getEndingLineNumber();
|
||||||
return commentNodeLocation.getStartingLineNumber() == node.getFileLocation()
|
|
||||||
.getEndingLineNumber();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue