1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Added yield() signal smart autocompletion.

This commit is contained in:
Juan Linietsky
2016-08-06 22:11:03 -03:00
parent 3d7c10e9ce
commit 6671c6bdc7
3 changed files with 34 additions and 1 deletions

View File

@@ -378,6 +378,21 @@ GDParser::Node* GDParser::_parse_expression(Node *p_parent,bool p_static,bool p_
tokenizer->advance();
if (tokenizer->get_token()==GDTokenizer::TK_CURSOR) {
completion_cursor=StringName();
completion_node=object;
completion_type=COMPLETION_YIELD;
completion_class=current_class;
completion_function=current_function;
completion_line=tokenizer->get_token_line();
completion_argument=0;
completion_block=current_block;
completion_found=true;
tokenizer->advance();
}
Node *signal = _parse_and_reduce_expression(p_parent,p_static);
if (!signal)
return NULL;