CxLiteralString

Description

sealed class Tinman.Core.Cx.Expressions.CxLiteralString

Derived from

CxLiteral abstract

A literal that represents a string value:

"Regular string literal (escape sequences: \\, \", \0, \', \b, \f, \n, \r, \t, \uFFFF)"
@"Verbatim string literal (escape sequences: "", \uFFFF)"

Public / Constants

Escape​Regular


public static readonly attribute EscapeRegular → (StringEscape)

The escaping rules for regular string literals.

See rule escape of CxCodeUnit.

Escape​Verbatim


public static readonly attribute EscapeVerbatim → (StringEscape)

The escaping rules for verbatim string literals.

See rule escape of CxCodeUnit.

Public / Constructors

Cx​Literal​String


public constructor CxLiteralString → (2)

value in : string

[not-null]
See Value.

verbatim in : bool

See Verbatim.

Creates a new instance of CxLiteralSimple.

Public / Attributes

Value


public attribute Value → (get,set)

value : string

[not-null]
The string value.

The plain literal value, without escaping.

The plain literal value does not depend on Verbatim.

Value​Escaped


[Constant]
public attribute ValueEscaped → (get)

value : string

[not-null]
The escaped value, according to Verbatim, not including the delimiters.

Returns the escaped literal value.

Verbatim


public attribute Verbatim → (get,set)

value : bool

true if this is a verbatim string literal,
false if it is a regular string literal.

Is this a verbatim string literal?