/** * Method that will only build the explicit definitions for this AS3 class. * This is used by the MXML scope build code to build definitions for a * <fx:Script> tag. * * @param classScope {@link TypeScope} into which this AS3 class' definition * should be added. */ public void buildExplicitMemberDefs(TypeScope classScope) { // Recurse on the class block. contentsNode.analyze(EnumSet.of(PostProcessStep.POPULATE_SCOPE), classScope, new ArrayList<ICompilerProblem>()); }
/** * Method that will only build the explicit definitions for this AS3 class. * This is used by the MXML scope build code to build definitions for a * <fx:Script> tag. * * @param classScope {@link TypeScope} into which this AS3 class' definition * should be added. */ public void buildExplicitMemberDefs(TypeScope classScope) { // Recurse on the class block. contentsNode.analyze(EnumSet.of(PostProcessStep.POPULATE_SCOPE), classScope, new ArrayList<ICompilerProblem>()); }
@Override protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems) { if (set.contains(PostProcessStep.POPULATE_SCOPE)) { assert scope == null; // A FileNode creates a parentless ASFileScope, // which then gets passed down as the current scope. initializeScope(scope); scope = getASScope(); } if (set.contains(PostProcessStep.RECONNECT_DEFINITIONS)) { assert scope != null; assert scope instanceof ASFileScope; reconnectScope(scope); } super.analyze(set, scope, problems); }
@Override protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems) { if (set.contains(PostProcessStep.POPULATE_SCOPE)) { assert scope == null; // A FileNode creates a parentless ASFileScope, // which then gets passed down as the current scope. initializeScope(scope); scope = getASScope(); } if (set.contains(PostProcessStep.RECONNECT_DEFINITIONS)) { assert scope != null; assert scope instanceof ASFileScope; reconnectScope(scope); } super.analyze(set, scope, problems); }
@Override protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems) { if (set.contains(PostProcessStep.POPULATE_SCOPE)) { InterfaceDefinition definition = buildDefinition(); setDefinition(definition); scope.addDefinition(definition); TypeScope typeScope = new TypeScope(scope, contentsNode, definition); definition.setContainedScope(typeScope); scope = typeScope; setupCastFunction(set, definition, scope); } if (set.contains(PostProcessStep.RECONNECT_DEFINITIONS)) { reconnectDef(scope); scope = this.getDefinition().getContainedScope(); contentsNode.reconnectScope(scope); } // Recurse on the interface block. contentsNode.analyze(set, scope, problems); }
@Override protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems) { if (set.contains(PostProcessStep.POPULATE_SCOPE)) { InterfaceDefinition definition = buildDefinition(); setDefinition(definition); scope.addDefinition(definition); TypeScope typeScope = new TypeScope(scope, contentsNode, definition); definition.setContainedScope(typeScope); scope = typeScope; setupCastFunction(set, definition, scope); } if (set.contains(PostProcessStep.RECONNECT_DEFINITIONS)) { reconnectDef(scope); scope = this.getDefinition().getContainedScope(); contentsNode.reconnectScope(scope); } // Recurse on the interface block. contentsNode.analyze(set, scope, problems); }
contentsNode.analyze(set, scope, problems);
contentsNode.analyze(set, scope, problems);
contentsNode.analyze(set, scope, problems);
contentsNode.analyze(set, scope, problems);