Explorar el Código

Better check for whether something is an Attribute or not

Yentl Van Tendeloo hace 8 años
padre
commit
513a23dc5e
Se han modificado 2 ficheros con 1 adiciones y 1 borrados
  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)):