Struct ErrorLogHandler
Assembly: MOSAIC.dll
Syntax
public ref struct ErrorLogHandler
Remarks
Constructors
ErrorLogHandler(int, int, out bool)
Called by the compiler. Sets shouldAppend from the level gate.
Declaration
public ErrorLogHandler(int literalLength, int formattedCount, out bool shouldAppend)
Parameters
| Type |
Name |
Description |
| int |
literalLength |
Total length of the literal parts, supplied by the compiler.
|
| int |
formattedCount |
Number of interpolation holes, supplied by the compiler.
|
| bool |
shouldAppend |
False when Error is switched off.
|
Fields
_enabled
Declaration
private readonly bool _enabled
Field Value
_inner
Declaration
private DefaultInterpolatedStringHandler _inner
Field Value
Properties
Enabled
Declaration
internal bool Enabled { get; }
Property Value
Methods
Appends a span hole without an intermediate string.
Declaration
public void AppendFormatted(ReadOnlySpan<char> value)
Parameters
Appends a string hole without boxing it through the generic overload.
Declaration
public void AppendFormatted(string? value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Appends an interpolation hole.
Declaration
public void AppendFormatted<T>(T value)
Parameters
| Type |
Name |
Description |
| T |
value |
|
Type Parameters
Appends an interpolation hole with an alignment.
Declaration
public void AppendFormatted<T>(T value, int alignment)
Parameters
| Type |
Name |
Description |
| T |
value |
|
| int |
alignment |
|
Type Parameters
Appends an interpolation hole with an alignment and a format string.
Declaration
public void AppendFormatted<T>(T value, int alignment, string? format)
Parameters
| Type |
Name |
Description |
| T |
value |
|
| int |
alignment |
|
| string |
format |
|
Type Parameters
Appends an interpolation hole with a format string.
Declaration
public void AppendFormatted<T>(T value, string? format)
Parameters
| Type |
Name |
Description |
| T |
value |
|
| string |
format |
|
Type Parameters
AppendLiteral(string)
Appends a literal fragment of the interpolated string.
Declaration
public void AppendLiteral(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
ToStringAndClear()
Declaration
internal string ToStringAndClear()
Returns