All Classes and Interfaces
Class
Description
Aliased name
Common interface for
RegularArgument, UnpackingExpressionAs pattern
Default implementation of
TreeVisitor.See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-break-stmt
Capture Pattern
Case block
A
CfgBlock with 2 successors: represents a block ending
with a condition which determines which successor is executed next.Class pattern
ClassType
See https://docs.python.org/3/reference/simple_stmts.html#the-continue-statement
Protobuf type
protoblog.FileCpdTokensProtobuf type
protoblog.FileCpdTokensProtobuf type
protoblog.TokenProtobuf type
protoblog.TokenEven if decorator is not a statement, it extends
SimpleStatement in order to properly resolve
its last token as it's a newline tokenThis represents a class or function definition
It can be modelled as an assignment of a class / function type to their symbol
Protobuf type
protoblog.AmbiguousDescriptorProtobuf type
protoblog.AmbiguousDescriptorProtobuf type
protoblog.ClassDescriptorProtobuf type
protoblog.ClassDescriptorProtobuf type
protoblog.FunctionDescriptorProtobuf type
protoblog.FunctionDescriptorProtobuf type
protoblog.LocationInFileProtobuf type
protoblog.LocationInFileProtobuf type
protoblog.ModuleDescriptorProtobuf type
protoblog.ModuleDescriptorProtobuf type
protoblog.ParameterDescriptorProtobuf type
protoblog.ParameterDescriptorProtobuf type
protoblog.VarDescriptorProtobuf type
protoblog.VarDescriptorDictionary Comprehension
It can be either
KeyValuePair or UnpackingExpressionExtractor of docstring tokens.
Example:
os.env or Crypto.Cipher.AESDouble Star Pattern (only used within mapping patterns)
Represents singleton Ellipsis object
Common interface for ElseClause used in
IfStatement.elseBranch(), ForStatement.elseClause(),
WhileStatement.elseClause() and TryStatement.elseClause()Common interface for providing callbacks that are triggered at the end of an analysis, after all files have been scanned.
Purpose of this class is to detect and throw exception if the scanned tree that contain invalid syntax regarding the except* instruction.
Python 2 only.
Example:
See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-expression-stmt
Root of the AST.
Visitor that computes
CoreMetrics.NCLOC_DATA_KEY and CoreMetrics.COMMENT_LINES metrics used by the DevCockpit.
finally:
FinallyClause.body()Data flow analysis operating on the CFG.
A channel to handle f-strings.
Common interface for
FunctionDef and LambdaExpressionFunctionType
global
GlobalStatement.variables()Group Pattern
Guard
if-elif-else statement.
Import From statement
Import statement
Import statement
See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-import-stmt
http://docs.python.org/reference/lexical_analysis.html#indentation
Key Value Pattern (only used within mapping patterns)
Keyword pattern
Used only inside Class pattern
Literal Pattern
Mapping Pattern
Match statement
See https://docs.python.org/3/reference/expressions.html#atom-identifiers
http://docs.python.org/reference/lexical_analysis.html#explicit-line-joining
http://docs.python.org/reference/lexical_analysis.html#implicit-line-joining
http://docs.python.org/reference/lexical_analysis.html#blank-lines
See https://docs.python.org/3/library/constants.html#None
nonlocal
NonlocalStatement.variables()OR pattern
See https://docs.python.org/3/reference/compound_stmts.html#grammar-token-parameter-list
Use this class to parse Python module
https://docs.python.org/3/reference/simple_stmts.html#grammar-token-pass-stmt
Python 2 only.
Used in FlowSensitiveTypeInference to update name types based on program state
Extension point to create a custom rule repository for Python.
http://docs.python.org/reference/lexical_analysis.html#keywords
PythonType
Qualified expression like "foo.bar"
https://en.wikipedia.org/wiki/Reaching_definition
Data flow analysis to determinate what definitions may reach a given point in the code.
Read (i.e. non-binding) usages have to be visited in a second phase.
Python 2 only.
Sequence Pattern
Component used in SonarLint to transfer data in memory between plugins.
Star Pattern
Only used inside sequence patterns
See https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation
http://docs.python.org/reference/lexical_analysis.html#string-literals
Protobuf type
protoblog.ClassSymbolProtobuf type
protoblog.ClassSymbolProtobuf type
protoblog.FunctionSymbolProtobuf type
protoblog.FunctionSymbolProtobuf type
protoblog.ModuleSymbolProtobuf type
protoblog.ModuleSymbolProtobuf type
protoblog.OverloadedFunctionSymbolProtobuf type
protoblog.OverloadedFunctionSymbolProtobuf enum
protoblog.ParameterKindProtobuf type
protoblog.ParameterSymbolProtobuf type
protoblog.ParameterSymbolProtobuf type
protoblog.TypeProtobuf type
protoblog.TypeProtobuf enum
protoblog.TypeKindProtobuf type
protoblog.VarSymbolProtobuf type
protoblog.VarSymbol
(
Tuple.elements() )Python 2 only
This type is used for symbols that we assume to be class due to how they are used,
so that type inference correctly tracks objects that were created from this.
Value Pattern
Use variable length encoding for integers.
Use variable length encoding for integers.
Group Pattern
See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-yield-stmt