pyrser/type_system/evalctx.py
def get_resolved_names(self, type_name: TypeName) -> list:
        """
        Use self.resolution to subsitute type_name.
        Allow to instanciate polymorphic type ?1, ?toto
        """
        if not isinstance(type_name, TypeName):
            raise Exception("Take a TypeName as parameter not a %s"
                            % type(type_name))
        rnames = []
        for name in type_name.components:
            if name not in self.resolution:
                raise Exception("Unknown type %s in a EvalCtx" % name)
            rname = self.resolution[name]
            if rname is not None:
                rname = rname().show_name()
            else:
                rname = name
            rnames.append(rname)
        return rnames
def get_resolved_names(self, type_name: TypeName) -> list:
        if not isinstance(type_name, TypeName):
            raise Exception("Take a TypeName as parameter not a %s"
                            % type(type_name))
        rnames = []
        for name in type_name.components:
            if name not in self.resolution:
                raise Exception("Unknown type %s in a EvalCtx" % name)
            rname = self.resolution[name]
            if rname is not None:
                rname = rname().show_name()
            else:
                rname = name
            rnames.append(rname)
        return rnames
def get_resolved_names ( self , type_name : TypeName ) -> list : if not isinstance ( type_name , TypeName ) : raise Exception ( "Take a TypeName as parameter not a %s" % type ( type_name ) ) rnames = [ ] for name in type_name . components : if name not in self . resolution : raise Exception ( "Unknown type %s in a EvalCtx" % name ) rname = self . resolution [ name ] if rname is not None : rname = rname ( ) . show_name ( ) else : rname = name rnames . append ( rname ) return rnames
Use self.resolution to subsitute type_name.
        Allow to instanciate polymorphic type ?1, ?toto
Use self . resolution to subsitute type_name . Allow to instanciate polymorphic type ?1 ?toto