visitIfRule method

void visitIfRule(
  1. IfRule node
)
override

Implementation

void visitIfRule(IfRule node) {
  for (var clause in node.clauses) {
    visitExpression(clause.expression);
    for (var child in clause.children) {
      child.accept(this);
    }
  }

  if (node.lastClause case var lastClause?) {
    for (var child in lastClause.children) {
      child.accept(this);
    }
  }
}