changeset 99 | 2b18a72dcaf0 |
parent 98 | ec5d7af033d8 |
child 104 | a9b8916d906d |
--- a/plcopen/structures.py Wed Sep 19 15:20:59 2007 +0200 +++ b/plcopen/structures.py Wed Sep 19 17:23:15 2007 +0200 @@ -270,6 +270,12 @@ test = TypeHierarchy[test] return False +def IsEndType(reference): + if reference is not None: + return len([typename for typename, parenttype in TypeHierarchy_list if parenttype == reference]) == 0 + else: + return True + """ returns list of all types that correspont to the ANY* meta type """