qiskit/qasm/qasmparser.py
def p_gate_id_list_1(self, program):
        """
           gate_id_list : gate_id_list ',' id
        """
        program[0] = program[1]
        program[0].add_child(program[3])
        self.update_symtab(program[3])
def p_gate_id_list_1(self, program):
        """
           gate_id_list : gate_id_list ',' id
        """
        program[0] = program[1]
        program[0].add_child(program[3])
        self.update_symtab(program[3])
gate_id_list : gate_id_list ',' id