visitAllNamedExpressions method

void visitAllNamedExpressions(
  1. List<NamedExpr>? expressions,
  2. EmitterVisitorContext ctx,
  3. String seperator, {
  4. bool alwaysAddSeperator = false,
})

Implementation

void visitAllNamedExpressions(
  List<o.NamedExpr>? expressions,
  EmitterVisitorContext ctx,
  String seperator, {
  bool alwaysAddSeperator = false,
}) {
  if (expressions == null || expressions.isEmpty) {
    return;
  }
  if (alwaysAddSeperator) {
    ctx.print(seperator);
  }
  for (var ast in expressions) {
    ctx.print('${ast.name}: ');
    ast.expr.visitExpression(this, ctx);
    ctx.print(seperator);
  }
}