taqi/MonkeyCoder — Issue #6: MField refactoring
Author: taqi
Created: 2012-01-22 22:22:10+00:00
State: open

Look at the MField class, and FieldCodeSnippet. (also, task #5)
As you can see, we need to extend basic field behavior (generator).
So, We need to refactor MField, that it can contains left part (as Variable) and right part as expression.
Look at the VariableExpressionSnippet, AssignmentExpression.

Steps to implement:
- create field in the MField class - leftPart (type MVariable). add setter and getter for it.
- create field in the MField class - rightPart (type ExpressionSyntax) add setter and getter for it.
- refactor getCodeSnippet - see #5. You must create Snippet with this MField new class together.
- your generator must give = if rightPart is setted, or otherwise.
- don't forget about static clause, and modificator clause.
- extend tests