Each rule is a "Horn clause"-like sequence of modules. It means that the first module is the module to automatically import. The remaining modules are the conditions of the rule.
Rules are declared by build_module_importation
and are applied by apply_conditional_importations
(and build_module_importation
that calls it).
TODO (when the loader will be rewritten): use a better representation and move up rules in the model.
# Global list of conditional importation rules.
#
# Each rule is a "Horn clause"-like sequence of modules.
# It means that the first module is the module to automatically import.
# The remaining modules are the conditions of the rule.
#
# Rules are declared by `build_module_importation` and are applied by `apply_conditional_importations`
# (and `build_module_importation` that calls it).
#
# TODO (when the loader will be rewritten): use a better representation and move up rules in the model.
var conditional_importations = new Array[SequenceRead[MModule]]
src/loader.nit:1062,2--1072,64