visitCommentStmt method

  1. @override
void visitCommentStmt(
  1. CommentStmt stmt,
  2. EmitterVisitorContext context
)
override

Implementation

@override
void visitCommentStmt(o.CommentStmt stmt, EmitterVisitorContext context) {
  var lines = stmt.comment.split('\n');
  for (var line in lines) {
    context.print('// ');
    context.println(line);
  }
}