Przeglądaj źródła

fixed find_attribute_type

tpinna 10 lat temu
rodzic
commit
43010d899a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      bootstrap/modelling.alc

+ 2 - 2
bootstrap/modelling.alc

@@ -102,7 +102,7 @@ Element function find_attribute_type(model : Element, elem : String, name : Stri
 		log("Undefined attribute!")
 		return read_root()
 	else:
-		return getName(model["metamodel"], dict_read_edge(mm_elem, name))
+		return getName(model["metamodel"], read_edge_dst(dict_read_edge(mm_elem, name)))
 
 Element function get_superclasses(model : Element, elem : Element):
 	Element result
@@ -139,7 +139,7 @@ Element function find_attribute_definer(model : Element, elem : Element, name :
 
 		superclasses = get_superclasses(model, elem)
 		while (list_len(superclasses) > 0):
-			log("Search")
+			//log("Search")
 			current = set_pop(superclasses)
 			found = find_attribute_definer(model, current, name)
 			if (bool_not(element_eq(found, read_root()))):