createLoopVariable
abstract fun createLoopVariable(reservedInNestedScopes: Boolean = definedExternally): Identifier(source)
Create a unique temporary variable for use in a loop.
Parameters
reservedInNestedScopes
When true
, reserves the temporary variable name in all nested scopes during emit so that the variable can be referenced in a nested function body. This is an alternative to setting EmitFlags.ReuseTempVariableScope
on the nested function itself.