mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 20:13:21 +00:00
Merge pull request #15594 from der-teufel-programming/autodoc-tldocs
Autodoc: Add gathering of top-level doc comments for imported files
This commit is contained in:
commit
e8cc1017da
@ -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{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user