plcopen/structures.py
changeset 99 2b18a72dcaf0
parent 98 ec5d7af033d8
child 104 a9b8916d906d
equal deleted inserted replaced
98:ec5d7af033d8 99:2b18a72dcaf0
   267     while test is not None:
   267     while test is not None:
   268         if test == reference:
   268         if test == reference:
   269             return True
   269             return True
   270         test = TypeHierarchy[test]
   270         test = TypeHierarchy[test]
   271     return False
   271     return False
       
   272 
       
   273 def IsEndType(reference):
       
   274     if reference is not None:
       
   275         return len([typename for typename, parenttype in TypeHierarchy_list if parenttype == reference]) == 0
       
   276     else:
       
   277         return True
   272 
   278 
   273 """
   279 """
   274 returns list of all types that correspont to the ANY* meta type
   280 returns list of all types that correspont to the ANY* meta type
   275 """
   281 """
   276 def GetSubTypes(reference):
   282 def GetSubTypes(reference):