Documentation Language: Swift

Method

evaluate(_:context:)

Evaluate an expression in the context of given bindings.

func evaluate(_ expression: ECoreExpression, context: [String : any EcoreValue]) async throws -> (any EcoreValue)?

Parameters

expression

The expression to evaluate

context

Variable bindings for the evaluation context

Return Value

The result of evaluating the expression

Discussion

This method provides the core expression evaluation capability, supporting navigation, variable references, and literal values.