Documentation Language: Swift

Method

setVariable(_:value:)

Sets a variable in the current scope.

@MainActor func setVariable(_ name: String, value: (any EcoreValue)?)

Parameters

name

The variable name

value

The variable value (nil for null)

Discussion

If a variable with the same name exists in an outer scope, it is shadowed by this assignment.