The reflection API currently allows looking up entry points to a program and inspecting their arguments.
It would be very useful to have the same capability for all functions and methods in a program. This could look similar to the current EntryPoint API. At a basic level:
A way to enumerate a list of globally visible functions by index or name, similar to entry point reflection; and a way to enumerate struct methods, similar to member reflection.
A way to query function arguments and return type, similar to entry point reflection.
Nice-to-haves:
Querying default parameters and their values
Querying attributes
If the function is generic, querying generic type parameters and constraints.
The reflection API currently allows looking up entry points to a program and inspecting their arguments.
It would be very useful to have the same capability for all functions and methods in a program. This could look similar to the current EntryPoint API. At a basic level:
Nice-to-haves: