File:  [parser3project] / parser3 / tests / 280.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Jun 6 01:53:11 2012 UTC (13 years, 11 months ago) by misha
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, release_3_4_3, release_3_4_2, HEAD
- tests for ^reflection:method[obj-or-class;method], ^reflection:field[obj-or-class;field] and ^reflection:fields[obj-or-class] are added

@main[]
$h[
	$.k1[v1]
	$.k2[v2]
	^rem{ key name == method name }
	$.foreach[problem was here]
	$.k3[v3]
]

^foreach[^reflection:fields[$h]]

$o[^t::create[]]
^foreach[^reflection:fields[$o]]
^foreach[^reflection:fields[$t:CLASS]]

^$h.foreach='^reflection:field[$h;foreach]'
^$h.k3='^reflection:field[$h;k3]'

^$o.s1='$o.s1'
^$o.d1='$o.d1'

^^reflection:field[^$o;s1]='^reflection:field[$o;s1]'
^^reflection:field[^$o;d1]='^reflection:field[$o;d1]'

^$t:CLASS.s1='$t:CLASS.s1'
^$t:CLASS.d1='$t:CLASS.d1'

^^reflection:field[^$t:CLASS;s1]='^reflection:field[$t:CLASS;s1]'
^^reflection:field[^$t:CLASS;d1]='^reflection:field[$t:CLASS;d1]'

$j[^reflection:method[$o;dynamic_call]]
^j[]

$j[^reflection:method[$t:CLASS;static_call]]
^j[]


@foreach[h][j;k;v]
$j[^reflection:method[$h;foreach]]
^j[k;v]{$k='$v'}[, ]



@CLASS
t

@auto[]
$s1[s1v]
$s2[s2v]
$static_call[static]

@create[]
$d1[d1v]
$d2[d2v]
$dynamic_call[dynamic]

@static_call[]
#problem was here
$static_call

@dynamic_call[]
#problem was here
$dynamic_call

E-mail: