taqi/MonkeyCoder — Issue #3: add MethodCallingCodeSnippet
Author: taqi
Created: 2012-01-21 00:14:46+00:00
State: open

We need new snippet.
The new snippet should represent method calling.
for example, a.foo(); or a.foo(b,c); etc... also, foo(); as default code you should implement too.
Steps to implement:
- Implement CodeSnippet interface;
- Your snippet should contains Variable (as object, that should provides some method), method snippet from this object, and ListCodeSnippet of the arguments (I think, that it would be Variable expression snippet.)
- Check before code creation, if current method are in the object.
- Check signature of this method (types from args with types in the method);
- implement getCode() method.
- create tests for this method with raw expected text;