Open sandboxFocus

Enum CodeFormattingOptions

Specifies the level of formatting to apply when generating C# code.

Namespace: Metalama.Framework.Engine.Formatting
Assembly: Metalama.Framework.Sdk.dll
Syntax
public enum CodeFormattingOptions

Fields

Name Description
Default

A syntactically correct C# file must be generated, but it does not need to be nicely formatted.

Formatted

The C# code must be formatted with proper indentation and spacing.

None

The resulting tree is not safe to textualize. Only a syntax tree is produced: tokens may be left adjacent with no separator trivia, so ToFullString() generally will not round-trip through the parser. Use this only for AST-level analysis (for example, test validation of well-formedness).