Examples of AssignDefinition


Examples of org.python.pydev.editor.codecompletion.revisited.visitors.AssignDefinition

        if (size > 0) {
            //ok, it is an assign, so, let's get it
            for (int i = 0; i < size; i++) {
                Object next = defs.get(i);
                if (next instanceof AssignDefinition) {
                    AssignDefinition element = (AssignDefinition) next;
                    if (element.target.startsWith("self") == false) {
                        if (element.scope.isOuterOrSameScope(scopeVisitor.scope) || element.foundAsGlobal) {
                            toRet.add(element);
                        }
                    } else {
View Full Code Here

Examples of org.python.pydev.editor.codecompletion.revisited.visitors.AssignDefinition

                                continue;
                            }
                        }
                    }

                    AssignDefinition assignDefinition = null;
                    if (definition instanceof AssignDefinition) {
                        assignDefinition = (AssignDefinition) definition;
                    }

                    if (definition.ast instanceof FunctionDef) {
View Full Code Here

Examples of org.python.pydev.editor.codecompletion.revisited.visitors.AssignDefinition

                CompletionStateFactory.getEmptyCompletionState(repToCheck, nature, this.completionCache), -1, -1,
                nature);
        for (int i = 0; i < definitions.length; i++) {
            IDefinition foundDefinition = definitions[i];
            if (foundDefinition instanceof AssignDefinition) {
                AssignDefinition d = (AssignDefinition) foundDefinition;

                //if the value is currently None, it will be set later on
                if (d.value.equals("None")) {
                    return true;
                }
View Full Code Here

Examples of org.python.pydev.editor.codecompletion.revisited.visitors.AssignDefinition

     * Decides which process should take care of the request.
     * @param request
     */
    public static IRefactorRenameProcess getProcess(Definition definition, RefactoringRequest request) {
        if (definition instanceof AssignDefinition) {
            AssignDefinition d = (AssignDefinition) definition;
            if (d.target.indexOf('.') != -1) {
                if (d.target.startsWith("self.")) {
                    //ok, it is a member and not a local
                    return new PyRenameSelfAttributeProcess(definition, d.target);
                } else {
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.