nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: cleanup importations
[nit.git]
/
src
/
frontend.nit
diff --git
a/src/frontend.nit
b/src/frontend.nit
index
04254a7
..
cfdf85b
100644
(file)
--- a/
src/frontend.nit
+++ b/
src/frontend.nit
@@
-15,41
+15,27
@@
# Collect and orchestration of main frontend phases
module frontend
# Collect and orchestration of main frontend phases
module frontend
-import phase
import simple_misc_analysis
import literal
import simple_misc_analysis
import literal
-import scope
-import flow
-import local_var_init
-import typing
-import auto_super_init
+import modelize
+import semantize
import div_by_zero
import cached
import div_by_zero
import cached
+import serialization_phase
+import check_annotation
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
do
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
do
- # Force easy warnings aftrm modelbuilder
+ # Force easy warnings after modelbuilder
phases.add_edge(simple_misc_analysis_phase, modelize_property_phase)
# Force easy warnings before intraproc-errors
phases.add_edge(scope_phase, simple_misc_analysis_phase)
phases.add_edge(simple_misc_analysis_phase, modelize_property_phase)
# Force easy warnings before intraproc-errors
phases.add_edge(scope_phase, simple_misc_analysis_phase)
+ # 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)
return true
end
return true
end
-
- fun run_global_phases(mainmodule: MModule)
- do
- for phase in phases_list do
- phase.process_mainmodule(mainmodule)
- end
- end
end
end
-
-redef class Phase
- # Specific action to execute on the whole program
- # Called by the `ToolContext::run_global_phases`
- # @toimplement
- fun process_mainmodule(mainmodule: MModule) do end
-end
-