Signed-off-by: Alexandre Terrasa <alexadre@moz-code.org>
15 files changed:
-all: ../bin/nitc ../bin/nitdoc ../bin/nits ../bin/nitstats ../bin/nitg ../bin/nit
+all: ../bin/nitc ../bin/nitdoc ../bin/nits ../bin/nitmetrics ../bin/nitg ../bin/nit
../bin/nitc: ../c_src/nitc parser/parser.nit
@echo '***************************************************************'
../bin/nitc: ../c_src/nitc parser/parser.nit
@echo '***************************************************************'
./git-gen-version.sh
../bin/nitc ${NITCOPT} -o ../bin/nits -O -v nits.nit
./git-gen-version.sh
../bin/nitc ${NITCOPT} -o ../bin/nits -O -v nits.nit
-../bin/nitstats: ../bin/nitc
+../bin/nitmetrics: ../bin/nitc
@echo '***************************************************************'
@echo '***************************************************************'
- @echo '* Compile nitstats from NIT source files *'
+ @echo '* Compile nitmetrics from NIT source files *'
@echo '***************************************************************'
./git-gen-version.sh
@echo '***************************************************************'
./git-gen-version.sh
- ../bin/nitc ${NITCOPT} -o ../bin/nitstats -O -v nitstats.nit
+ ../bin/nitc ${NITCOPT} -o ../bin/nitmetrics -O -v nitmetrics.nit
../bin/nitg: ../bin/nitc
@echo '***************************************************************'
../bin/nitg: ../bin/nitc
@echo '***************************************************************'
# Statistics on the usage of explicit static types.
module count_ntypes
# Statistics on the usage of explicit static types.
module count_ntypes
-private import stats_base
+private import metrics_base
import modelbuilder
# The job of this visitor is to resolve all types found
import modelbuilder
# The job of this visitor is to resolve all types found
-private import stats_base
+private import metrics_base
# Create a dot file representing the module hierarchy of a model.
# Importation relation is represented with arrow
# Create a dot file representing the module hierarchy of a model.
# Importation relation is represented with arrow
# limitations under the License.
# Various statistics about Nit models and programs
# limitations under the License.
# Various statistics about Nit models and programs
import count_ntypes
import visit_nullable_sends
import visit_self
import count_ntypes
import visit_nullable_sends
import visit_self
# limitations under the License.
# Helpers for various statistics tools.
# limitations under the License.
# Helpers for various statistics tools.
module model_hyperdoc
import model
module model_hyperdoc
import model
# Genetate a HTML file for the model.
# The generated file contains the description of each entity of the model
# Genetate a HTML file for the model.
# The generated file contains the description of each entity of the model
module model_stats
import model
module model_stats
import model
-private import stats_base
+private import metrics_base
# Print general statistics on a model
fun compute_statistics(model: Model)
# Print general statistics on a model
fun compute_statistics(model: Model)
import modelbuilder
private import typing
import modelbuilder
private import typing
-private import stats_base
+private import metrics_base
private class NullableSends
super Visitor
private class NullableSends
super Visitor
module visit_self
import modelbuilder
module visit_self
import modelbuilder
-private import stats_base
+private import metrics_base
private class ASelfVisitor
super Visitor
private class ASelfVisitor
super Visitor
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-# A program that collects various data about nit programs and libraries
-module nitstats
+# A program that collects various metrics on nit programs and libraries
+module nitmetrics
import modelbuilder
import exprbuilder
import modelbuilder
import exprbuilder
# Create a tool context to handle options and paths
var toolcontext = new ToolContext
# Create a tool context to handle options and paths
var toolcontext = new ToolContext
-PROGS=*.nit ../examples/*.nit ../examples/leapfrog/leapfrog.nit ../examples/shoot/shoot_logic.nit ../lib/*.nit ../src/nitdoc.nit ../src/nits.nit ../src/nitc.nit ../src/test_parser.nit ../src/nit.nit ../src/nitstats.nit ../src/nitg.nit
+PROGS=*.nit ../examples/*.nit ../examples/leapfrog/leapfrog.nit ../examples/shoot/shoot_logic.nit ../lib/*.nit ../src/nitdoc.nit ../src/nits.nit ../src/nitc.nit ../src/test_parser.nit ../src/nit.nit ../src/nitmetrics.nit ../src/nitg.nit
all: separate global niti nitg icode
all: separate global niti nitg icode
--- /dev/null
+base_simple3.nit -d out/nitmetrics_args1.write
+++ /dev/null
-base_simple3.nit -d out/nitstats_args1.write