|
Enhanced C#
Language of your choice: library documentation
|
This interface for converting literals to text is implemented by LiteralHandlerTable. More...
This interface for converting literals to text is implemented by LiteralHandlerTable.
Public Member Functions | |
| bool | CanPrint (Symbol typeMarker) |
| Finds out whether there is a printer for the given type marker. Never throws. More... | |
| bool | CanPrint (Type type) |
| Returns true if there is a printer registered for the given type. Never throws. More... | |
| Either< Symbol, ILogMessage > | TryPrint (ILNode literal, StringBuilder sb) |
| Attempts to convert the specified literal to a string. More... | |
| bool Loyc.Syntax.ILiteralPrinter.CanPrint | ( | Symbol | typeMarker | ) |
Finds out whether there is a printer for the given type marker. Never throws.
Implemented in Loyc.Syntax.LiteralHandlerTable.
| bool Loyc.Syntax.ILiteralPrinter.CanPrint | ( | Type | type | ) |
Returns true if there is a printer registered for the given type. Never throws.
| Either<Symbol, ILogMessage> Loyc.Syntax.ILiteralPrinter.TryPrint | ( | ILNode | literal, |
| StringBuilder | sb | ||
| ) |
Attempts to convert the specified literal to a string.
| literal | A literal that you want to convert to a string. |
The string is printed without escaping. For example a newline would be printed as character (char)10, not "\n".
Implemented in Loyc.Syntax.LiteralHandlerTable.
1.8.17