# Implements `declare_class`.
redef class ClassCompound
- redef fun declare_class(id, full_name, prot) do
- class_def.declare_class(id, full_name, prot)
+ redef fun declare_class(id, name, prot) do
+ class_def.declare_class(id, name, prot)
end
end
# All `InnerClass` entities registred here are automatically added to the
# graph with the `ClassDef`.
#
- # To ensure that the `full_name` of each `InnerClass` entity is correctly
- # set and that each inner class will be correctly linked, `declare_class`
- # should be used to add each inner class.
+ # To ensure that each inner class will be correctly linked,
+ # `declare_class` should be used to add each inner class.
var inner_classes: SimpleCollection[InnerClass] = new Array[InnerClass]
# Declare an inner class.
# Parameters:
#
# * `id`: `model_id` of the inner class definition.
- # * `full_name`: qualified name of the inner class definition.
+ # * `name`: name of the inner class definition.
# * `prot`: visibility (proctection).
- fun declare_class(id: String, full_name: String, prot: String) do
+ fun declare_class(id: String, name: String, prot: String) do
var member = new InnerClass(graph, self, id)
- member.full_name = full_name
+ member.name = name
member.visibility = prot
members.add member
inner_classes.add member