• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revision64455a62cd9721764294042f5e7b68e467ed618c (tree)
Time2020-02-08 14:54:58
Authormiyakawataku
Commitermiyakawataku

Log Message

rename LOC.loc? to LOC.is?

Change Summary

Incremental Difference

diff -r a8494bea9a79 -r 64455a62cd97 src/main/resources/kink-mods/kink/FUN.kn
--- a/src/main/resources/kink-mods/kink/FUN.kn Sat Feb 08 14:48:26 2020 +0900
+++ b/src/main/resources/kink-mods/kink/FUN.kn Sat Feb 08 14:54:58 2020 +0900
@@ -16,9 +16,6 @@
1616 ## FUN.is?(Val)
1717 #
1818 # FUN.is? returns whether the Val is a fun.
19-:fun? <- {(:Val)
20- JAVA.wrap(Val).typable_as?(FunVal_class)
21-}
2219 :is? <- {(:Val)
2320 JAVA.wrap(Val).typable_as?(FunVal_class)
2421 }
diff -r a8494bea9a79 -r 64455a62cd97 src/main/resources/kink-mods/kink/LOC.kn
--- a/src/main/resources/kink-mods/kink/LOC.kn Sat Feb 08 14:48:26 2020 +0900
+++ b/src/main/resources/kink-mods/kink/LOC.kn Sat Feb 08 14:54:58 2020 +0900
@@ -110,10 +110,10 @@
110110 'op_ne'
111111 ]
112112
113-## LOC.loc?(Val)
113+## LOC.is?(Val)
114114 #
115-# LOC.loc? returns whether the Val is a loc val.
116-:loc? <- {(:Val)
115+# LOC.is? returns whether the Val is a loc val.
116+:is? <- {(:Val)
117117 JAVA.wrap(Val).typable_as?(JAVA.class('org.kink_lang.kink.LocVal'))
118118 }
119119
diff -r a8494bea9a79 -r 64455a62cd97 src/main/resources/kink-mods/kink/TRACE.kn
--- a/src/main/resources/kink-mods/kink/TRACE.kn Sat Feb 08 14:48:26 2020 +0900
+++ b/src/main/resources/kink-mods/kink/TRACE.kn Sat Feb 08 14:54:58 2020 +0900
@@ -161,7 +161,7 @@
161161 :_read_conf <- {(:config)
162162 CONF.read($config){(:C)
163163 C.req_arg('loc'){(:Loc)
164- LOC.loc?(Loc) || raise('C.loc(Loc): Loc must be a loc, but got {}'.format(Loc.repr))
164+ LOC.is?(Loc) || raise('C.loc(Loc): Loc must be a loc, but got {}'.format(Loc.repr))
165165 }
166166 C.req_arg('sym'){(:Sym)
167167 STR.is?(Sym) || raise('C.sym(Sym): Sym must be a str, but got {}'.format(Sym.repr))
diff -r a8494bea9a79 -r 64455a62cd97 src/test/kink/LOC_test.kn
--- a/src/test/kink/LOC_test.kn Sat Feb 08 14:48:26 2020 +0900
+++ b/src/test/kink/LOC_test.kn Sat Feb 08 14:54:58 2020 +0900
@@ -87,14 +87,14 @@
8787 }
8888
8989 # }}}1
90-TEST.group('LOC.loc?'){ # {{{1
90+TEST.group('LOC.is?'){ # {{{1
9191 TEST.test('true for loc'){
9292 :Loc = LOC.new('foo.kn' '1+2' 0)
93- LOC.loc?(Loc) || raise('got false')
93+ LOC.is?(Loc) || raise('got false')
9494 }
9595
9696 TEST.test('false for nada'){
97- LOC.loc?(nada) && raise('got true')
97+ LOC.is?(nada) && raise('got true')
9898 }
9999 }
100100
Show on old repository browser