Expression

protocol Expression : Sendable

An expression which evaluates to a value.

Depending on the concrete type, it may represent:

  • Simple literal expressions including a constant or a reference.
  • Complex expressions with one operator and one or more operand(s), such as a logical expression, a comparison expression, a struct traversal expression.
  • Returns true if the expressions are equal, false otherwise.

    Declaration

    Swift

    func isEqual(to other: any Expression) -> Bool