preparing test

This commit is contained in:
Torsten Ruger 2015-09-20 14:29:24 +03:00
parent f51563e99b
commit d0b950eed9
1 changed files with 26 additions and 8 deletions

View File

@ -1,12 +1,30 @@
class Foo < Object
int field = 3
int func()
return self.field
end
ofthen(3 , var)
end
-- -- --
s(:expressions,
s(:class, :Foo,
s(:derives, :Object),
s(:call,
s(:name, :ofthen),
s(:arguments,
s(:int, 3),
s(:name, :var)))))
s(:expressions,
s(:class, :Foo,
s(:derives, :Object),
s(:name, :int),
s(:assign,
s(:name, :field),
s(:int, 3)),
s(:function, :int,
s(:name, :func),
s(:parameters),
s(:expressions,
s(:return,
s(:field_access,
s(:receiver,
s(:name, :self)),
s(:field,
s(:name, :field)))))),
s(:call,
s(:name, :ofthen),
s(:arguments,
s(:int, 3),
s(:name, :var)))))