Examples of CircularTypeReferenceProblem


Examples of org.apache.flex.compiler.problems.CircularTypeReferenceProblem

            // Repair by making the class extend Object.
            superclassDefinition = getObjectDefinition(project);
        }
        else if (superclassDefinition == classDefinition)
        {
            problems.add(new CircularTypeReferenceProblem(classDefinition, classDefinition.getQualifiedName()));
           
            // Repair by making the class extend Object.
            superclassDefinition = getObjectDefinition(project);
        }
       
View Full Code Here

Examples of org.apache.flex.compiler.problems.CircularTypeReferenceProblem

        private void analyze(IInterfaceDefinition iface, RecursionGuard guard, Collection<ICompilerProblem> problems)
        {
            if (guard.isLoop(iface))
            {
                if (problems != null)
                    problems.add(new CircularTypeReferenceProblem(iface, iface.getBaseName()));
                return;
            }
            IInterfaceDefinition[] parentIFaces = iface.resolveExtendedInterfaces(project);
            for (IInterfaceDefinition parentIFace : parentIFaces)
            {
View Full Code Here

Examples of org.apache.flex.compiler.problems.CircularTypeReferenceProblem

        }
       
        // Report a loop in the superclass chain, such as A extends B and B extends A.
        // Note: A extends A was found previously by SemanticUtils.resolveBaseClass().
        if (classIterator.foundLoop())
            classScope.addProblem(new CircularTypeReferenceProblem(c, c.getQualifiedName()));
       
        // In the case of class A extends A, ancestorClassNames will be empty at this point.
        // Change it to be Object to prevent "Warning: Stack underflow" in the script init code below.
        if (ancestorClassNames.isEmpty())
        {
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.