A set of extended options supported when printing in LES3.
This type can be used, for example, in a call to Les3LanguageService.Print(ILNode, IMessageSink, ParsingMode, ILNodePrinterOptions).
|
override bool | CompactMode [get, set] |
|
bool | SpaceInsideListBrackets [get, set] |
| Whether to print a space inside square brackets for lists [ ... ] . More...
|
|
bool | SpaceInsideArgLists [get, set] |
| Whether to print a space inside argument lists like f( ... ) . More...
|
|
bool | SpaceInsideGroupingParens [get, set] |
| Whether to print a space inside grouping parentheses ( ... ) . More...
|
|
bool | SpaceInsideTuples [get, set] |
| Whether to print a space inside tuples like f( ...; ) . More...
|
|
bool | SpaceAfterComma [get, set] |
| Whether to print a space after each comma in an argument list. More...
|
|
bool | AllowExtraParenthesis [get, set] |
| Introduces extra parenthesis to express precedence, without using an empty attribute list [] to allow perfect round-tripping. More...
|
|
bool | OmitSpaceTrivia [get, set] |
| When this flag is set, space trivia attributes are ignored (e.g. CodeSymbols.TriviaNewline). More...
|
|
bool | WarnAboutUnprintableLiterals [get, set] |
| Whether to print a warning when an "unprintable" literal is encountered. In any case the literal is converted to a string, placed in double quotes and prefixed by the unqualified Type of the Value. More...
|
|
bool | ObeyRawText [get, set] |
| Causes raw text to be printed verbatim, as the EC# printer does. When this option is false, raw text trivia is printed as a normal attribute. More...
|
|
bool | UseRedundantSemicolons [get, set] |
| If true, a semicolon is used in addition to the usual newline to terminate each expression inside braced blocks and at the top level. More...
|
|
bool | PrefixNotationOnly [get, set] |
| Print purely in prefix notation, e.g. ‘’+`(2,3) instead of 2 + 3 . More...
|
|
int | ForcedLineBreakThreshold [get, set] |
| Although the LES3 printer is not designed to insert line breaks mid-expression or to keep lines under a certain length, this option can avoid extremely long lines in some cases, by (1) inserting line breaks after commas in argument lists, or after very long attribute lists, and (2) ignoring the CodeSymbols.TriviaAppendStatement attribute when an expression within a braced block starts after this column on a line. More...
|
|
char? | DigitSeparator [get, set] |
| Sets the "thousands" or other digit separator for numeric literals. Valid values are null (to disable the separator), underscore (_) and single quote ('). More...
|
|
virtual bool | AllowChangeParentheses [get, set] |
|
virtual bool | OmitComments [get, set] |
|
virtual bool | OmitUnknownTrivia [get, set] |
|
virtual bool | PrintTriviaExplicitly [get, set] |
|
virtual bool | CompatibilityMode [get, set] |
|
virtual bool | CompactMode [get, set] |
|
virtual string | IndentString [get, set] |
|
virtual string | NewlineString [get, set] |
|
virtual ILiteralPrinter | LiteralPrinter [get, set] |
|
bool | AllowChangeParentheses [get] |
| Indicates that it is preferable to add (or remove) parenthesis to produce good-looking output, rather than to express faithfully whether or not parentheses were present in the Loyc tree being printed. More...
|
|
bool | OmitComments [get] |
| When this flag is set, comment trivia attributes are suppressed (e.g. CodeSymbols.TriviaSLCommentAfter). More...
|
|
bool | OmitUnknownTrivia [get] |
| Causes trivia that the printer does not recognize (other than comments, spaces and raw text) to be dropped from the output rather than printed as attributes. More...
|
|
bool | PrintTriviaExplicitly [get] |
| If supported by the printer, this option causes comments and spaces to be printed as attributes in order to ensure faithful round-trip parsing. More...
|
|
bool | CompatibilityMode [get] |
| If there are multiple ways to print a given node, this option indicates that the printer should prefer an older, more compatible syntactic style over new ones, where applicable. More...
|
|
bool | CompactMode [get] |
| When this flag is set, the amount of whitespace in the output is reduced in a printer-defined way, in order to save bits. More...
|
|
string | IndentString [get] |
| Specifies the string to use for each level of indentation of nested constructs in the language, e.g. a tab or four spaces. More...
|
|
string | NewlineString [get] |
| Specifies the string to use for line breaks (typically "\n"). More...
|
|
ILiteralPrinter | LiteralPrinter [get] |
| Requests that a specific printer be used to convert literals into strings. More...
|
|