Merge: Mpropdef2node
authorJean Privat <jean@pryen.org>
Thu, 4 Dec 2014 23:39:34 +0000 (18:39 -0500)
committerJean Privat <jean@pryen.org>
Thu, 4 Dec 2014 23:39:34 +0000 (18:39 -0500)
commit3fb37ddddc623cd878ddd6f4136975e7120e1abd
treeb147137c7e507f19825e5bfa143c5257ed7498a1
parent963740435ccade82b09136b66317b77407fd2717
parent88e12a002471ee193c33dc58d814f1ca1c078734
Merge: Mpropdef2node

Introduce services to isolate more the model from the AST.

Dissociating the AST and the model reduce the coupling.
The two new services `mpropdef2node` and `collect_attr_propdef` of `ModelBuilder` replace most accesses to the uncontrolled maps `mpropdef2npropdef` and `mclassdef2nclassdef` (now made private).
They will permit to control how the rest of the code access the AST nodes.

In some future, these indirections could be used to process part of the AST in a lazy way where the requested AST part will be modelized&semantized only when required by the tools.

Pull-Request: #966
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
src/modelize/modelize_property.nit