Class
PrinterOptions
class PrinterOptions
Namespace: Raven.CodeAnalysis.Syntax
Assembly: Raven.CodeAnalysis.dll
Source file: PrettySyntaxTreePrinter.cs
Inheritance: Object → PrinterOptions
Constructors
1 item
PrinterOptions()
No summary available.
Properties
12 items
AnnotationsAsChildren: bool
When true, annotations are printed as separate child lines under the owning node (instead of inline on the same line).
Colorize: bool
When true, uses ANSI escape codes to colorize output for easier visual scanning.
DiagnosticsAsChildren: bool
When true, diagnostics are printed as separate child lines under the owning node (instead of inline on the same line).
ExpandListsAsProperties: bool
When true, groups list items under a single property node (instead of printing each list item as a separate child).
IncludeAnnotations: bool
When true, prints annotations attached to nodes/tokens/trivia.
IncludeDiagnostics: bool
When true, prints diagnostics attached to nodes/tokens/trivia.
IncludeLocations: bool
When true, appends each node/token/trivia location (line/column range) to the printed line.
IncludeNames: bool
When true, prints property names (e.g. "Condition:") for children when available.
IncludeSpans: bool
When true, appends each node/token/trivia span (TextSpan) to the printed line.
IncludeTokens: bool
When true, prints token children (SyntaxToken) in the tree. When false, tokens are omitted.
IncludeTrivia: bool
When true, prints leading/trailing trivia for tokens (whitespace, comments, newlines, etc.).
MaxDepth: int
Maximum recursion depth to print. Nodes deeper than this are not printed.
Methods
4 items
Equals(obj: object?) -> bool
Determines whether the specified object is equal to the current object.
Inherited from Object.Equals
GetHashCode() -> int
Serves as the default hash function.
Inherited from Object.GetHashCode
GetType() -> Type
Gets the System.Type of the current instance.
Inherited from Object.GetType
ToString() -> string?
Returns a string that represents the current object.
Inherited from Object.ToString