autodoc: Add gathering of top-level doc comments for imported files

This commit is contained in:
Krzysztof Wolicki
2023-05-06 02:51:53 +02:00
parent 4bfd37ddb4
commit c40a1ee224

View File

@@ -996,6 +996,12 @@ fn walkInstruction(
};
}
const maybe_tldoc_comment = try self.getTLDocComment(new_file.file);
try self.ast_nodes.append(self.arena, .{
.name = path,
.docs = maybe_tldoc_comment,
});
result.value_ptr.* = self.types.items.len;
var new_scope = Scope{