--- parser3/tests/224.html 2009/07/28 08:03:22 1.1
+++ parser3/tests/224.html 2009/09/18 10:00:59 1.6
@@ -13,7 +13,9 @@ $hi[^h.intersection[
$.test1[]
$.test2[]
]]
-^hi.foreach[k;v]{$k^if(def $v){ - $v}}[
]
+$t[^hi._keys[]]
+^t.sort{$t.key}
+^t.menu{$t.key^if(def $hi.[$t.key]){ - $hi.[$t.key]}}[
]
^do{$d[^reflection:create[date;create]]}
@@ -22,6 +24,7 @@ $hi[^h.intersection[
^do{$d[^reflection:create[date;now](-2)]}
^do{$o[^reflection:create[test;create](-1)]}
+^do{$o0[^reflection:create[test;create0]]}
^do{$o1[^reflection:create[test1;create1](1)]}
^do{$o2[^reflection:create[test2;create2]]}
@@ -37,6 +40,17 @@ $hi[^h.intersection[
^print[date;$d]
^print[env;$env:CLASS]
^print[unknown]
+
+
+^test3:m[]
+$o[^test3::create[]]
+^o.m[]
+
+$h[^reflection:fields[$o.CLASS]]
+^h.foreach[k;v]{$k=$v}[, ]
+
+$h[^reflection:fields[$o]]
+^h.foreach[k;v]{$k=$v}[, ]
done.
@@ -53,12 +67,16 @@ done.
-@print[class;o][m;k;v;h;i]
+@print[class;o][m;k;v;h;i;t]
^do{
$m[^reflection:methods[$class]]
- ^m.foreach[k;v]{
- $h[^reflection:method_params[$class;$k]]
- ^@${k}[^if($v eq "native"){^if($h.min_params != $h.max_params){^h.min_params.int(0)-}^h.max_params.int(0)}{^for[i](0;^h._count[]){$h.$i}[^;]}]^if(def $h.call_type){ {$h.call_type}}
+ $t[^m._keys[]]
+ ^t.sort{$t.key}
+ ^t.menu{
+ $k[$t.key]
+ $v[$m.$k]
+ $h[^reflection:method_info[$class;$k]]
+ ^@${k}[^if($v eq "native"){^if($h.min_params != $h.max_params){^h.min_params.int(0)-}^h.max_params.int(0)}{^for[i](0;^h._count[]-1){$h.$i}[^;]}]^if(def $h.call_type){ {$h.call_type}}^if(def $h.inherited){ {defined in $h.inherited}}
}[
]
}
^if(def $o){