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
For the factory methods renderer, and pending #8, we could also define variables for other reused elements, such as MethodInfo instances. Instead of returning something like this:
The text was updated successfully, but these errors were encountered:
zspitz
changed the title
Factory methods renderer: create variables for reused elements, such as MethodInfo
Factory methods renderer: create variables for reflection elements
Aug 26, 2020
This seems to be technically unfeasable. Within a given insertion point (each of which has its own StringBuilder) we allow only forward-only writing. The first time a given reflection element is encountered, we would write it out entirely, within the method calls. Then the next time, we'd have to go back and replace the reflection code with the variable name.
Alternatively, we might use variables for every reflection element, but that would obscure what is being passed into the method.
For the factory methods renderer, and pending #8, we could also define variables for other reused elements, such as MethodInfo instances. Instead of returning something like this:
we could return something like this:
The text was updated successfully, but these errors were encountered: