doc: use 'module' instead of 'package' in comments
authorJean Privat <jean@pryen.org>
Wed, 9 Feb 2011 18:22:49 +0000 (13:22 -0500)
committerJean Privat <jean@pryen.org>
Fri, 11 Feb 2011 20:44:46 +0000 (15:44 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

13 files changed:
src/analysis/cha_analysis.nit
src/analysis/dead_method_removal.nit
src/analysis/instantiated_type_analysis.nit
src/analysis/reachable_as_init.nit
src/analysis/reachable_as_init_impl.nit
src/analysis/reachable_from_init_method_analysis.nit
src/analysis/reachable_method_analysis.nit
src/analysis/remove_out_of_init_get_test.nit
src/metamodel/abstractmetamodel.nit
src/mmloader.nit
src/primitive_info.nit
src/syntax/mmbuilder.nit
src/syntax/syntax.nit

index ba68c2b..2d9cd0f 100644 (file)
@@ -14,7 +14,7 @@
 # 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
index 8e9c18b..beb6a7c 100644 (file)
@@ -14,7 +14,7 @@
 # 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
index 58af9d4..039c779 100644 (file)
@@ -14,7 +14,7 @@
 # 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
index 0d9fb88..487d78f 100644 (file)
@@ -14,7 +14,7 @@
 # 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
index 3aaa15a..612d96f 100644 (file)
@@ -14,7 +14,7 @@
 # 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
index 4397066..b07aeba 100644 (file)
@@ -14,7 +14,7 @@
 # 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
index ef2b4fe..b208ae3 100644 (file)
@@ -14,7 +14,7 @@
 # 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
index 8db2cb4..e8ae331 100644 (file)
@@ -14,7 +14,7 @@
 # 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
 
index 4ac84e0..8a26854 100644 (file)
@@ -106,7 +106,7 @@ class MMDirectory
        end
 end
 
-# A module is a NIT package
+# A module is a Nit file
 class MMModule
        # Global context
        readable var _context: MMContext 
index 4b9b578..c63455f 100644 (file)
@@ -16,7 +16,7 @@
 # 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
index 262228f..e926e48 100644 (file)
@@ -17,7 +17,7 @@
 # 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
 
index b36e6b2..983bc8f 100644 (file)
@@ -462,7 +462,7 @@ redef class AModuledecl
        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
index 0cbb402..b597a9c 100644 (file)
@@ -39,7 +39,7 @@ special ModuleLoader
                        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)