def handle_comma(self, token_text):
    if self.flags.declaration_statement:
        if self.is_expression(self.flags.parent.mode):
            self.flags.declaration_assignment = False
        self.append_token(token_text)
        if self.flags.declaration_assignment:
            self.flags.declaration_assignment = False
            self.append_newline(preserve_statement_flags=True)
        else:
            self.output_space_before_token = True
        return
    self.append_token(token_text)
    if ((self.flags.mode == MODE.ObjectLiteral) or ((self.flags.mode == MODE.Statement) and (self.flags.parent.mode == MODE.ObjectLiteral))):
        if (self.flags.mode == MODE.Statement):
            self.restore_mode()
        self.append_newline()
    else:
        self.output_space_before_token = True
def handle_comma(self, token_text):
    if self.flags.declaration_statement:
        if self.is_expression(self.flags.parent.mode):
            self.flags.declaration_assignment = False
        self.append_token(token_text)
        if self.flags.declaration_assignment:
            self.flags.declaration_assignment = False
            self.append_newline(preserve_statement_flags=True)
        else:
            self.output_space_before_token = True
        return
    self.append_token(token_text)
    if ((self.flags.mode == MODE.ObjectLiteral) or ((self.flags.mode == MODE.Statement) and (self.flags.parent.mode == MODE.ObjectLiteral))):
        if (self.flags.mode == MODE.Statement):
            self.restore_mode()
        self.append_newline()
    else:
        self.output_space_before_token = True