neo: Remove `is_intro`.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Thu, 23 Oct 2014 19:33:17 +0000 (15:33 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Fri, 24 Oct 2014 19:39:10 +0000 (15:39 -0400)
`is_intro` is computed by the model and is ignored anyway.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/neo.nit

index 51d8a8f..ce5ba94 100644 (file)
@@ -80,7 +80,6 @@
 # `MClassDef`
 #
 # * labels: `MClassDef`, `model_name` and `MEntity`.
-# * `is_intro`: Does this definition introduce the class?
 # * `location`: origin of the definition. SEE: `Location.to_s`
 # * `parameter_names`: JSON array listing the name of each formal generic
 # parameter (in order of declaration).
 # * labels: `MPropDef`, `model_name` and `MEntity`. Must also have `MMethodDef`,
 # `MAttributeDef` or `MVirtualTypeDef`, depending on the class of the
 # represented entity.
-# * `is_intro`: Does this definition introduce the property?
 # * `location`: origin of the definition. SEE: `Location.to_s`.
 # * `(:MPropDef)-[:DEFINES]->(:MProperty)`: associated property.
 #
@@ -524,7 +522,6 @@ class NeoModel
        private fun mclassdef_node(mclassdef: MClassDef): NeoNode do
                var node = make_node(mclassdef)
                node.labels.add "MClassDef"
-               node["is_intro"] = mclassdef.is_intro
                node["location"] = mclassdef.location.to_s
                node.out_edges.add(new NeoEdge(node, "BOUNDTYPE", to_node(mclassdef.bound_mtype)))
                node.out_edges.add(new NeoEdge(node, "MCLASS", to_node(mclassdef.mclass)))
@@ -610,7 +607,6 @@ class NeoModel
        private fun mpropdef_node(mpropdef: MPropDef): NeoNode do
                var node = make_node(mpropdef)
                node.labels.add "MPropDef"
-               node["is_intro"] = mpropdef.is_intro
                node["location"] = mpropdef.location.to_s
                node.out_edges.add(new NeoEdge(node, "DEFINES", to_node(mpropdef.mproperty)))
                if mpropdef isa MMethodDef then