From: Jean Privat Date: Wed, 9 Feb 2011 18:22:49 +0000 (-0500) Subject: doc: use 'module' instead of 'package' in comments X-Git-Tag: v0.4~8^2~6 X-Git-Url: http://nitlanguage.org doc: use 'module' instead of 'package' in comments Signed-off-by: Jean Privat --- diff --git a/src/analysis/cha_analysis.nit b/src/analysis/cha_analysis.nit index ba68c2b..2d9cd0f 100644 --- a/src/analysis/cha_analysis.nit +++ b/src/analysis/cha_analysis.nit @@ -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 diff --git a/src/analysis/dead_method_removal.nit b/src/analysis/dead_method_removal.nit index 8e9c18b..beb6a7c 100644 --- a/src/analysis/dead_method_removal.nit +++ b/src/analysis/dead_method_removal.nit @@ -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 diff --git a/src/analysis/instantiated_type_analysis.nit b/src/analysis/instantiated_type_analysis.nit index 58af9d4..039c779 100644 --- a/src/analysis/instantiated_type_analysis.nit +++ b/src/analysis/instantiated_type_analysis.nit @@ -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 diff --git a/src/analysis/reachable_as_init.nit b/src/analysis/reachable_as_init.nit index 0d9fb88..487d78f 100644 --- a/src/analysis/reachable_as_init.nit +++ b/src/analysis/reachable_as_init.nit @@ -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 diff --git a/src/analysis/reachable_as_init_impl.nit b/src/analysis/reachable_as_init_impl.nit index 3aaa15a..612d96f 100644 --- a/src/analysis/reachable_as_init_impl.nit +++ b/src/analysis/reachable_as_init_impl.nit @@ -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 diff --git a/src/analysis/reachable_from_init_method_analysis.nit b/src/analysis/reachable_from_init_method_analysis.nit index 4397066..b07aeba 100644 --- a/src/analysis/reachable_from_init_method_analysis.nit +++ b/src/analysis/reachable_from_init_method_analysis.nit @@ -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 diff --git a/src/analysis/reachable_method_analysis.nit b/src/analysis/reachable_method_analysis.nit index ef2b4fe..b208ae3 100644 --- a/src/analysis/reachable_method_analysis.nit +++ b/src/analysis/reachable_method_analysis.nit @@ -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 diff --git a/src/analysis/remove_out_of_init_get_test.nit b/src/analysis/remove_out_of_init_get_test.nit index 8db2cb4..e8ae331 100644 --- a/src/analysis/remove_out_of_init_get_test.nit +++ b/src/analysis/remove_out_of_init_get_test.nit @@ -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 diff --git a/src/metamodel/abstractmetamodel.nit b/src/metamodel/abstractmetamodel.nit index 4ac84e0..8a26854 100644 --- a/src/metamodel/abstractmetamodel.nit +++ b/src/metamodel/abstractmetamodel.nit @@ -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 diff --git a/src/mmloader.nit b/src/mmloader.nit index 4b9b578..c63455f 100644 --- a/src/mmloader.nit +++ b/src/mmloader.nit @@ -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 diff --git a/src/primitive_info.nit b/src/primitive_info.nit index 262228f..e926e48 100644 --- a/src/primitive_info.nit +++ b/src/primitive_info.nit @@ -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 diff --git a/src/syntax/mmbuilder.nit b/src/syntax/mmbuilder.nit index b36e6b2..983bc8f 100644 --- a/src/syntax/mmbuilder.nit +++ b/src/syntax/mmbuilder.nit @@ -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 diff --git a/src/syntax/syntax.nit b/src/syntax/syntax.nit index 0cbb402..b597a9c 100644 --- a/src/syntax/syntax.nit +++ b/src/syntax/syntax.nit @@ -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)