mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 495095 - Consider local variables for parameter guessing
Change-Id: I3e31a508a795b4e7f56d3e4407914d46bf4803ec
This commit is contained in:
parent
f184c70bdb
commit
efdd3c7986
1 changed files with 1 additions and 1 deletions
|
@ -696,7 +696,7 @@ public class DOMCompletionProposalComputer extends ParsingBasedProposalComputer
|
|||
IASTTranslationUnit ast = node.getTranslationUnit();
|
||||
IASTName name = ast.getASTNodeFactory().newName(token.getCharImage());
|
||||
((ASTNode) name).setOffsetAndLength(token.getOffset(), 0);
|
||||
name.setParent(completionStatement.getParent());
|
||||
name.setParent(completionStatement);
|
||||
IBinding[] bindings = findBindingsForContextAssist(name, ast);
|
||||
|
||||
if (bindings.length == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue