# See the License for the specific language governing permissions and
# limitations under the License.
-# This package implements Class Hierarchy Analysis (CHA)
+# This module implements Class Hierarchy Analysis (CHA)
package cha_analysis
import reachable_method_analysis
# See the License for the specific language governing permissions and
# limitations under the License.
-# This package introduces an algorithm to remove the body of dead methods
+# This module introduces an algorithm to remove the body of dead methods
package dead_method_removal
import reachable_method_analysis
# See the License for the specific language governing permissions and
# limitations under the License.
-# Package containing all bases for instantiated type analysis
+# Module containing all bases for instantiated type analysis
package instantiated_type_analysis
import program
# See the License for the specific language governing permissions and
# limitations under the License.
-# Package containing all bases for the reachable from init method analysis
+# Module containing all bases for the reachable from init method analysis
package reachable_as_init
import icode
# See the License for the specific language governing permissions and
# limitations under the License.
-# This package introduces an analysis that flags all initializers called as new A.x
+# This module introduces an analysis that flags all initializers called as new A.x
package reachable_as_init_impl
import reachable_method_analysis
# See the License for the specific language governing permissions and
# limitations under the License.
-# Package containing all bases for the reachable from init method analysis
+# Module containing all bases for the reachable from init method analysis
package reachable_from_init_method_analysis
import icode
# See the License for the specific language governing permissions and
# limitations under the License.
-# Package containing all bases for the reachable method analysis
+# Module containing all bases for the reachable method analysis
package reachable_method_analysis
import icode
# See the License for the specific language governing permissions and
# limitations under the License.
-# This package introduces an optimization that removes 'get' tests when
+# This module introduces an optimization that removes 'get' tests when
# not reachable from an initializer
package remove_out_of_init_get_test
end
end
-# A module is a NIT package
+# A module is a Nit file
class MMModule
# Global context
readable var _context: MMContext
# See the License for the specific language governing permissions and
# limitations under the License.
-# This package is used to load a metamodel
+# This module is used to load a metamodel
package mmloader
import metamodel
# Common things for NIT compilation and C generation
package primitive_info
-#FIXME Split this package into 2: one in metamodel and one in compiling
+#FIXME Split this module into 2: one in metamodel and one in compiling
import metamodel
redef fun accept_class_builder(v)
do
if n_id.to_symbol != v.mmmodule.name then
- v.error(n_id, "Error: Package name missmatch between {v.mmmodule.name} and {n_id.to_symbol}")
+ v.error(n_id, "Error: Module name missmatch between {v.mmmodule.name} and {n_id.to_symbol}")
end
end
end
break
end
if not name_is_valid then
- context.error( null, "{filename}: Error package name \"{name}\", must start with a lower case letter and contain only letters, digits and '_'." )
+ context.error( null, "{filename}: Error module name \"{name}\", must start with a lower case letter and contain only letters, digits and '_'." )
end
var lexer = new Lexer(file, filename)