1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Collect and orchestration of main frontend phases
18 import simple_misc_analysis
24 import serialization_phase
25 import check_annotation
26 import glsl_validation
28 redef class ToolContext
29 # FIXME: there is conflict in linex in nitc, so use this trick to force invocation
30 private var dummy
: Bool = do_dummy
33 # Force easy warnings after modelbuilder
34 phases
.add_edge
(simple_misc_analysis_phase
, modelize_property_phase
)
35 # Force easy warnings before intraproc-errors
36 phases
.add_edge
(scope_phase
, simple_misc_analysis_phase
)
37 # Code genrated by the serialization phase must be analyzed for literals
38 phases
.add_edge
(literal_phase
, serialization_phase_pre_model
)
39 phases
.add_edge
(modelize_class_phase
, serialization_phase_pre_model
)