Scalpel API Documentation Modules Classes Names
Clear Help

Class Hierarchy

  • ast.NodeTransformer
    • scalpel.core.func_call_visitor.CallTransformer - Undocumented
    • scalpel.core.visitors.TypeInferCallTransformer - A NodeTransformer class for getting function call information
    • scalpel.rewriter.ASTRewriter - Here is the implementation of code rewriter at AST node level.
    • scalpel.rewriter.LoopExchanger - Here is the implementation of code rewriter at AST node level.
    • scalpel.rewriter.VarRenamer - Here is the implementation of code rewriter at AST node level.
    • scalpel.typeinfer.utilities.TypeInferCallTransformer - A NodeTransformer class for getting function call information
  • ast.NodeVisitor
    • scalpel.cfg.builder.CFGBuilder - Control flow graph builder.
    • scalpel.core._scope_graph.ScopeGraph - No class docstring; 0/8 instance variable, 3/21 methods documented
    • scalpel.core.class_visitor.ClassVisitor - Undocumented
    • scalpel.core.fun_def_visitor.FunDefVisitor - Undocumented
    • scalpel.core.func_call_visitor.FuncCallVisitor - Undocumented
    • scalpel.core.kw_visitor.KWVisitor - Undocumented
    • scalpel.core.source_visitor.SourceVisitor - Undocumented
    • scalpel.core.vars_visitor.VarsVisitor - Undocumented
    • scalpel.core.visitors.FuncCallVisitor - A NodeVisitor class for getting function call information
    • scalpel.duc._ContainerRelationshipVisitor - Undocumented
    • scalpel.typeinfer.analysers._StaticAnalyzer - The base class of analyzer, provides functions that read and parse a python program file
      • scalpel.typeinfer.analysers.BinaryOperationMap - Class for retrieving binary operations
      • scalpel.typeinfer.analysers.ClassDefinitionMap - Class for retrieving class definitions in a file
      • scalpel.typeinfer.analysers.FunctionDefinitionMap - Class for retrieving functions definitions in a file
      • scalpel.typeinfer.analysers.ImportTypeMap - Class for mapping imported functions, variables, etc. to their types
      • scalpel.typeinfer.analysers.VariableAssignmentMap - Class for retrieving variable assignments
    • scalpel.typeinfer.analysers.ClassSplitVisitor - ast NodeVisitor class for retrieving compositions of a class: function nodes, bases and assignment records
    • scalpel.typeinfer.analysers.HeuristicParser - A heuristic NodeVisitor for assisting type inference
    • scalpel.typeinfer.analysers.ReturnStmtVisitor - Class for inferring function return types
    • scalpel.typeinfer.analysers.SourceSplitVisitor - ast NodeVisitor class for retrieving assignments
    • scalpel.typeinfer.utilities.FuncCallVisitor - A NodeVisitor class for getting function call information
  • object
    • scalpel.cfg.model.Block - Basic block in a control flow graph.
    • scalpel.cfg.model.CFG - Control flow graph (CFG).
    • scalpel.cfg.model.Link - Link between blocks in a control flow graph.
  • pycg.pycg.CallGraphGenerator
    • scalpel.call_graph.pycg.CallGraphGenerator - Undocumented
  • scalpel.core.base.scalpel_class.SClass - No class docstring; 2/3 methods documented
  • scalpel.core.base.scalpel_method.SMethod - Undocumented
  • scalpel.core.base.scalpel_module.SModule - No class docstring; 2/3 methods documented
  • scalpel.core.mnode.ImportRelation - Undocumented
  • scalpel.core.mnode.MNode - Build a Module node of the given input source file with publicly APIs to manipulate for parsing and code instrumentation file.
  • scalpel.core.util.StmtIterator - Undocumented
  • scalpel.core.util.Unit - Undocumented
  • scalpel.duc.Definition - Undocumented
  • scalpel.duc.DUC - Definition-use chain (DUC). This class provides methods to query the definitions and references for a name in a lexical scope.
  • scalpel.duc.Reference - No class docstring; 2/3 class variables documented
  • scalpel.duc.ReferencedName - Undocumented
  • scalpel.file_system.FileSystem - This class is an upgraded implementation of import graph which will be removed in to later releases. It is a data structure that allows users to manipulate different files under a Python project. It leverage import relations in each of source files along with their absolute import name.
  • scalpel.file_system.Node - This is the basic unit in the FS. Each node represents a single Python module files. Module name, absolute path name, AST and source string are recorded in this dataclass. In addition, fields of its parent and childs are recorded.
  • scalpel.import_graph.import_graph.ImportGraph - The Import Graph class is a data structure that allows users to manipulate different files under a Python project. It leverage import relations in each of source files.
  • scalpel.import_graph.import_graph.Tree - Undocumented
  • scalpel.rewriter.Rewriter - The rewriter class contains a set of static methods.
  • scalpel.SSA.const.SSA - Build SSA graph from a given AST node based on the CFG.
  • scalpel.SSA.def_use.DefUseChain - Undocumented
  • scalpel.SSA.ssa.SSA - Build SSA graph from a given AST node based on the CFG.
  • scalpel.typeinfer.analysers.BinaryOperatorMap - Class for storing binary operation information
  • scalpel.typeinfer.analysers.Heuristics - A set of heuristic function for assisting type inference
  • scalpel.typeinfer.classes.BinaryOperation - Holds information about a binary operation between two variables
  • scalpel.typeinfer.classes.ProcessedFile - Holds information about a processed file
  • scalpel.typeinfer.classes.ScalpelClass - Holds information about a class
  • scalpel.typeinfer.classes.ScalpelFunction - Holds information about a function
  • scalpel.typeinfer.classes.ScalpelVariable - Holds information about a variable
  • scalpel.typeinfer.classes.TypeWarning - Holds information about a type warning
  • scalpel.typeinfer.typeinfer.TypeInference - Infer types for the modules accessible from the entrypoints with the help of a set of heuristic functions
  • stmt.Stmt
    • scalpel.core.base.stmt.assign_stmt.AssignStmt - Undocumented
    • scalpel.core.base.stmt.invoke_stmt.InvokeStmt - No class docstring; 2/3 methods documented
  • typing.Generic
    • scalpel.core.visitors.ExpressionVisitor - Undocumented
      • scalpel.core.visitors.NodeVisitor - Empty base class for parse tree node visitors.
    • scalpel.core.visitors.NodeVisitor - Empty base class for parse tree node visitors.
    • scalpel.core.visitors.PatternVisitor - Undocumented
      • scalpel.core.visitors.NodeVisitor - Empty base class for parse tree node visitors.
    • scalpel.core.visitors.StatementVisitor - Undocumented
      • scalpel.core.visitors.NodeVisitor - Empty base class for parse tree node visitors.

API Documentation for Scalpel, generated by pydoctor 23.4.1 at 2023-08-23 00:55:50.