Merge pull request #453 from hexops/master
update for anytype field yeeting
This commit is contained in:
commit
f3aabd6b7c
@ -1691,7 +1691,6 @@ fn addOutlineNodes(allocator: std.mem.Allocator, tree: Ast, child: Ast.Node.Inde
|
|||||||
.@"if",
|
.@"if",
|
||||||
.if_simple,
|
.if_simple,
|
||||||
.multiline_string_literal,
|
.multiline_string_literal,
|
||||||
.@"anytype",
|
|
||||||
.block,
|
.block,
|
||||||
.block_semicolon,
|
.block_semicolon,
|
||||||
.block_two,
|
.block_two,
|
||||||
@ -2295,8 +2294,9 @@ const CompletionContext = struct {
|
|||||||
return @truncate(u32, std.hash.Wyhash.hash(0, item.label));
|
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;
|
_ = self;
|
||||||
|
_ = b_index;
|
||||||
return std.mem.eql(u8, a.label, b.label);
|
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_output,
|
||||||
.asm_input,
|
.asm_input,
|
||||||
.error_value,
|
.error_value,
|
||||||
.@"anytype",
|
|
||||||
.multiline_string_literal,
|
.multiline_string_literal,
|
||||||
.string_literal,
|
.string_literal,
|
||||||
.enum_literal,
|
.enum_literal,
|
||||||
|
@ -451,7 +451,6 @@ pub fn lastToken(tree: Ast, node: Ast.Node.Index) Ast.TokenIndex {
|
|||||||
.error_value,
|
.error_value,
|
||||||
=> return datas[n].rhs + end_offset,
|
=> return datas[n].rhs + end_offset,
|
||||||
|
|
||||||
.@"anytype",
|
|
||||||
.anyframe_literal,
|
.anyframe_literal,
|
||||||
.char_literal,
|
.char_literal,
|
||||||
.integer_literal,
|
.integer_literal,
|
||||||
|
@ -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 });
|
try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, asm_node.ast.template });
|
||||||
// TODO Inputs, outputs.
|
// TODO Inputs, outputs.
|
||||||
},
|
},
|
||||||
.@"anytype" => {
|
|
||||||
try writeToken(builder, main_token, .type);
|
|
||||||
},
|
|
||||||
.test_decl => {
|
.test_decl => {
|
||||||
if (analysis.getDocCommentTokenIndex(token_tags, main_token)) |doc|
|
if (analysis.getDocCommentTokenIndex(token_tags, main_token)) |doc|
|
||||||
try writeDocComments(builder, tree, doc);
|
try writeDocComments(builder, tree, doc);
|
||||||
|
Loading…
Reference in New Issue
Block a user