klyn.code.LexicalState.interpolationDepth
property
public readonly property interpolationDepth as Int
Description

Current nesting depth of {...} expressions inside an interpolated multi-line string.

Returns

Nesting depth (0 when directly inside the string text).

Example
import klyn.code

assert LexicalState.NORMAL.interpolationDepth == 0