visitAllNamedExpressions method

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

Implementation

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