Common analysis functions.
This software is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This software is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License
along with this library; see the file LICENCE.txt If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA
| Function Summary |
| |
flatten(values)
|
| |
get_docstring_name_annotation(node)
Return the NAME annotation from the docstring associated with
'node'. |
| |
has_docstring_annotation(node,
name)
Return whether the given 'node' (typically a class, function or
method) has a docstring annotation for the given 'name'. |
| |
lclassname(obj)
|
| |
ldir(node,
name_str)
List the members of the namespace defined for 'node'. |
| |
lname(obj)
|
| |
lobj(node,
strict)
Return a list of object nodes corresponding to possible values for the
given 'node'. |
| |
lref(node,
name_str)
Identify nodes within the namespace defined for 'node' using the
optional 'name_str' as a path into the namespace (and
sub-namespaces). |
| |
ltype(node,
name_str)
Identify the possible types within the namespace defined for 'node'
using the optional 'name_str' as a path into the namespace (and
sub-namespaces). |
| |
unique(values)
|
| |
_get_ns(node)
|
| |
_ldir(node,
names)
|
| |
_lobj(node,
strict)
Return a list of lists of object nodes corresponding to possible
values for the given 'node'. |
| |
_lref(node,
names)
|
| |
_ltype(node)
Return a list of type/class nodes defining the type of the given
'node'. |