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

Module AstExtended

Import path

import semmle.python.AstExtended

Imports

Classes

AliasList

A list of aliases in an import statement

ArgumentsParent

The parent of an Arguments node. Internal implementation class

AstNode

A syntactic node (Class, Function, Module, Expr, Stmt or Comprehension) corresponding to a flow node

BytesOrStr
Comprehension

A comprehension part, the ‘for a in seq’ part of [ a * a for a in seq ]

ComprehensionList

A list of Comprehensions (for generating parts of a set, list or dictionary comprehension)

DictItem
DictItemList
DictItemListParent
ExprContextParent

The parent of an ExprContext. Internal implementation class

ExprList

A list of expressions

ExprListParent

The parent of an ExprList. Internal implementation class

ExprParent

The parent of an Expr. Internal implementation class

FunctionParent

The parent of a Function. Internal implementation class

ParamSpec

A param spec parameter, such as **T1 in type T[**T1] = T2.

ParameterList

A parameter list

PatternList

A list of patterns

PatternListParent

The parent of a PatternList. Internal implementation class

PatternParent

The parent of a Pattern. Internal implementation class

StmtListParent

The parent of a StmtList. Internal implementation class

StrListParent

The parent of a StrList. Internal implementation class

StringList

A list of strings (the primitive type string not Bytes or Unicode)

StringPart

A part of a string literal formed by implicit concatenation. For example the string literal “abc” expressed in the source as "a" "b" "c" would be composed of three StringParts.

StringPartList
TypeAlias

A type alias statement, such as type T[T1,T2] = T3.

TypeParameter

A generic type parameter, as seen in function, class, and type alias definitions.

TypeParameterList

A list of type parameters

TypeParameterListParent

A parent of a TypeParameterList. Internal implementation class.

TypeVar

A type variable, with an optional bound, such as T1 and T2 in type T[T1, T2: T3] = T4.

TypeVarTuple

A type var tuple parameter, such as *T1 in type T[*T1] = T2.