Skip to content

Commit e8cc101

Browse files
authored
Merge pull request #15594 from der-teufel-programming/autodoc-tldocs
Autodoc: Add gathering of top-level doc comments for imported files
2 parents e1f5ad3 + c40a1ee commit e8cc101

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Autodoc.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,12 @@ fn walkInstruction(
996996
};
997997
}
998998

999+
const maybe_tldoc_comment = try self.getTLDocComment(new_file.file);
1000+
try self.ast_nodes.append(self.arena, .{
1001+
.name = path,
1002+
.docs = maybe_tldoc_comment,
1003+
});
1004+
9991005
result.value_ptr.* = self.types.items.len;
10001006

10011007
var new_scope = Scope{

0 commit comments

Comments
 (0)