public class NListComp extends NNode
Modifier and Type | Field and Description |
---|---|
NNode |
elt |
java.util.List<NComprehension> |
generators |
Constructor and Description |
---|
NListComp(NNode elt,
java.util.List<NComprehension> generators) |
NListComp(NNode elt,
java.util.List<NComprehension> generators,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
NType |
resolve(Scope s)
Python's list comprehension will bind the variables used in generators.
|
java.lang.String |
toString() |
void |
visit(NNodeVisitor v)
Visits this node and optionally its children.
|
addChildren, addChildren, addError, addError, addType, addWarning, addWarning, bindNames, bindsName, end, getAstRoot, getDeepestNodeAtOffset, getEnclosingNamespace, getFile, getParent, getTable, getType, isCall, isClassDef, isFunctionDef, isLambda, isModule, isName, length, resolveExpr, resolveList, resolveListAsUnion, setEnd, setParent, setStart, setType, start, visitNode, visitNodeList
public NNode elt
public java.util.List<NComprehension> generators
public NListComp(NNode elt, java.util.List<NComprehension> generators)
public NListComp(NNode elt, java.util.List<NComprehension> generators, int start, int end)
public NType resolve(Scope s) throws java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public void visit(NNodeVisitor v)
NNode