Merge pull request #2918 from TheHX/pr-function-parameters
Add script auto-completion for function parameters
This commit is contained in:
commit
772900c4ff
|
@ -1291,6 +1291,15 @@ static void _find_identifiers(GDCompletionContext& context,int p_line,bool p_onl
|
|||
|
||||
const GDParser::BlockNode *block=context.block;
|
||||
|
||||
if (context.function) {
|
||||
|
||||
const GDParser::FunctionNode* f = context.function;
|
||||
|
||||
for (int i=0;i<f->arguments.size();i++) {
|
||||
result.insert(f->arguments[i].operator String());
|
||||
}
|
||||
}
|
||||
|
||||
while(block) {
|
||||
|
||||
GDCompletionContext c = context;
|
||||
|
|
Loading…
Reference in New Issue