Documentation Language: Swift

Method

evaluate(in:)

Evaluates the expression within the specified MTL execution context.

@MainActor func evaluate(in context: MTLExecutionContext) async throws -> (any EcoreValue)?

Parameters

context

The MTL execution context providing variable bindings, model access, and AQL integration

Return Value

The result of evaluating the expression, or nil if the expression evaluates to null

Discussion

Evaluation is delegated to the underlying AQL expression, which is executed within the AQL execution context wrapped by the MTL execution context.