0 Replies Latest reply on Jan 21, 2009 11:04 AM by (Paul_Reilly)

    [svn] 4608: Fixed asdoc + data binding combination.

    Level 1
      Revision: 4608
      Author: preilly@adobe.com
      Date: 2009-01-21 11:04:19 -0800 (Wed, 21 Jan 2009)

      Log Message:
      -----------
      Fixed asdoc + data binding combination.

      tests Passed: checkintests, mxunit databinding

      Needs QA: YES

      Needs DOC: NO

      Bug fixes: SDK-18762

      API Change: NO

      Reviewer: Gaurav

      Code-level description of changes:

      Modified evaluate(Context, FunctionCommonNode) to no longer try to
      skip the nodes created for:

      var result:Array = [];

      and

      return result;

      via the for-loop's iterator. Instead, we now skip over the nodes by
      checking the type. For the result variable, the
      VariableDefinitionNode is split into a VariableDefinitionNode and an
      ExpressionStatementNode with a LiteralArrayNode RHS. This is why we
      only want to evaluate ExpressionStatementNode's with a
      MemberExpressionNode RHS.

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-18762

      Modified Paths:
      --------------
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingFirstPassE valuator.java