feat(transpiler): Transform for..of to Dart as for..in

Added transformation of for..of into Dart for..in.  
Added error for JS for..in since the semantics don't match.  
Added error for for..of utilizing destructuring declarations.

Closes #53 
I should check if the other case is handled without extra code as well.


> On Dec 1, 2014, at 5:56 AM, Victor Berchet <notifications@github.com> wrote:
> 
> In tools/transpiler/src/codegeneration/ForOfTransformer.js:
> 
> > + * the loop.
> > + */
> > +export class ForOfTransformer extends TempVarTransformer {
> > +  /**
> > +   * @param {ForOfStatement} tree
> > +   * @return {ParseTree}
> > +   */
> > +  transformForOfStatement(original) {
> > +    var tree = super.transformForOfStatement(original);
> > +    var temp = id(this.getTempIdentifier());
> > +
> > +    var assignment;
> > +    var body = tree.body;
> > +    var initializer = tree.initializer;
> > +    if (tree.initializer.isPattern()) {
> > +      parseStatement `${tree.initializer} = ${temp};`
> should the result be assigned somehow ?
> 
> —
> Reply to this email directly or view it on GitHub.
>