0 Replies Latest reply on Oct 9, 2008 12:21 PM by (Paul_Reilly)

    [svn] 3548: Fixed conditional compilation with direct AST generation.

    Level 1
      Revision: 3548
      Author: preilly@adobe.com
      Date: 2008-10-09 13:21:22 -0700 (Thu, 09 Oct 2008)

      Log Message:
      -----------
      Fixed conditional compilation with direct AST generation.

      tests Passed: checkintests

      Needs QA: YES

      Needs DOC: NO

      Bug fixes: SDK-16376

      API Change: NO

      Reviewer: pfarland, tierney (hopefully in progress)

      Code-level description of changes:

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

      Modified constructor to populate configNamespaces and pass the
      result of parseConfigVars() into generateProgram().

      Modified all AbstractSyntaxTreeUtil.parse() calls to pass in
      configNamespaces.

      modules/compiler/src/java/flex2/compiler/mxml/AbstractGenerator.java

      Added configNamespaces variable.

      Modified all AbstractSyntaxTreeUtil.parse() calls to pass in
      configNamespaces.

      modules/compiler/src/java/flex2/compiler/mxml/rep/init/EventInitializer.java

      Modified generateDefinitions() by adding configNamespaces param
      and passing it into AbstractSyntaxTreeUtil.parse().

      modules/compiler/src/java/flex2/compiler/mxml/rep/init/Initializer.java

      Modified generateDefinitions() by adding configNamespaces param.

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

      Modified generateDefinitions() by adding configNamespaces param
      and passing it into AbstractSyntaxTreeUtil.parse().

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

      Modified generateWatcherSetupUtilAST() to populate
      configNamespaces and pass it down to all the places where we call
      AbstractSyntaxTreeUtil.parse().

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

      Modified generateProgram() to take configVars param instead of
      calling parseConfigVars() directly.

      Modified parse() to take a configNamespaces param.

      Modified parseConfigVars() to use Parser.parseConfigValues() now
      that it's public.

      modules/asc/src/java/macromedia/asc/parser/Parser.java

      Made parseConfigValues() public.

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

      Modified Paths:
      --------------
      flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/AbstractSyntaxTreeUtil.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/DataBindingExtension. java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/AbstractGenerator.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceGenerator.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/EventInitializer.ja va
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/Initializer.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/init/ValueInitializer.ja va