Added yield() signal smart autocompletion.
This commit is contained in:
parent
3d7c10e9ce
commit
6671c6bdc7
3 changed files with 34 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue