mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 12:45:41 +02:00
Cosmetics.
This commit is contained in:
parent
bf2a1b3472
commit
3df7d3854f
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ public class InsertLocation {
|
|||
return nodeToInsertBefore;
|
||||
}
|
||||
|
||||
public IASTNode getPartenOfNodeToInsertBefore() throws CoreException{
|
||||
public IASTNode getPartenOfNodeToInsertBefore() throws CoreException {
|
||||
IASTNode affectedNode = getAffectedNode();
|
||||
return (affectedNode != null) ? affectedNode.getParent() : getTargetTranslationUnit();
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ public class InsertLocation {
|
|||
targetTranslationUnit = TranslationUnitHelper.loadTranslationUnit(insertFile, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public int getInsertPosition() {
|
||||
if (nodeToInsertBefore != null) {
|
||||
return nodeToInsertBefore.getFileLocation().getNodeOffset();
|
||||
|
|
Loading…
Add table
Reference in a new issue