copy

abstract fun copy(scope: Scope = this.scope): VariablesProvider

Creates a copy of this VariablesProvider, backed by scope (defaulting to this one's own scope).