@staticmethod
def p_function_optional(p):
    """function_optional : annotation
                             | def_characteristic
                             | ref_characteristic
                             | in_measurement
                             | out_measurement
                             | loc_measurement
                             | sub_function
                             | function_version"""
    p[0] = p.slice[1].type, p[1]
