1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2016-02-08 15:24:40 -08:00
parent 4de8d04803
commit 54a5bd35c8
2 changed files with 2 additions and 4 deletions

View file

@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.cdt.core.dom.ast;
/**
* Interface for a code completion's context. Used for context-sensitive
* finding of bindings with a certain name or prefix.
@ -20,7 +19,6 @@ package org.eclipse.cdt.core.dom.ast;
* @since 4.0
*/
public interface IASTCompletionContext {
/**
* Returns bindings that start with the given name or prefix, only
* considering those that are valid for this context.

View file

@ -142,7 +142,7 @@ public class CPPASTFieldReference extends ASTNode
return fImplicitNames = IASTImplicitName.EMPTY_NAME_ARRAY;
// Collect the function bindings
List<ICPPFunction> functionBindings = new ArrayList<ICPPFunction>();
List<ICPPFunction> functionBindings = new ArrayList<>();
EvalMemberAccess.getFieldOwnerType(fOwner.getExpressionType(), fIsDeref, this, functionBindings, false);
if (functionBindings.isEmpty())
return fImplicitNames = IASTImplicitName.EMPTY_NAME_ARRAY;
@ -228,7 +228,7 @@ public class CPPASTFieldReference extends ASTNode
@Override
public IBinding[] findBindings(IASTName n, boolean isPrefix, String[] namespaces) {
IBinding[] bindings = CPPSemantics.findBindingsForContentAssist(n, isPrefix, namespaces);
List<IBinding> filtered = new ArrayList<IBinding>();
List<IBinding> filtered = new ArrayList<>();
for (IBinding binding : bindings) {
if (binding instanceof ICPPMethod) {