summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.boa
diff options
context:
space:
mode:
authorMatth?us G. Chajdas <dev@anteru.net>2019-11-10 13:56:53 +0100
committerMatth?us G. Chajdas <dev@anteru.net>2019-11-10 13:56:53 +0100
commit1dd3124a9770e11b6684e5dd1e6bc15a0aa3bc67 (patch)
tree87a171383266dd1f64196589af081bc2f8e497c3 /tests/examplefiles/example.boa
parentf1c080e184dc1bbc36eaa7cd729ff3a499de568a (diff)
downloadpygments-master.tar.gz
Remove all files, redirect to GitHub.HEADmaster
Diffstat (limited to 'tests/examplefiles/example.boa')
-rw-r--r--tests/examplefiles/example.boa18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/examplefiles/example.boa b/tests/examplefiles/example.boa
deleted file mode 100644
index a18f1626..00000000
--- a/tests/examplefiles/example.boa
+++ /dev/null
@@ -1,18 +0,0 @@
-# Computes Number of Public Methods (NPM) for each project, per-type
-# Output is: NPM[ProjectID][TypeName] = NPM value
-p: Project = input;
-NPM: output sum[string][string] of int;
-
-visit(p, visitor {
- # only look at the latest snapshot
- before n: CodeRepository -> {
- snapshot := getsnapshot(n);
- foreach (i: int; def(snapshot[i]))
- visit(snapshot[i]);
- stop;
- }
- before node: Declaration ->
- if (node.kind == TypeKind.CLASS)
- foreach (i: int; has_modifier_public(node.methods[i]))
- NPM[p.id][node.name] << 1;
-});