visitReadPropExpr method

  1. @override
void visitReadPropExpr(
  1. ReadPropExpr ast,
  2. EmitterVisitorContext context
)
override

Implementation

@override
void visitReadPropExpr(
  o.ReadPropExpr ast,
  EmitterVisitorContext context,
) {
  ast.receiver.visitExpression(this, context);
  if (ast.checked) {
    context.print('?');
  }
  context.print('.');
  context.print(ast.name);
}