mdoc
Type members
Classlikes
A captured variable in a code fence.
A captured variable in a code fence.
Example, the code fence below has two statements:
- The first statement has a single variable with name
x - The second statement has a two variables with names
yandz
```
scala mdoc
val x = 1
val (y, z) = (2, 3)
```
- Value parameters:
- indexOfStatementInCodeFence
the index of the enclosing statement within the enclosing code fence. For example, in
``` scala val x = 1 val y = 2 ```The variable
yhas index 1 and variablexhas index 0.- indexOfVariableInStatement
the index of this variable in the enclosing statement. For example, in
val (a, b) = ???the variableahas index 0 and variablebhas index1.- name
the variable name, for example
x- runtimeValue
the runtime value of this variable.
- staticType
the pretty-printed static type of this variable, for example
List[Int]- totalStatementsInCodeFence
the total number of statement in the enclosing code fence. For example, the total number is 2 for the code fence below.
``` scala val x = 1 val y = 2 ```- totalVariablesInStatement
The total number of variables in this statements. For example, in
val a = Nthe total number is 1 and forval (a, b) = ...the total number is 2.