StringLiteralExpression

data class StringLiteralExpression(val entries: List<Node.Expression.StringLiteralExpression.StringEntry>, val raw: Boolean, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression

AST node that represents a string literal expression. The node corresponds to KtStringTemplateExpression.

Constructors

Link copied to clipboard
constructor(entries: List<Node.Expression.StringLiteralExpression.StringEntry>, raw: Boolean, supplement: NodeSupplement = NodeSupplement())

Types

Link copied to clipboard

AST node that represents an escape string entry that starts with backslash. The node corresponds to KtEscapeStringTemplateEntry.

Link copied to clipboard

AST node that represents a literal string entry, i.e. a normal string entry. The node corresponds to KtLiteralStringTemplateEntry.

Link copied to clipboard
interface StringEntry : Node

Common interface for string entries. The node corresponds to KtStringTemplateEntry.

Link copied to clipboard
data class TemplateStringEntry(val expression: Node.Expression, val short: Boolean, val supplement: NodeSupplement = NodeSupplement()) : Node.Expression.StringLiteralExpression.StringEntry

AST node that represents a template string entry with expression. The node corresponds to KtStringTemplateEntryWithExpression.

Properties

Link copied to clipboard
Link copied to clipboard

true if this is raw string surrounded by """, false if this is regular string surrounded by ".

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.