pyrser/type_system/scope.py
def get_by_return_type(self, tname: str) -> Scope:
        """ Retrieve a Set of all signature by (return) type """
        lst = []
        for s in self.values():
            if hasattr(s, 'tret') and s.tret == tname:
                lst.append(EvalCtx.from_sig(s))
        rscope = Scope(sig=lst, state=StateScope.LINKED, is_namespace=False)
        # inherit type/translation from parent
        rscope.set_parent(self)
        return rscope
def get_by_return_type(self, tname: str) -> Scope:
        """ Retrieve a Set of all signature by (return) type """
        lst = []
        for s in self.values():
            if hasattr(s, 'tret') and s.tret == tname:
                lst.append(EvalCtx.from_sig(s))
        rscope = Scope(sig=lst, state=StateScope.LINKED, is_namespace=False)
        # inherit type/translation from parent
        rscope.set_parent(self)
        return rscope
def get_by_return_type ( self , tname : str ) -> Scope : lst = [ ] for s in self . values ( ) : if hasattr ( s , 'tret' ) and s . tret == tname : lst . append ( EvalCtx . from_sig ( s ) ) rscope = Scope ( sig = lst , state = StateScope . LINKED , is_namespace = False ) # inherit type/translation from parent rscope . set_parent ( self ) return rscope
Retrieve a Set of all signature by (return) type
Retrieve a Set of all signature by ( return ) type