Merge pull request #2918 from TheHX/pr-function-parameters

Add script auto-completion for function parameters
This commit is contained in:
Rémi Verschelde 2015-11-26 13:58:09 +01:00
commit 772900c4ff

View File

@ -1291,6 +1291,15 @@ static void _find_identifiers(GDCompletionContext& context,int p_line,bool p_onl
const GDParser::BlockNode *block=context.block; 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) { while(block) {
GDCompletionContext c = context; GDCompletionContext c = context;