nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/bucketed_games: fixes useless empty init
[nit.git]
/
src
/
phase.nit
diff --git
a/src/phase.nit
b/src/phase.nit
index
55853a5
..
1a10cf2
100644
(file)
--- a/
src/phase.nit
+++ b/
src/phase.nit
@@
-21,7
+21,7
@@
import poset
redef class ToolContext
# The various registered phases to performs
redef class ToolContext
# The various registered phases to performs
- # The order in the poset is the dependance of phases
+ # The order in the poset is the dependence of phases
#
# While you can directly modify the poset (nodes and edges),
# it is often simpler to use the constructor in `Phase`
#
# While you can directly modify the poset (nodes and edges),
# it is often simpler to use the constructor in `Phase`
@@
-69,7
+69,7
@@
redef class ToolContext
if opt_sloppy.value then semantize_is_lazy = true
end
if opt_sloppy.value then semantize_is_lazy = true
end
- # The list of phases in the order to run them
+ # The list of registered phases in the application order.
var phases_list: Sequence[Phase] is lazy do
var phases = self.phases.to_a
self.phases.sort(phases)
var phases_list: Sequence[Phase] is lazy do
var phases = self.phases.to_a
self.phases.sort(phases)
@@
-148,7
+148,9
@@
redef class ToolContext
errors_info
end
errors_info
end
- fun phase_process_npropdef(phase: Phase, npropdef: APropdef)
+ # Process the given `phase` on the `npropdef`
+ # Called by `run_phases`
+ protected fun phase_process_npropdef(phase: Phase, npropdef: APropdef)
do
phase.process_npropdef(npropdef)
end
do
phase.process_npropdef(npropdef)
end