mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added missing @Override annotations.
This commit is contained in:
parent
5b9c3d95a5
commit
a85d7aea25
3 changed files with 32 additions and 15 deletions
|
@ -18,7 +18,6 @@ import org.eclipse.cdt.core.dom.ast.IASTParameterDeclaration;
|
|||
* @noimplement This interface is not intended to be implemented by clients.
|
||||
*/
|
||||
public interface ICPPASTParameterDeclaration extends ICPPASTTemplateParameter, IASTParameterDeclaration {
|
||||
|
||||
/**
|
||||
* @since 5.2
|
||||
*/
|
||||
|
@ -27,15 +26,18 @@ public interface ICPPASTParameterDeclaration extends ICPPASTTemplateParameter, I
|
|||
/**
|
||||
* @since 5.1
|
||||
*/
|
||||
@Override
|
||||
public ICPPASTParameterDeclaration copy();
|
||||
|
||||
/**
|
||||
* @since 5.3
|
||||
*/
|
||||
@Override
|
||||
public ICPPASTParameterDeclaration copy(CopyStyle style);
|
||||
|
||||
/**
|
||||
* @since 5.2
|
||||
*/
|
||||
@Override
|
||||
public ICPPASTDeclarator getDeclarator();
|
||||
}
|
||||
|
|
|
@ -45,10 +45,12 @@ public class CPPASTName extends CPPASTNameBase implements ICPPASTCompletionConte
|
|||
name = CharArrayUtils.EMPTY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CPPASTName copy() {
|
||||
return copy(CopyStyle.withoutLocations);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CPPASTName copy(CopyStyle style) {
|
||||
CPPASTName copy = new CPPASTName(name == null ? null : name.clone());
|
||||
copy.setOffsetAndLength(this);
|
||||
|
@ -78,6 +80,7 @@ public class CPPASTName extends CPPASTNameBase implements ICPPASTCompletionConte
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBinding[] findBindings(IASTName n, boolean isPrefix, String[] namespaces) {
|
||||
IASTNode parent = getParent();
|
||||
if (parent instanceof ICPPASTElaboratedTypeSpecifier) {
|
||||
|
@ -142,14 +145,17 @@ public class CPPASTName extends CPPASTNameBase implements ICPPASTCompletionConte
|
|||
return (IBinding[])ArrayUtil.removeNulls(IBinding.class, bindings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public char[] toCharArray() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public char[] getSimpleID() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public char[] getLookupKey() {
|
||||
return name;
|
||||
}
|
||||
|
@ -185,6 +191,7 @@ public class CPPASTName extends CPPASTNameBase implements ICPPASTCompletionConte
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBinding[] findBindings(IASTName n, boolean isPrefix) {
|
||||
return findBindings(n, isPrefix, null);
|
||||
}
|
||||
|
|
|
@ -37,14 +37,17 @@ public class CPPASTParameterDeclaration extends ASTNode implements ICPPASTParame
|
|||
setDeclarator(declarator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isParameterPack() {
|
||||
return fDeclarator != null && CPPVisitor.findInnermostDeclarator(fDeclarator).declaresParameterPack();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CPPASTParameterDeclaration copy() {
|
||||
return copy(CopyStyle.withoutLocations);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CPPASTParameterDeclaration copy(CopyStyle style) {
|
||||
CPPASTParameterDeclaration copy = new CPPASTParameterDeclaration();
|
||||
copy.setDeclSpecifier(fDeclSpec == null ? null : fDeclSpec.copy(style));
|
||||
|
@ -56,14 +59,17 @@ public class CPPASTParameterDeclaration extends ASTNode implements ICPPASTParame
|
|||
return copy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IASTDeclSpecifier getDeclSpecifier() {
|
||||
return fDeclSpec;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ICPPASTDeclarator getDeclarator() {
|
||||
return fDeclarator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeclSpecifier(IASTDeclSpecifier declSpec) {
|
||||
assertNotFrozen();
|
||||
this.fDeclSpec = declSpec;
|
||||
|
@ -73,6 +79,7 @@ public class CPPASTParameterDeclaration extends ASTNode implements ICPPASTParame
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeclarator(IASTDeclarator declarator) {
|
||||
assertNotFrozen();
|
||||
if (declarator instanceof ICPPASTDeclarator) {
|
||||
|
@ -106,6 +113,7 @@ public class CPPASTParameterDeclaration extends ASTNode implements ICPPASTParame
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void replace(IASTNode child, IASTNode other) {
|
||||
if (child == fDeclarator) {
|
||||
other.setPropertyInParent(child.getPropertyInParent());
|
||||
|
|
Loading…
Add table
Reference in a new issue