0 Replies Latest reply on Feb 6, 2009 1:30 PM by (Paul_Reilly)

    [svn] 4880: * Fixed deprecation warnings with AST generation and a Repeater RTE

      Revision: 4880
      Author: preilly@adobe.com
      Date: 2009-02-06 13:30:19 -0800 (Fri, 06 Feb 2009)

      Log Message:
      -----------
      * Fixed deprecation warnings with AST generation and a Repeater RTE
      caused by revision 4709.

      tests Passed: checkintests, mxunit repeater, asc-tests

      Needs QA: YES

      Needs DOC: NO

      Bug fixes: SDK-16288, SDK-18986

      API Change: NO

      Reviewer: Corey, Pete F.

      Code-level description of changes:

      asc/src/java/macromedia/asc/embedding/LintEvaluator.java

      Added ignoreSynthesizedCode variable and setter.

      Modified warning() to only skip synthetic code when
      ignoreSynthesizedCode is false. This allows us to report
      deprecation warnings when using AST generation with Mxml
      documents.

      compiler/src/java/flex2/compiler/as3/As3Compiler.java

      Modified analyze4() to set the LintEvaluator's
      ignoreSynthesizedCode flag to false.

      compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java

      Added CLASS_REPEATER_DOT.

      compiler/src/java/flex2/compiler/mxml/rep/init/VisualChildInitializer.java

      Modified getAssignExpr() and generateAssignExpr() to code gen the
      initializeRepeater() call. This required changing the return type
      of generateAssignExpr() from ExpressionStatementNode to
      StatementListNode.

      compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.java

      Removed initializeRepeater() related code gen from
      getDefinitionBody() and generatedDefinitionBody().

      compiler/src/java/flex2/compiler/mxml/rep/init/EffectInitializer.java
      compiler/src/java/flex2/compiler/mxml/rep/init/Initializer.java
      compiler/src/java/flex2/compiler/mxml/rep/init/StyleInitializer.java
      compiler/src/java/flex2/compiler/mxml/rep/init/EventInitializer.java
      compiler/src/java/flex2/compiler/mxml/rep/init/NamedInitializer.java
      compiler/src/java/flex2/compiler/mxml/rep/init/ArrayElementInitializer.java
      compiler/src/java/flex2/compiler/mxml/rep/decl/InitializedPropertyDeclaration.java
      compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

      Updated to reflect change to generateAssignExpr() signature
      required by VisualChildInitializer.

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

      Modified Paths:
      --------------
      flex/sdk/branches/i10/modules/asc/src/java/macromedia/asc/embedding/LintEvaluator.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerat or.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.jav a
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/decl/InitializedP ropertyDeclaration.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ArrayElement Initializer.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EffectInitia lizer.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EventInitial izer.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/Initializer. java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/NamedInitial izer.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/StyleInitial izer.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitial izer.java
      flex/sdk/branches/i10/modules/compiler/src/java/flex2/compiler/mxml/rep/init/VisualChildI nitializer.java