Skip to content
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

Add query functions on TypeDefinition #5285

Open
Tracked by #4594
jfecher opened this issue Jun 18, 2024 · 0 comments
Open
Tracked by #4594

Add query functions on TypeDefinition #5285

jfecher opened this issue Jun 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jfecher
Copy link
Contributor

jfecher commented Jun 18, 2024

Problem

To work with TypeDefinition objects the user needs to be provided some query functions to be able to inspect the type.

Happy Case

We should add at least:

  • fn generics(self) -> [Token]
  • fn as_type(self) -> Type
  • fn fields(self) -> [(Token, Type)]

Project Impact

None

Impact Context

No response

Workaround

None

Workaround Description

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant