From dcd50ee6cf5444dac3cca1b14ae59893afcd3ebf Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Wed, 8 May 2024 21:30:30 +0200 Subject: Add a .Type SymbolType enum --- src/server/analysis.odin | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/analysis.odin') diff --git a/src/server/analysis.odin b/src/server/analysis.odin index a75b574..b52890b 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -2659,7 +2659,7 @@ make_symbol_array_from_ast :: proc( ) -> Symbol { symbol := Symbol { range = common.get_token_range(v.node, ast_context.file.src), - type = .Constant, + type = .Type, pkg = get_package_from_node(v.node), name = name.name, } @@ -2685,7 +2685,7 @@ make_symbol_dynamic_array_from_ast :: proc( ) -> Symbol { symbol := Symbol { range = common.get_token_range(v.node, ast_context.file.src), - type = .Constant, + type = .Type, pkg = get_package_from_node(v.node), name = name.name, } @@ -2704,7 +2704,7 @@ make_symbol_matrix_from_ast :: proc( ) -> Symbol { symbol := Symbol { range = common.get_token_range(v.node, ast_context.file.src), - type = .Constant, + type = .Type, pkg = get_package_from_node(v.node), name = name.name, } @@ -2726,7 +2726,7 @@ make_symbol_multi_pointer_from_ast :: proc( ) -> Symbol { symbol := Symbol { range = common.get_token_range(v.node, ast_context.file.src), - type = .Constant, + type = .Type, pkg = get_package_from_node(v.node), name = name.name, } @@ -2745,7 +2745,7 @@ make_symbol_map_from_ast :: proc( ) -> Symbol { symbol := Symbol { range = common.get_token_range(v.node, ast_context.file.src), - type = .Constant, + type = .Type, pkg = get_package_from_node(v.node), name = name.name, } -- cgit v1.2.3