visitBinaryOperatorExpr method

  1. @override
void visitBinaryOperatorExpr(
  1. BinaryOperatorExpr ast,
  2. EmitterVisitorContext context
)
override

Implementation

@override
void visitBinaryOperatorExpr(
    o.BinaryOperatorExpr ast, EmitterVisitorContext context) {
  context.print('(');
  ast.lhs.visitExpression(this, context);
  context.print(' ${ast.operator.opStr} ');
  ast.rhs.visitExpression(this, context);
  context.print(')');
}