nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parser: `Visitor::visit` does not accepts `null`
[nit.git]
/
src
/
utils.nit
diff --git
a/src/utils.nit
b/src/utils.nit
index
f8dbfbd
..
2787b22
100644
(file)
--- a/
src/utils.nit
+++ b/
src/utils.nit
@@
-18,8
+18,10
@@
# Various functions for NIT tools
package utils
# Various functions for NIT tools
package utils
+import symbol
+
# Mangle an array of symbol using only alphanums and underscores
# Mangle an array of symbol using only alphanums and underscores
-meth cmangle(symbols: Symbol...): String
+fun cmangle(symbols: Symbol...): String
do
var table = once cmangle_table
var res = new Buffer
do
var table = once cmangle_table
var res = new Buffer
@@
-56,7
+58,7
@@
do
end
# Build the table that associates character to mangle to string
end
# Build the table that associates character to mangle to string
-private meth cmangle_table: HashMap[Char, String]
+private fun cmangle_table: HashMap[Char, String]
do
var res = new HashMap[Char, String]
res['+'] = "plus"
do
var res = new HashMap[Char, String]
res['+'] = "plus"