class documentation
Known subclasses: libstatic.Arg, libstatic.Attr, libstatic.Cls, libstatic.Func, libstatic.Imp, libstatic.Mod, libstatic.Var
Model the definition of a name (abstract).
| Method | name |
If the node associated to this Def has a name, returns this name. Otherwise returns None. |
| Class Variable | node |
Undocumented |
Inherited from Def:
| Method | add |
Undocumented |
| Method | users |
The list of ast entity that holds a reference to this node. |
| Instance Variable | islive |
Undocumented |
| Method | _setup |
Undocumented |
| Method | _str |
Undocumented |
| Instance Variable | _users |
Undocumented |
overrides
libstatic.Def.nameoverridden in
libstatic.ModIf the node associated to this Def has a name, returns this name. Otherwise returns None.
node:
Union[ ast.Module, ast.ClassDef, ast.FunctionDef, ast.AsyncFunctionDef, ast.Name, ast.arg, ast.alias, ast.Attribute] =
(source)
¶
overrides
libstatic.Def.nodeoverridden in
libstatic.Arg, libstatic.Attr, libstatic.Cls, libstatic.Func, libstatic.Imp, libstatic.Mod, libstatic.VarUndocumented