From 500322e6866bb46ffa405ef031f908594a23f643 Mon Sep 17 00:00:00 2001 From: Daniel Gavin Date: Thu, 22 Apr 2021 16:50:08 +0200 Subject: remove dead code comment --- src/server/analysis.odin | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/server') diff --git a/src/server/analysis.odin b/src/server/analysis.odin index f1e5041..d706ebb 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -740,19 +740,6 @@ resolve_type_identifier :: proc(ast_context: ^AstContext, node: ast.Ident) -> (i } } - /* - //handle all the recursive identifier nonsense + shadowing - if node.name == ast_context.last_ident_lookup { - //ERROR NO COMPLETION ON LOCAL - if local, is_local := ast_context.locals[node.name]; is_local && len(local) == 1 { - - //return {}, false; - } else if _, is_global := ast_context.globals[node.name]; is_global { - return {}, false; - } - } - */ - ast_context.last_ident_lookup = node.name; //note(Daniel, if global and local ends up being 100% same just make a function that takes the map) -- cgit v1.2.3