Closed jfecher closed 1 week ago
To work with TypeDefinition objects the user needs to be provided some query functions to be able to inspect the type.
TypeDefinition
We should add at least:
fn generics(self) -> [Token]
fn as_type(self) -> Type
fn fields(self) -> [(Token, Type)]
None
No response
Implemented by https://github.com/noir-lang/noir/pull/5310
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