aboutsummaryrefslogtreecommitdiff
path: root/src/server/hover.odin
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-03-19 20:44:29 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-03-19 20:44:29 +0100
commitedcf80026173f9d20ca2df6f574640302bed4bdf (patch)
tree0954d648e812151403ce133f5b956219d455a3cb /src/server/hover.odin
parent06b76ac1ee9d8f607d944ce9757ebe40adefcf2a (diff)
Prepare for rename
Diffstat (limited to 'src/server/hover.odin')
-rw-r--r--src/server/hover.odin10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/hover.odin b/src/server/hover.odin
index a5c3b5e..4286ee8 100644
--- a/src/server/hover.odin
+++ b/src/server/hover.odin
@@ -127,10 +127,10 @@ get_hover_information :: proc(document: ^common.Document, position: common.Posit
for name, i in v.names {
if strings.compare(name, field) == 0 {
if symbol, ok := resolve_type_expression(&ast_context, v.types[i]); ok {
- symbol.name = name //TODO refractor - never set symbol name after creation - change writer_hover_content
- symbol.pkg = selector.name
+ symbol.name = name //TODO refractor - never set symbol name after creation - change writer_hover_content
+ symbol.pkg = selector.name
symbol.signature = common.node_to_string(v.types[i])
- hover.contents = write_hover_content(&ast_context, symbol)
+ hover.contents = write_hover_content(&ast_context, symbol)
return hover, true
}
}
@@ -147,8 +147,8 @@ get_hover_information :: proc(document: ^common.Document, position: common.Posit
}
}
} else if position_context.identifier != nil {
- ast_context.use_locals = true
- ast_context.use_globals = true
+ ast_context.use_locals = true
+ ast_context.use_globals = true
ast_context.current_package = ast_context.document_package
ident := position_context.identifier.derived.(^ast.Ident)^