commit e8cc1017dabed9e735ff5e6a682329afb7480461 (tree)
parent e1f5ad3cc875d255946cafc92e0b415a285919c9
Author: Loris Cro <kappaloris@gmail.com>
Date: Sun, 7 May 2023 13:58:53 +0200
Merge pull request #15594 from der-teufel-programming/autodoc-tldocs
Autodoc: Add gathering of top-level doc comments for imported files
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/Autodoc.zig b/src/Autodoc.zig
@@ -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{