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)
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>

1  2 
src/modelize/modelize_property.nit

Simple merge