Class CrossProjectDefinitions::Symbol

A “symbol” referencing an object in another module Symbols are represented by the module name and the dotted name by which the object would be referred to in that module. For example for the code:

class C:
    def m(self): pass

If the code were in a module mod, then symbol for the method m would be “mod/C.m”

Direct supertypes



Finds the AstNode that this Symbol refers to.


Gets the Symbol that is the named member of this Symbol.


Gets the Module for the module part of this Symbol. For example, this would return the os module for the Symbol “os/environ”.


Find the class or module Object that this Symbol refers to, if this Symbol refers to a class or module.