Documentation of 'org.python.indexer.ast.NGeneratorExp' Java class
NGeneratorExp
org.python.indexer.ast

Class NGeneratorExp

  • All Implemented Interfaces:
    java.io.Serializable


    public class NGeneratorExp
    extends NNode
    See Also:
    Serialized Form
    • Constructor Detail

      • NGeneratorExp

        public NGeneratorExp(NNode elt,
                             java.util.List<NComprehension> generators,
                             int start,
                             int end)
    • Method Detail

      • resolve

        public NType resolve(Scope s)
                      throws java.lang.Exception
        Python's list comprehension will erase any variable used in generators. This is wrong, but we "respect" this bug here.
        Overrides:
        resolve in class NNode
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • visit

        public void visit(NNodeVisitor v)
        Description copied from class: NNode
        Visits this node and optionally its children.

        Specified by:
        visit in class NNode
        Parameters:
        v - the object to call with this node. If the visitor returns true, the node also passes its children to the visitor.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.