visitSupportsCondition method

  1. @protected
T? visitSupportsCondition(
  1. SupportsCondition condition
)

Visits each expression in condition.

The default implementation of the visit methods call this to visit any SupportsCondition they encounter.

Implementation

@protected
T? visitSupportsCondition(SupportsCondition condition) => switch (condition) {
      SupportsOperation() => visitSupportsCondition(condition.left) ??
          visitSupportsCondition(condition.right),
      SupportsNegation() => visitSupportsCondition(condition.condition),
      SupportsInterpolation() => visitExpression(condition.expression),
      SupportsDeclaration() =>
        visitExpression(condition.name) ?? visitExpression(condition.value),
      _ => null
    };