code: def p_fragment_definition1(self, p):
          
          p[0] = FragmentDefinition(name=p[2], type_condition=p[4],
                                    selections=p[6], directives=p[5])
docs: fragment_definition : FRAGMENT fragment_name ON type_condition directives selection_set