final String gendir = (compilerConfig.keepGeneratedActionScript()
? compilerConfig.getGeneratedDirectory()
: null);
final boolean generateAbstractSyntaxTree = compilerConfig.getGenerateAbstractSyntaxTree();
asc.addCompilerExtension(new EmbedExtension(transcoders, gendir, compilerConfig.showDeprecationWarnings()));
asc.addCompilerExtension(new StyleExtension());
// IMPORTANT!!!! The HostComponentExtension must run before the BindableExtension!!!!
asc.addCompilerExtension(new HostComponentExtension(compilerConfig.reportMissingRequiredSkinPartsAsWarnings()));
asc.addCompilerExtension(new BindableExtension(gendir, generateAbstractSyntaxTree, false));
asc.addCompilerExtension(new ManagedExtension(gendir, generateAbstractSyntaxTree,
compilerConfig.getServicesDependencies(), false));
asc.addCompilerExtension(new SkinPartExtension());
// asc.addCompilerExtension(new flex2.compiler.util.TraceExtension());
// support MXML
MxmlCompiler mxmlc = new MxmlCompiler(compilerConfig, compilerConfig,
mappings, transcoders);
// support ABC
AbcCompiler abc = new AbcCompiler(compilerConfig);
abc.addCompilerExtension(new StyleExtension());
// abc.addCompilerExtension(new flex2.compiler.util.TraceExtension());
// support FXG
FXGCompiler fxg = new FXGCompiler(compilerConfig, mappings);