Examples of followType()


Examples of org.python.indexer.NBinding.followType()

        if (targetType == Indexer.idx.builtins.None) {
            return;
        }
        NBinding b = targetType.getTable().putAttr(attr.id, attr, v, ATTRIBUTE);
        if (b != null) {
            setType(attr.setType(b.followType()));
        }
    }

    @Override
    public NType resolve(Scope s) throws Exception {
View Full Code Here

Examples of org.python.indexer.NBinding.followType()

        NBinding b = s.lookup(id);
        if (b == null) {
            b = makeTempBinding(s);
        }
        Indexer.idx.putLocation(this, b);
        return setType(b.followType());
    }

    /**
     * Returns {@code true} if this name is structurally in a call position.
     */
 
View Full Code Here

Examples of org.python.indexer.NBinding.followType()

            Scope bindingScope = s.getScopeSymtab();
            b = bindingScope.put(name.id, name, rvalue,
                                 kindOr(bindingScope.isFunctionScope() ? VARIABLE : SCOPE));
        }

        name.setType(b.followType());

        // XXX: this seems like a bit of a hack; should at least figure out
        // and document what use cases require it.
        NType nameType = name.getType();
        if (!(nameType.isModuleType() || nameType.isClassType())) {
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.