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
Sometimes a given rendered will expose various options, e.g. text wrapping in the code renderers, or the using / Imports / static usings when rendering a type name, or the number of spaces to indent.
If a renderer supports various options, there should be a class describing those options, and a static instance of the class e.g. at CSharpRenderOptions.Current. The options should not be set per call, but rather per visitor/writer.
This also allows the renderer at the C# key to be overridden with another rendering function, perhaps with its own option mechanism.
As long as these option classes are serializable, the visualizer can support passing them back and forth.
We'll open individual issues for each writer/visitor, to describe the available options.
The text was updated successfully, but these errors were encountered:
Sometimes a given rendered will expose various options, e.g. text wrapping in the code renderers, or the
using
/Imports
/static using
s when rendering a type name, or the number of spaces to indent.If a renderer supports various options, there should be a class describing those options, and a static instance of the class e.g. at
CSharpRenderOptions.Current
. The options should not be set per call, but rather per visitor/writer.This also allows the renderer at the C# key to be overridden with another rendering function, perhaps with its own option mechanism.
As long as these option classes are serializable, the visualizer can support passing them back and forth.
We'll open individual issues for each writer/visitor, to describe the available options.
The text was updated successfully, but these errors were encountered: