You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for the use of enum arguments in ToString #92
Add support for using enums in ToString in addition to strings. Developers can't remember the available string option values, but could use Intellisense to view and select their desired value.
Ah, ok. Yeah, Intellisense won't recognize that parameter definition.
Your approach is definitely creative, but beyond the capability of IDEs to handle. The IDE is scanning the parameter types and when it sees OneOf<,>, it has no clue what a OneOf does or how it should interpret the type parameters defined for it.
You might consider two overloads,:
ToString(string, string)
ToString(BuiltinRender, Language)
That should solve the issue. It is a nice tool. I searched for a long time before I found it!
Activity
zspitz commentedon Dec 14, 2022
There is an enum at
ExpressionTreeToString.BuiltInRenderer.I don't know why Intellisense isn't displaying all the members, though:
Ephron-WL commentedon Dec 14, 2022
Ah, ok. Yeah, Intellisense won't recognize that parameter definition.
Your approach is definitely creative, but beyond the capability of IDEs to handle. The IDE is scanning the parameter types and when it sees OneOf<,>, it has no clue what a OneOf does or how it should interpret the type parameters defined for it.
You might consider two overloads,:
That should solve the issue. It is a nice tool. I searched for a long time before I found it!