visitWritePropExpr method

  1. @override
void visitWritePropExpr(
  1. WritePropExpr expr,
  2. EmitterVisitorContext context
)
override

Implementation

@override
void visitWritePropExpr(o.WritePropExpr expr, EmitterVisitorContext context) {
  var lineWasEmpty = context.lineIsEmpty();
  if (!lineWasEmpty) {
    context.print('(');
  }
  expr.receiver.visitExpression(this, context);
  context.print('.${expr.name} = ');
  expr.value.visitExpression(this, context);
  if (!lineWasEmpty) {
    context.print(')');
  }
}