Class AstNode
A syntactic node (Class, Function, Module, Expr, Stmt or Comprehension) corresponding to a flow node
Import path
import python
Direct supertypes
Indirect supertypes
Known direct subtypes
Predicates
contains | Whether this contains |
containsInScope | Whether this contains |
getAChildNode | Gets a child node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt(). |
getAFlowNode | Gets a flow node corresponding directly to this node. NOTE: For some statements and other purely syntactic elements, there may not be a |
getLocation | Gets the location for this AST node |
getParentNode | Gets the parent node of this node in the AST. This predicate exists to aid exploration of the AST and other experiments. The child-parent relation may not be meaningful. For a more meaningful relation in terms of dependency use Expr.getASubExpression(), Stmt.getASubStatement(), Stmt.getASubExpression() or Scope.getAStmt() applied to the parent. |
getScope | Gets the scope that this node occurs in |
isArtificial | Whether this syntactic element is artificial, that is it is generated by the compiler and is not present in the source |