mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Cosmetics.
This commit is contained in:
parent
6b5824dedf
commit
bc9d25dd8c
1 changed files with 6 additions and 8 deletions
|
@ -128,8 +128,7 @@ public abstract class ASTNode implements IASTNode {
|
|||
return locations;
|
||||
if (length == 0) {
|
||||
locations= EMPTY_LOCATION_ARRAY;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
final IASTTranslationUnit tu= getTranslationUnit();
|
||||
if (tu != null) {
|
||||
ILocationResolver l= (ILocationResolver) tu.getAdapter(ILocationResolver.class);
|
||||
|
@ -193,8 +192,7 @@ public abstract class ASTNode implements IASTNode {
|
|||
ILocationResolver lr= (ILocationResolver) ast.getAdapter(ILocationResolver.class);
|
||||
if (lr != null) {
|
||||
fileLocation= lr.getMappedFileLocation(offset, length);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// support for old location map
|
||||
fileLocation= ast.flattenLocationsToFile(getNodeLocations());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue