Пример #1
0
def p_NonAnyType_interface(p):
  """NonAnyType : IDENTIFIER TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(model.InterfaceType(name=p[1]), p[2])
Пример #2
0
def p_NonAnyType_primitiveType(p):
  """NonAnyType : PrimitiveType TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(p[1], p[2])
Пример #3
0
def p_NonAnyType_domString(p):
  """NonAnyType : DOMString TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(model.SimpleType(
    type=model.SimpleType.DOMSTRING), p[2])
Пример #4
0
def p_UnionMemberType_unionType(p):
  """UnionMemberType : UnionType TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(p[1], p[2])
Пример #5
0
def p_UnionMemberType_anyType(p):
  """UnionMemberType : any "[" "]" TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(model.Array(t=model.SimpleType(
    type=model.SimpleType.ANY)), p[4])
Пример #6
0
def p_SingleType_any(p):
    """SingleType : any TypeSuffixStartingWithArray"""
    p[0] = helper.unwrapTypeSuffix(model.SimpleType(model.SimpleType.ANY),
                                   p[2])
Пример #7
0
def p_SingleType_any(p):
  """SingleType : any TypeSuffixStartingWithArray"""
  p[0] = helper.unwrapTypeSuffix(model.SimpleType(
    model.SimpleType.ANY), p[2])
Пример #8
0
def p_NonAnyType_object(p):
    """NonAnyType : object TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.SimpleType(type=model.SimpleType.OBJECT), p[2])
Пример #9
0
def p_NonAnyType(p):
    """NonAnyType : Date TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.SimpleType(type=model.SimpleType.DATE), p[2])
Пример #10
0
def p_NonAnyType_domString(p):
    """NonAnyType : DOMString TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.SimpleType(type=model.SimpleType.DOMSTRING), p[2])
Пример #11
0
def p_NonAnyType_interface(p):
    """NonAnyType : IDENTIFIER TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(model.InterfaceType(name=p[1]), p[2])
Пример #12
0
def p_NonAnyType_primitiveType(p):
    """NonAnyType : PrimitiveType TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(p[1], p[2])
Пример #13
0
def p_UnionMemberType_anyType(p):
    """UnionMemberType : any "[" "]" TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(
        model.Array(t=model.SimpleType(type=model.SimpleType.ANY)), p[4])
Пример #14
0
def p_UnionMemberType_unionType(p):
    """UnionMemberType : UnionType TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(p[1], p[2])
Пример #15
0
def p_NonAnyType_object(p):
  """NonAnyType : object TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(model.SimpleType(
    type=model.SimpleType.OBJECT), p[2])
Пример #16
0
def p_Type_union(p):
  """Type : UnionType TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(p[1], p[2])
Пример #17
0
def p_NonAnyType(p):
  """NonAnyType : Date TypeSuffix"""
  p[0] = helper.unwrapTypeSuffix(model.SimpleType(
    type=model.SimpleType.DATE), p[2])
Пример #18
0
def p_Type_union(p):
    """Type : UnionType TypeSuffix"""
    p[0] = helper.unwrapTypeSuffix(p[1], p[2])