visitWriteClassMemberExpr method

  1. @override
void visitWriteClassMemberExpr(
  1. WriteClassMemberExpr expr,
  2. EmitterVisitorContext context
)
override

Implementation

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