Skip to content

Automatically collect parameter & return types of builtins #2326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 29, 2025

Conversation

FnControlOption
Copy link
Contributor

@FnControlOption FnControlOption commented May 19, 2025

Closes #2325

Related: #912

Modified data.Builtin to have the following fields:

  • return_type: []const u8
  • parameters: []const Parameter fields

The data.Builtin.Parameter struct has the following fields:

  • signature: []const u8
  • type: ?[]const u8

@Techatrix
Copy link
Member

To close #2325, the manually resolved parameters in completions.zig should be removed as well.

@FnControlOption FnControlOption marked this pull request as draft May 22, 2025 00:24
@FnControlOption FnControlOption marked this pull request as ready for review May 24, 2025 01:52
@Techatrix Techatrix merged commit 388bdf8 into zigtools:master May 29, 2025
6 checks passed
@FnControlOption FnControlOption deleted the builtin branch May 29, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

automatically collect parameter types of builtins
2 participants