0 Replies Latest reply on Apr 16, 2008 11:44 PM by (Paul_Reilly)

    [svn] 1269: Fixed issues blocking the performance testsuite from compiling cleanly

    Level 1
      Revision: 1269
      Author: preilly@adobe.com
      Date: 2008-04-17 00:44:18 -0700 (Thu, 17 Apr 2008)

      Log Message:
      -----------
      Fixed issues blocking the performance testsuite from compiling cleanly
      with -generate-abstract-syntax-tree turned on.

      checkintests Passed: YES

      Needs QA: Not yet

      Needs DOC: NO

      API Change: NO

      Code-level description of changes:

      swfutils/src/java/flash/swf/tools/SyntaxTreeDumper.java

      Modified evaluate(Context, LiteralXMLNode) to show is_xmllist.

      Modified evaluate(Context, IncludeDirectiveNode) to show
      in_this_include and filespec.

      compiler/src/java/flex2/compiler/as3/EmbedEvaluator.java

      Modified evaluate(Context, MetaDataNode) to use the
      Context.input.origin if it's available and only use scriptName()
      when it's not. This is a less risky change than using
      scriptName() all the time.

      compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java

      Modified generateImport() and generateProgram() to use
      generatePackageName().

      Added generatePackageName().

      compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension.java

      Modified generateAccessorFunction() to use AbstractSyntaxTreeUtil.parse().

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

      Implemented asXMLList().

      compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java

      Modified generateImplementationAST() to pass the source's parent
      into the new TextFile.

      compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

      Removed generateTypeExpression(), because it's already in
      AbstractSyntaxTreeUtil.

      Modified a few places to use
      AbstractSyntaxTreeUtil.generateTypeExpression().

      Modified generateScripts() to use addAll() instead of
      NodeFactory.statementList(), because that has side effects for
      IncludeDirectiveNode's.

      Modified Paths:
      --------------
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedEvaluator.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.ja va
      flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tools/SyntaxTreeDumper.java