mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
Cosmetics.
This commit is contained in:
parent
35a973d9a5
commit
b7807b8a16
3 changed files with 24 additions and 30 deletions
|
@ -51,11 +51,7 @@ public class CASTIdExpression extends ASTNode implements IASTIdExpression, IASTC
|
||||||
@Override
|
@Override
|
||||||
public CASTIdExpression copy(CopyStyle style) {
|
public CASTIdExpression copy(CopyStyle style) {
|
||||||
CASTIdExpression copy = new CASTIdExpression(name == null ? null : name.copy(style));
|
CASTIdExpression copy = new CASTIdExpression(name == null ? null : name.copy(style));
|
||||||
copy.setOffsetAndLength(this);
|
return copy(copy, style);
|
||||||
if (style == CopyStyle.withLocations) {
|
|
||||||
copy.setCopyLocation(this);
|
|
||||||
}
|
|
||||||
return copy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -48,11 +48,7 @@ public class CPPASTIdExpression extends ASTNode implements IASTIdExpression, ICP
|
||||||
@Override
|
@Override
|
||||||
public CPPASTIdExpression copy(CopyStyle style) {
|
public CPPASTIdExpression copy(CopyStyle style) {
|
||||||
CPPASTIdExpression copy = new CPPASTIdExpression(name == null ? null : name.copy(style));
|
CPPASTIdExpression copy = new CPPASTIdExpression(name == null ? null : name.copy(style));
|
||||||
copy.setOffsetAndLength(this);
|
return copy(copy, style);
|
||||||
if (style == CopyStyle.withLocations) {
|
|
||||||
copy.setCopyLocation(this);
|
|
||||||
}
|
|
||||||
return copy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -94,7 +90,8 @@ public class CPPASTIdExpression extends ASTNode implements IASTIdExpression, ICP
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getRoleForName(IASTName n) {
|
public int getRoleForName(IASTName n) {
|
||||||
if (name == n) return r_reference;
|
if (name == n)
|
||||||
|
return r_reference;
|
||||||
return r_unclear;
|
return r_unclear;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -239,6 +239,7 @@ public class CPPVisitor extends ASTQueries {
|
||||||
return new HashSet<IASTDeclSpecifier>();
|
return new HashSet<IASTDeclSpecifier>();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IBinding createBinding(IASTName name) {
|
public static IBinding createBinding(IASTName name) {
|
||||||
IASTNode parent = name.getParent();
|
IASTNode parent = name.getParent();
|
||||||
IBinding binding = null;
|
IBinding binding = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue