diff --git a/src/analysis.zig b/src/analysis.zig index f49c584..8b5b980 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -1691,7 +1691,6 @@ fn addOutlineNodes(allocator: std.mem.Allocator, tree: Ast, child: Ast.Node.Inde .@"if", .if_simple, .multiline_string_literal, - .@"anytype", .block, .block_semicolon, .block_two, @@ -2295,8 +2294,9 @@ const CompletionContext = struct { return @truncate(u32, std.hash.Wyhash.hash(0, item.label)); } - pub fn eql(self: @This(), a: types.CompletionItem, b: types.CompletionItem) bool { + pub fn eql(self: @This(), a: types.CompletionItem, b: types.CompletionItem, b_index: usize) bool { _ = self; + _ = b_index; return std.mem.eql(u8, a.label, b.label); } }; @@ -3078,7 +3078,6 @@ fn makeScopeInternal(allocator: std.mem.Allocator, context: ScopeContext, node_i .asm_output, .asm_input, .error_value, - .@"anytype", .multiline_string_literal, .string_literal, .enum_literal, diff --git a/src/ast.zig b/src/ast.zig index 7434f0e..1689a73 100644 --- a/src/ast.zig +++ b/src/ast.zig @@ -451,7 +451,6 @@ pub fn lastToken(tree: Ast, node: Ast.Node.Index) Ast.TokenIndex { .error_value, => return datas[n].rhs + end_offset, - .@"anytype", .anyframe_literal, .char_literal, .integer_literal, diff --git a/src/semantic_tokens.zig b/src/semantic_tokens.zig index 63ff737..beb448d 100644 --- a/src/semantic_tokens.zig +++ b/src/semantic_tokens.zig @@ -778,9 +778,6 @@ fn writeNodeTokens(builder: *Builder, arena: *std.heap.ArenaAllocator, store: *D try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, asm_node.ast.template }); // TODO Inputs, outputs. }, - .@"anytype" => { - try writeToken(builder, main_token, .type); - }, .test_decl => { if (analysis.getDocCommentTokenIndex(token_tags, main_token)) |doc| try writeDocComments(builder, tree, doc);