CodeQL library for Python
codeql/python-all 0.11.14 (changelog, source)
Search

Class ParameterNode

A print node for a Parameter.

This print node has the annotation and default value of the Parameter as children. The type annotation and default value would by default exist as children of the parent Function.

Import path

import semmle.python.PrintAst

Direct supertypes

Indirect supertypes

Fields

Inherited fields

Predicates

getChildNode

Gets a child node for the AstNode that this print node represents.

Inherited predicates

getAChild

Gets a child of this node.

from PrintAstNode
getAstNode

Gets the AstNode that is printed by this print node.

from AstElementNode
getChild

Gets the child node at index childIndex. Child indices must be unique, but need not be contiguous.

from AstElementNode
getChildEdgeLabel

Gets the label for the edge from this node to the specified child. By default, this is just the index of the child, but subclasses can override this.

from PrintAstNode
getLocation

Gets the location of this node in the source code.

from AstElementNode
getParent

Gets the parent of this node, if any.

from PrintAstNode
getProperty

Gets the value of the property of this node, where the name of the property is key.

from PrintAstNode
getStmtList

Gets the indexth StmtList that is a child of the AstNode that this print node represents. label is used for pretty-printing a label in the parent-child relation in the ast-viewer.

from AstElementNode
toString

Gets a textual representation of this node in the PrintAst output tree.

from AstElementNode

Charpred