Method
getVariable(_:)
Retrieves a variable from the current or enclosing scopes.
@MainActor func getVariable(_ name: String) async throws -> (any EcoreValue)?
Parameters
name-
The variable name to look up
Return Value
The variable value, or nil if the variable is null
Discussion
Variables are looked up starting from the current scope and working outward through the scope stack. If the variable is not found in any scope, throws an error.