halirutan
val end = if(scoping.scopePositionEnd == -1) parameters.lastIndex else scoping.scopePositionEnd