visitConditionalExpr method

  1. @override
void visitConditionalExpr(
  1. ConditionalExpr ast,
  2. EmitterVisitorContext context
)
override

Implementation

@override
void visitConditionalExpr(
    o.ConditionalExpr ast, EmitterVisitorContext context) {
  context.print('(');
  ast.condition.visitExpression(this, context);
  context.print('? ');
  ast.trueCase.visitExpression(this, context);
  context.print(': ');
  ast.falseCase.visitExpression(this, context);
  context.print(')');
}