visitWriteStaticMemberExpr method
void
visitWriteStaticMemberExpr(
- WriteStaticMemberExpr expr,
- EmitterVisitorContext context
override
Implementation
@override
void visitWriteStaticMemberExpr(
o.WriteStaticMemberExpr expr, EmitterVisitorContext context) {
var lineWasEmpty = context.lineIsEmpty();
if (!lineWasEmpty) {
context.print('(');
}
if (expr.checkIfNull) {
context.print('${expr.name} ??= ');
} else {
context.print('${expr.name} = ');
}
expr.value.visitExpression(this, context);
if (!lineWasEmpty) {
context.print(')');
}
}