class documentation
class Heuristics: (source)
A set of heuristic function for assisting type inference
| Static Method | get |
Get list of variables/constants/callables involved in a binary operation |
| Static Method | heuristic |
Performs heuristic 8 for a function's inputs. Note that this heuristic attempts to infer/check the types a developer likely intended for function parameters and provide a limited number of types to the actual number that may work... |
| Static Method | heuristic |
No summary |
| Static Method | heuristic |
No summary |
| Static Method | heuristic |
No summary |
| Static Method | heuristic |
Performs heuristic 8 for a function's inputs. Note that this heuristic attempts to infer/check the types a developer likely intended for function parameters and provide a limited number of types to the actual number that may work... |
| Static Method | heuristic |
No summary |
| Static Method | in |
Determines whether a variable is featured in a binary operation |
| Method | heuristic |
Undocumented |
| Method | heuristic |
No summary |
| Method | heuristic |
Undocumented |
Performs heuristic 8 for a function's inputs. Note that this heuristic attempts to infer/check the types a developer likely intended for function parameters and provide a limited number of types to the actual number that may work
| Parameters | |
| ast | The ast tree for the module the function is in |
| function | The name of the function being checked |
| function | The function parameters from a variable assignment map |
| Parameters | |
| import | The import mappings that have been generated |
| processed | The files that have been processed |
| function | The function node being checked |
| Parameters | |
| processed | the files that have been processed |
| function | the function node being checked |
| Parameters | |
| processed | the files that have been processed |
| function | the function node being checked |
Performs heuristic 8 for a function's inputs. Note that this heuristic attempts to infer/check the types a developer likely intended for function parameters and provide a limited number of types to the actual number that may work
| Parameters | |
| function | Undocumented |
| function | The function parameters from a variable assignment map |
| ast | The ast tree for the module the function is in |
| function | The name of the function being checked |
| Parameters | |
| ast | the root node of the ast tree |
| processed | the files that have been processed |
| assignments | the assignment list |
Determines whether a variable is featured in a binary operation
| Parameters | |
variable:ScalpelVariable | The variable to check for |
binaryast.BinOp | The binary operation to check |
| Returns | |
Boolean | True if it is within the binary operation, false otherwise |