def p_NonAnyType_interface(p): """NonAnyType : IDENTIFIER TypeSuffix""" p[0] = helper.unwrapTypeSuffix(model.InterfaceType(name=p[1]), p[2])
def p_NonAnyType_primitiveType(p): """NonAnyType : PrimitiveType TypeSuffix""" p[0] = helper.unwrapTypeSuffix(p[1], p[2])
def p_NonAnyType_domString(p): """NonAnyType : DOMString TypeSuffix""" p[0] = helper.unwrapTypeSuffix(model.SimpleType( type=model.SimpleType.DOMSTRING), p[2])
def p_UnionMemberType_unionType(p): """UnionMemberType : UnionType TypeSuffix""" p[0] = helper.unwrapTypeSuffix(p[1], p[2])
def p_UnionMemberType_anyType(p): """UnionMemberType : any "[" "]" TypeSuffix""" p[0] = helper.unwrapTypeSuffix(model.Array(t=model.SimpleType( type=model.SimpleType.ANY)), p[4])
def p_SingleType_any(p): """SingleType : any TypeSuffixStartingWithArray""" p[0] = helper.unwrapTypeSuffix(model.SimpleType(model.SimpleType.ANY), p[2])
def p_SingleType_any(p): """SingleType : any TypeSuffixStartingWithArray""" p[0] = helper.unwrapTypeSuffix(model.SimpleType( model.SimpleType.ANY), p[2])
def p_NonAnyType_object(p): """NonAnyType : object TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.SimpleType(type=model.SimpleType.OBJECT), p[2])
def p_NonAnyType(p): """NonAnyType : Date TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.SimpleType(type=model.SimpleType.DATE), p[2])
def p_NonAnyType_domString(p): """NonAnyType : DOMString TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.SimpleType(type=model.SimpleType.DOMSTRING), p[2])
def p_UnionMemberType_anyType(p): """UnionMemberType : any "[" "]" TypeSuffix""" p[0] = helper.unwrapTypeSuffix( model.Array(t=model.SimpleType(type=model.SimpleType.ANY)), p[4])
def p_NonAnyType_object(p): """NonAnyType : object TypeSuffix""" p[0] = helper.unwrapTypeSuffix(model.SimpleType( type=model.SimpleType.OBJECT), p[2])
def p_Type_union(p): """Type : UnionType TypeSuffix""" p[0] = helper.unwrapTypeSuffix(p[1], p[2])
def p_NonAnyType(p): """NonAnyType : Date TypeSuffix""" p[0] = helper.unwrapTypeSuffix(model.SimpleType( type=model.SimpleType.DATE), p[2])