get_single(decl_matcher,
decls,
recursive=True)
Static Method
| source code
|
returns a reference to declaration, that match
"decl_matcher" defined criretia, if a unique declaration could
not be found, an appropriate exception will be raised.
- Parameters:
decl_matcher - Python callable object, that takes one argument - reference to
declaration
decls - reference to declaration or list of declarations to be searched
in
recursive - boolean, if True the method will run decl_matcher, on internal
declarations too
|