rope.base.oi.soa ================ .. py:module:: rope.base.oi.soa Classes ------- .. autoapisummary:: rope.base.oi.soa.SOAVisitor Functions --------- .. autoapisummary:: rope.base.oi.soa.analyze_module Module Contents --------------- .. py:function:: analyze_module(pycore, pymodule, should_analyze, search_subscopes, followed_calls) Analyze `pymodule` for static object inference Analyzes scopes for collecting object information. The analysis starts from inner scopes. .. py:class:: SOAVisitor(pycore, pydefined, follow_callback=None) Bases: :py:obj:`rope.base.ast.RopeNodeVisitor` A node visitor base class that walks the abstract syntax tree and calls a visitor function for every node found. This function may return a value which is forwarded by the `visit` method. This class is meant to be subclassed, with the subclass adding visitor methods. Per default the visitor functions for the nodes are ``'visit_'`` + class name of the node. So a `TryFinally` node visit function would be `visit_TryFinally`. This behavior can be changed by overriding the `visit` method. If no visitor function exists for a node (return value `None`) the `generic_visit` visitor is used instead. Don't use the `NodeVisitor` if you want to apply changes to nodes during traversing. For this a special visitor exists (`NodeTransformer`) that allows modifications. .. py:attribute:: pycore .. py:attribute:: pymodule .. py:attribute:: scope .. py:attribute:: follow :value: None .. py:method:: visit(node) Modified from ast.NodeVisitor to match rope's existing Visitor implementation