Removed logs and unused utility function
This commit is contained in:
		
							parent
							
								
									4b3cb641c0
								
							
						
					
					
						commit
						06ba823368
					
				@ -310,7 +310,6 @@ pub fn resolveTypeOfNode(analysis_ctx: *AnalysisContext, node: *ast.Node) ?*ast.
 | 
			
		||||
            const builtin_call = node.cast(ast.Node.BuiltinCall).?;
 | 
			
		||||
            if (!std.mem.eql(u8, analysis_ctx.tree.tokenSlice(builtin_call.builtin_token), "@import")) return null;
 | 
			
		||||
            if (builtin_call.params.len > 1) return null;
 | 
			
		||||
            std.debug.warn("Importing {}\n", .{analysis_ctx.tree.getNodeSource(node)});
 | 
			
		||||
 | 
			
		||||
            const import_param = builtin_call.params.at(0).*;
 | 
			
		||||
            if (import_param.id != .StringLiteral) return null;
 | 
			
		||||
 | 
			
		||||
@ -376,15 +376,6 @@ fn completeGlobal(id: i64, pos_index: usize, handle: *DocumentStore.Handle, conf
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn nodePosition(tree: *std.zig.ast.Tree, node: *std.zig.ast.Node) types.Position {
 | 
			
		||||
    const location = tree.tokenLocation(0, node.firstToken());
 | 
			
		||||
 | 
			
		||||
    return types.Position{
 | 
			
		||||
        .line = @intCast(i64, location.line),
 | 
			
		||||
        .character = @intCast(i64, location.column),
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn completeFieldAccess(id: i64, handle: *DocumentStore.Handle, position: types.Position, line_start_idx: usize, config: Config) !void {
 | 
			
		||||
    var arena = std.heap.ArenaAllocator.init(allocator);
 | 
			
		||||
    defer arena.deinit();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user