Fixed crash in snippet generation of varargs functions
This commit is contained in:
parent
6db3c74550
commit
112d38e7fa
@ -110,6 +110,7 @@ pub fn getFunctionSnippet(allocator: *std.mem.Allocator, tree: *ast.Tree, func:
|
||||
|
||||
if (param_decl.var_args_token) |_| {
|
||||
try buffer.appendSlice("...");
|
||||
continue;
|
||||
}
|
||||
|
||||
var curr_tok = param_decl.type_node.firstToken();
|
||||
|
@ -214,9 +214,6 @@ pub fn applyChanges(self: *DocumentStore, handle: *Handle, content_changes: std.
|
||||
// Perhaps on new sane text we can go through imports
|
||||
// and remove those that are in the import_uris table
|
||||
// but not in the file anymore.
|
||||
// @TODO: Make this hold a single tree, remove tree param
|
||||
// from analysis functions that take an import_context.
|
||||
// (can we reset-reuse it or do we need to deinit-init a new one?)
|
||||
pub const AnalysisContext = struct {
|
||||
store: *DocumentStore,
|
||||
handle: *Handle,
|
||||
|
Loading…
Reference in New Issue
Block a user