Lines Matching refs:ast_property

88 def ast_property(name, types):
127 @ast_property("source", six.string_types)
128 @ast_property("relative", bool)
153 @ast_property("name", lambda x: x is None or isinstance(x, six.string_types))
154 @ast_property("composition", lambda x: isinstance(x, Reference) or isinstance_fallback(x, "Composition"))
155 @ast_property("configuration", lambda x: isinstance(x, Reference) or isinstance_fallback(x, "Configuration"))
221 @ast_property("name", lambda x: x is None or isinstance(x, six.string_types))
222 @ast_property("instances", lambda i: isinstance(i, (list, tuple)) and
224 @ast_property("connections", lambda c: isinstance(c, (list, tuple)) and
226 @ast_property("groups", lambda g: isinstance(g, (list, tuple)) and
228 @ast_property("exports", lambda e: isinstance(e, (list, tuple)) and
297 @ast_property("name", lambda x: x is None or isinstance(x, six.string_types))
298 @ast_property("settings", (list, tuple))
340 @ast_property("type", lambda x: isinstance(x, (Reference)) or isinstance_fallback(x, "Component"))
341 @ast_property("name", six.string_types)
342 @ast_property("address_space", six.string_types)
363 @ast_property("type", lambda x: isinstance(x, (Reference)) or isinstance_fallback(x, "Connector"))
364 @ast_property("name", six.string_types)
365 @ast_property("from_ends", (list, tuple))
366 @ast_property("to_ends", (list, tuple))
520 @ast_property("instance", six.string_types)
521 @ast_property("attribute", six.string_types)
522 @ast_property("value", lambda x: isinstance(x, (numbers.Number, list, tuple, frozendict, dict, six.string_types)) or isinstance_fallback(x, "AttributeReference")
533 # This property is wrapped by the ast_property decorator which adds on type checking and the frozen check
562 @ast_property("name", six.string_types)
563 @ast_property("attributes", lambda a: isinstance(a, (list, tuple)) and
589 @ast_property("name", lambda x: x is None or isinstance(x, six.string_types))
590 @ast_property("control", bool)
591 @ast_property("hardware", bool)
592 @ast_property("includes", lambda i: isinstance(i, (list, tuple)) and
594 @ast_property("provides", lambda p: isinstance(p, (list, tuple)) and
596 @ast_property("uses", lambda u: isinstance(u, (list, tuple)) and
598 @ast_property("emits", lambda e: isinstance(e, (list, tuple)) and
600 @ast_property("consumes", lambda c: isinstance(c, (list, tuple)) and
602 @ast_property("dataports", lambda d: isinstance(d, (list, tuple)) and
604 @ast_property("attributes", lambda a: isinstance(a, (list, tuple)) and
606 @ast_property("mutexes", lambda m: isinstance(m, (list, tuple)) and
608 @ast_property("semaphores", lambda s: isinstance(s, (list, tuple)) and
610 @ast_property("binary_semaphores", lambda b: isinstance(b, (list, tuple)) and
612 @ast_property("composition", Composition)
613 @ast_property("configuration", Configuration)
704 @ast_property("name", six.string_types)
705 @ast_property("type", lambda x: isinstance(x, (Reference)) or isinstance_fallback(x, "Procedure"))
715 @ast_property("type", lambda x: isinstance(x, (Reference)) or isinstance_fallback(x, "Procedure"))
716 @ast_property("name", six.string_types)
717 @ast_property("optional", bool)
728 @ast_property("type", six.string_types)
729 @ast_property("name", six.string_types)
737 @ast_property("type", six.string_types)
738 @ast_property("name", six.string_types)
739 @ast_property("optional", bool)
748 @ast_property("type", six.string_types)
749 @ast_property("name", six.string_types)
750 @ast_property("optional", bool)
759 @ast_property("name", six.string_types)
766 @ast_property("name", six.string_types)
773 @ast_property("name", six.string_types)
780 @ast_property("name", lambda x: x is None or isinstance(x, six.string_types))
781 @ast_property("from_type", lambda x: isinstance(x, six.string_types) and
783 @ast_property("to_type", lambda x: isinstance(x, six.string_types) and
785 @ast_property("from_multiple", bool)
786 @ast_property("to_multiple", bool)
787 @ast_property("from_threads", lambda x: isinstance(x, six.integer_types) and x >= 0)
788 @ast_property("to_threads", lambda x: isinstance(x, six.integer_types) and x >= 0)
789 @ast_property("from_hardware", bool)
790 @ast_property("to_hardware", bool)
791 @ast_property("attributes", lambda x: isinstance(x, (list, tuple)) and
830 @ast_property("name", lambda x: x is None or isinstance(x, six.string_types))
831 @ast_property("instances", lambda i: isinstance(i, (list, tuple)) and
846 @ast_property("name", lambda x: x is None or (isinstance(x, six.string_types)))
847 @ast_property("includes", lambda i: isinstance(i, (list, tuple)) and
849 @ast_property("methods", lambda m: isinstance(m, (list, tuple)) and
851 @ast_property("attributes", lambda a: isinstance(a, (list, tuple)) and
870 @ast_property("name", six.string_types)
871 @ast_property("return_type", lambda x: x is None or isinstance(x, six.string_types))
872 @ast_property("parameters", lambda p: isinstance(p, (list, tuple)) and
903 @ast_property("type", (six.string_types, Reference, Struct))
904 @ast_property("name", six.string_types)
905 @ast_property("array", bool)
906 @ast_property("default", lambda x: x is None or isinstance(x, (numbers.Number, list, dict, six.string_types)))
917 # Type checking and frozen checks are done by ast_property delegate
939 @ast_property("name", six.string_types)
940 @ast_property("direction", lambda x: isinstance(x, six.string_types) and x in ('in', 'inout', 'out', 'refin'))
941 @ast_property("type", six.string_types)
942 @ast_property("array", bool)
960 @ast_property("end", lambda x: isinstance(x, six.string_types) and x in ('from', 'to'))
961 @ast_property("instance", lambda x: x is None or isinstance(x, (Instance, Reference)))
962 @ast_property("interface", (Interface, Reference))
1004 @ast_property("source_instance", (Instance, Reference))
1005 @ast_property("source_interface", (Interface, Reference))
1006 @ast_property("destination", (Interface, Reference))
1018 @ast_property("reference", six.string_types)
1019 @ast_property("dict_lookup", lambda x: x is None or isinstance_fallback(x, "DictLookup"))
1027 @ast_property("lookup", list)
1034 @ast_property("type", six.string_types)
1035 @ast_property("args", lambda i: isinstance(i, list) and
1037 @ast_property("dict_lookup", lambda x: x is None or isinstance(x, DictLookup))