Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Lowering of {x:1, y:2, **z}: { tmp = {} tmp[x] = 1 tmp[y] = 2 tmp.update(z) tmp }
Lowering of {x:1, y:2, **z}: { tmp = {} tmp[x] = 1 tmp[y] = 2 tmp.update(z) tmp }
Attributes
Lowering of [x for y in l for x in y]: { tmp = []
Lowering of [x for y in l for x in y]: { tmp = []
Attributes
Lowering of {x for y in l for x in y}: { tmp = {}
Lowering of {x for y in l for x in y}: { tmp = {}
Attributes
Lowering of {k:v for y in l for k, v in y}: { tmp = {}
Lowering of {k:v for y in l for k, v in y}: { tmp = {}
Attributes
Lowering of (x for y in l for x in y): { tmp =
Lowering of (x for y in l for x in y): { tmp =
Attributes
TODO For now this function compromises on the correctness of the lowering in order to get some data flow tracking going.
TODO For now this function compromises on the correctness of the lowering in order to get some data flow tracking going.
- For constructs like x.func() we assume x to be the instance which is passed into func. This is not true since the instance method object gets the instance already bound/captured during function access. This becomes relevant for constructs like: x.func = y.func <- y.func is class method object x.func() In this case the instance passed into func is y and not x. We cannot represent this in th CPG and thus stick to the assumption that the part before the "." and the bound/captured instance will be the same. For reference see: https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy search for "Instance methods"
Attributes
TODO We currently ignore possible attribute access provider/interception mechanisms like getattr, getattribute and get.
TODO We currently ignore possible attribute access provider/interception mechanisms like getattr, getattribute and get.
Attributes
Attributes
- Definition Classes
-
AstCreatorBase
Inherited methods
Absolute path for the given file name
Absolute path for the given file name
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Creates an AST that represents an annotation assignment with a name for the assigned value, its overall code, and the respective assignment AST.
Creates an AST that represents an annotation assignment with a name for the assigned value, its overall code, and the respective assignment AST.
Attributes
- Inherited from:
- AstCreatorBase
Creates an AST that represents an annotation, including its content (annotation parameter assignments).
Creates an AST that represents an annotation, including its content (annotation parameter assignments).
Attributes
- Inherited from:
- AstCreatorBase
For a given block node and statement ASTs, create an AST that represents the block. The main purpose of this method is to increase the readability of the code which creates block asts.
For a given block node and statement ASTs, create an AST that represents the block. The main purpose of this method is to increase the readability of the code which creates block asts.
Attributes
- Inherited from:
- AstCreatorBase
Create an abstract syntax tree for a call, including CPG-specific edges required for arguments and the receiver.
Create an abstract syntax tree for a call, including CPG-specific edges required for arguments and the receiver.
Our call representation is inspired by ECMAScript, that is, in addition to arguments, a call has a base and a receiver. For languages other than Javascript, leave receiver
empty for now.
Value parameters
- arguments
-
arguments (without the base argument (instance))
- base
-
the value to use as
this
in the method call. - callNode
-
the node that represents the entire call
- receiver
-
the object in which the property lookup is performed
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- PythonAstVisitorHelpers
For a given node, condition AST and children ASTs, create an AST that represents the control structure. The main purpose of this method is to automatically assign the correct condition edges.
For a given node, condition AST and children ASTs, create an AST that represents the control structure. The main purpose of this method is to automatically assign the correct condition edges.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Create a global namespace block for the given filename
Create a global namespace block for the given filename
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- PythonAstVisitorHelpers
Creates an AST that represents an entire method, including its content.
Creates an AST that represents an entire method, including its content.
Attributes
- Inherited from:
- AstCreatorBase
Creates an AST that represents an entire method, including its content and with support for both method and parameter annotations.
Creates an AST that represents an entire method, including its content and with support for both method and parameter annotations.
Attributes
- Inherited from:
- AstCreatorBase
Creates an AST that represents a method stub, containing information about the method, its parameters, and the return type.
Creates an AST that represents a method stub, containing information about the method, its parameters, and the return type.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Returns
-
the next available name for a closure in this context
- Inherited from:
- AstCreatorBase
For a given return node and arguments, create an AST that represents the return instruction. The main purpose of this method is to automatically assign the correct argument indices.
For a given return node and arguments, create an AST that represents the return instruction. The main purpose of this method is to automatically assign the correct argument indices.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
For the given try body, catch ASTs and finally AST, create a try-catch-finally AST with orders set correctly for the ossdataflow engine.
For the given try body, catch ASTs and finally AST, create a try-catch-finally AST with orders set correctly for the ossdataflow engine.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase