def p_attr_list_dict_null(p: YaccProduction) -> None: "attr : DICT '?' ID '=' NULL" p[0] = DefineAttribute(TypeDeclaration(p[1], nullable=True), p[3], make_none(p, 5)) attach_from_string(p, 3)
def p_attr_list_dict_nullable(p: YaccProduction) -> None: "attr : DICT '?' ID '=' map_def" p[0] = DefineAttribute(TypeDeclaration(p[1], nullable=True), p[3], p[5]) attach_from_string(p, 3)
def p_attr_dict(p: YaccProduction) -> None: "attr : DICT ID" p[0] = DefineAttribute(TypeDeclaration(p[1]), p[2], None) attach_from_string(p, 2)
def p_attr_list_dict(p: YaccProduction) -> None: "attr : DICT ID '=' map_def" p[0] = DefineAttribute(TypeDeclaration(p[1]), p[2], p[4]) attach_from_string(p, 2)
def p_attribute_base_type(p: YaccProduction) -> None: """attr_base_type : ns_ref""" p[0] = TypeDeclaration(p[1]) attach_from_string(p, 1)