X-Git-Url: http://nitlanguage.org diff --git a/src/frontend/frontend.nit b/src/frontend/frontend.nit index 713c6fa..d18285c 100644 --- a/src/frontend/frontend.nit +++ b/src/frontend/frontend.nit @@ -13,6 +13,8 @@ # limitations under the License. # Collect and orchestration of main frontend phases +# +# Import `frontend::code_gen` to also include code generation modules. module frontend import no_warning @@ -21,16 +23,25 @@ import literal import modelize import semantize import div_by_zero -import cached -import serialization_phase +import serialization_model_phase +import deriving import check_annotation +import parse_annotations import glsl_validation +import parallelization_phase +import i18n_phase +import regex_phase +import actors_injection_phase redef class ToolContext # FIXME: there is conflict in linex in nitc, so use this trick to force invocation private var dummy: Bool = do_dummy - fun do_dummy: Bool + + # SEE `dummy` + private fun do_dummy: Bool do + # Force no warning before analysing classes + phases.add_edge(modelize_class_phase, no_warning_phase) # Force easy warnings after modelbuilder phases.add_edge(simple_misc_analysis_phase, modelize_property_phase) # Force easy warnings before intraproc-errors @@ -38,6 +49,7 @@ redef class ToolContext # Code genrated by the serialization phase must be analyzed for literals phases.add_edge(literal_phase, serialization_phase_pre_model) phases.add_edge(modelize_class_phase, serialization_phase_pre_model) + phases.add_edge(modelize_class_phase, parallelization_phase) return true end end