Examples of pushScope()


Examples of macromedia.asc.util.Context.pushScope()

    }

    // run -strict and -coach
    if (as3Configuration.warnings())
    {
      cx.pushScope(node.frame);

      LintEvaluator lint = new LintEvaluator(cx, unit.getSource().getName(), warnMap);
      node.evaluate(cx, lint);
      cx.popScope();
            lint.simpleLogWarnings(cx, coachWarningsAsErrors);
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

                                              as3Configuration.debug() || as3Configuration.verboseStacktraces(),
                                              !as3Configuration.optimize(),
                                              as3Configuration.keepEmbedMetadata(),
                                          as3Configuration.adjustOpDebugLine() ? map : null);

    cx.pushScope(node.frame);
    CodeGenerator generator = new CodeGenerator(emitter);
    if (RuntimeConstants.SWF)
    {
      generator.push_args_right_to_left(true);
    }
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

    CompilerContext context = unit.getContext();
    Context cx = context.getAscContext();
    symbolTable.perCompileData.handler = cx.getHandler();

    ObjectValue global = new ObjectValue(cx, new GlobalBuilder(), null);
    cx.pushScope(global); // first scope is always considered the global scope.

    // run FlowAnalyzer
    FlowGraphEmitter flowem = new FlowGraphEmitter(cx, unit.getSource().getName(), false);
    FlowAnalyzer flower = new FlowAnalyzer(flowem);
    context.setAttribute("FlowAnalyzer", flower);
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

    context.setAttribute("processed", new HashSet(15));

    inheritSlots(unit, unit.inheritance, symbolTable);
    inheritSlots(unit, unit.namespaces, symbolTable);

    cx.pushScope(node.frame);
    // 2. ProgramNode.state == Else
    node.evaluate(cx, flower);
    cx.popScope();

    if (ThreadLocalToolkit.errorCount() > 0)
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

    inheritSlots(unit, unit.types, symbolTable);
    inheritSlots(unit, unit.namespaces, symbolTable);

    // run ConstantEvaluator
    cx.pushScope(node.frame);
    ConstantEvaluator analyzer = new ConstantEvaluator(cx);
    analyzer.PreprocessDefinitionTypeInfo(cx, node);
    cx.popScope();
    context.setAttribute("ConstantEvaluator", analyzer);
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

    CompilerContext context = unit.getContext();
    Context cx = context.getAscContext();
    symbolTable.perCompileData.handler = cx.getHandler();

    // run ConstantEvaluator
    cx.pushScope(node.frame);
    ConstantEvaluator analyzer = (ConstantEvaluator) context.removeAttribute("ConstantEvaluator");
    node.evaluate(cx, analyzer);
    cx.popScope();

    if (ThreadLocalToolkit.errorCount() > 0)
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

            {
                packages.remove(n);
            }
        }

        cx.pushScope(node.frame);

        MetaDataEvaluator printer = new MetaDataEvaluator();
        node.evaluate(cx, printer);

        ObjectList comments = printer.doccomments;
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

        Slot getSlot = node.ref.getSlot(cx, GET_TOKEN);
        Slot setSlot = node.ref.getSlot(cx, SET_TOKEN);
        boolean with_this = getSlot instanceof MethodSlot || setSlot instanceof MethodSlot;

        ObjectValue fun = node.fun;
        cx.pushScope(fun.activation);

        // Do nested functions
        boolean needs_activation = false;

        if( node.fexprs.size() > 0 )
View Full Code Here

Examples of macromedia.asc.util.Context.pushScope()

         *
         * The prototype initializer sets up the prototype object with the
         * getter and setters for its children.
         */

        cx.pushScope(node.iframe);

        /*{
            fun_name_stack.add(node.iframe.builder.classname + "$iinit");
            max_params_stack.add(0);
            max_locals_stack.add(node.var_count + 1);// ? why +1
View Full Code Here

Examples of org.araneaframework.OutputData.pushScope()

      widget._getWidget().render(output);
    }
    finally {
      for (; currentScope.hasNext(); ) {
        Object next = currentScope.next();
        output.pushScope(next);
      }
    }
   
    // Continue
    super.after(out);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.