visitSupportsCondition method

  1. @protected
void 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
void visitSupportsCondition(SupportsCondition condition) {
  switch (condition) {
    case SupportsOperation():
      visitSupportsCondition(condition.left);
      visitSupportsCondition(condition.right);
    case SupportsNegation():
      visitSupportsCondition(condition.condition);
    case SupportsInterpolation():
      visitExpression(condition.expression);
    case SupportsDeclaration():
      visitExpression(condition.name);
      visitExpression(condition.value);
  }
}