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:
Loris Cro 2023-05-07 13:58:53 +02:00 committed by GitHub
commit e8cc1017da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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{