2015-09-20 14:51:08 +02:00
|
|
|
int self.length( ref x )
|
2015-10-09 16:28:47 +02:00
|
|
|
return 5
|
2015-09-18 20:55:02 +02:00
|
|
|
end
|
|
|
|
-- -- --
|
2015-10-09 16:28:47 +02:00
|
|
|
s(:statements,
|
2015-09-20 11:56:06 +02:00
|
|
|
s(:function, :int,
|
|
|
|
s(:name, :length),
|
|
|
|
s(:parameters,
|
|
|
|
s(:parameter, :ref, :x)),
|
2015-10-09 16:28:47 +02:00
|
|
|
s(:statements,
|
|
|
|
s(:return,
|
|
|
|
s(:int, 5))),
|
2015-09-20 14:51:08 +02:00
|
|
|
s(:receiver, :self)))
|