mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Do ctrl-click on any code identifier to go to definiton or help page.
This commit is contained in:
parent
78f92dbcb9
commit
37f1e86108
12 changed files with 778 additions and 9 deletions
|
@ -203,6 +203,7 @@ bool GDParser::_get_completable_identifier(CompletionType p_type,StringName& ide
|
|||
completion_line=tokenizer->get_token_line();
|
||||
completion_block=current_block;
|
||||
completion_found=true;
|
||||
completion_ident_is_call=false;
|
||||
tokenizer->advance();
|
||||
|
||||
if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER) {
|
||||
|
@ -210,6 +211,9 @@ bool GDParser::_get_completable_identifier(CompletionType p_type,StringName& ide
|
|||
tokenizer->advance();
|
||||
}
|
||||
|
||||
if (tokenizer->get_token()==GDTokenizer::TK_PARENTHESIS_OPEN) {
|
||||
completion_ident_is_call=true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3552,6 +3556,11 @@ int GDParser::get_completion_argument_index() {
|
|||
return completion_argument;
|
||||
}
|
||||
|
||||
int GDParser::get_completion_identifier_is_function() {
|
||||
|
||||
return completion_ident_is_call;
|
||||
}
|
||||
|
||||
GDParser::GDParser() {
|
||||
|
||||
head=NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue