|
@@ -364,44 +364,6 @@ Void function unset_attribute(model : Element, element : String, attribute : Str
|
|
|
|
|
|
return!
|
|
|
|
|
|
-Void function add_AL_links_old(model : Element, list : Element, element : Element, type: String, linkname : String, expected_type : String):
|
|
|
- if (bool_not(dict_in(element, linkname))):
|
|
|
- return!
|
|
|
-
|
|
|
- Element link
|
|
|
- String link_name
|
|
|
-
|
|
|
- link = dict_read_edge(element, linkname)
|
|
|
- link_name = "__" + cast_id2s(link)
|
|
|
-
|
|
|
- // The link
|
|
|
- dict_add(model["model"], link_name, link)
|
|
|
- dict_add(model["type_mapping"], link_name, (type + "_") + linkname)
|
|
|
-
|
|
|
- // The name link
|
|
|
- link = read_out(link, 0)
|
|
|
- link_name = "__" + cast_id2s(link)
|
|
|
-
|
|
|
- dict_add(model["model"], link_name, link)
|
|
|
- dict_add(model["type_mapping"], link_name, "to_str")
|
|
|
-
|
|
|
- // The name node
|
|
|
- link = read_edge_dst(link)
|
|
|
- link_name = "__" + cast_id2s(link)
|
|
|
-
|
|
|
- if (bool_not(set_in_node(model["model"], link))):
|
|
|
- dict_add(model["model"], link_name, link)
|
|
|
- dict_add(model["type_mapping"], link_name, "String")
|
|
|
-
|
|
|
- // Now add the destination to the worker list
|
|
|
- Element node
|
|
|
- node = create_node()
|
|
|
- list_append(node, element[linkname])
|
|
|
- list_append(node, expected_type)
|
|
|
- set_add(list, node)
|
|
|
-
|
|
|
- return!
|
|
|
-
|
|
|
Void function add_AL_links(model : Element, list : Element, element : Element, type: String, linkname : String, expected_type : String):
|
|
|
if (bool_not(dict_in(element, linkname))):
|
|
|
log("FINISH")
|