Sfoglia il codice sorgente

Better check for whether something is an Attribute or not

Yentl Van Tendeloo 8 anni fa
parent
commit
513a23dc5e
2 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. BIN
      bootstrap/bootstrap.m.gz
  2. 1 1
      bootstrap/ramify.alc

BIN
bootstrap/bootstrap.m.gz


+ 1 - 1
bootstrap/ramify.alc

@@ -184,7 +184,7 @@ Element function ramify(model : Element):
 			// Primitive values themselves are not copied, so skip that here
 
 			attr_name = read_attribute(model, type_name, "name")
-			if (read_type(model["metamodel"], type_name) == "Attribute"):
+			if (is_nominal_instance(model["metamodel"], type_name, "Attribute")):
 				old_source = reverseKeyLookup(model["model"], read_edge_src(entry))
 
 				if (set_in(copied_attributes, attr_name)):