diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-31 01:05:54 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-31 01:05:54 +0100 |
| commit | e587db0c06c0972a67867282eb9f16448101f34b (patch) | |
| tree | bc2e50e55b423cc9a0757b734ae7ce902e8b95a7 /src/server/hover.odin | |
| parent | af15c040ce045df81567402cc4ce80412dd36b8f (diff) | |
Improve distinct type info
Diffstat (limited to 'src/server/hover.odin')
| -rw-r--r-- | src/server/hover.odin | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin index 443a528..e3e08fa 100644 --- a/src/server/hover.odin +++ b/src/server/hover.odin @@ -34,8 +34,8 @@ write_hover_content :: proc(ast_context: ^analysis.AstContext, symbol: index.Sym } } - build_symbol_return(&symbol); - build_symbol_signature(&symbol); + build_procedure_symbol_return(&symbol); + build_procedure_symbol_signature(&symbol); cat := concatenate_symbols_information(ast_context, symbol, false); @@ -95,9 +95,9 @@ get_hover_information :: proc(document: ^common.Document, position: common.Posit if ident.name == base.name { - if resolved, ok := resolve_type_identifier(&ast_context, ident); ok { - resolved.name = ident.name; + if resolved, ok := resolve_type_identifier(&ast_context, ident); ok { resolved.signature = get_signature(&ast_context, ident, resolved); + resolved.name = ident.name; if is_variable, ok := ast_context.variables[ident.name]; ok && is_variable { resolved.pkg = ast_context.document_package; @@ -162,9 +162,9 @@ get_hover_information :: proc(document: ^common.Document, position: common.Posit hover.range = common.get_token_range(position_context.identifier^, document.ast.src); - if resolved, ok := resolve_type_identifier(&ast_context, ident); ok { - resolved.name = ident.name; + if resolved, ok := resolve_type_identifier(&ast_context, ident); ok { resolved.signature = get_signature(&ast_context, ident, resolved); + resolved.name = ident.name; if is_variable, ok := ast_context.variables[ident.name]; ok && is_variable { resolved.pkg = ast_context.document_package; |