pyrser/ast/state.py
def to_fmt(self) -> str:
        """
        Provide a useful representation of the register.
        """
        infos = fmt.end(";\n", [])
        s = fmt.sep(', ', [])
        for ids in sorted(self.states.keys()):
            s.lsdata.append(str(ids))
        infos.lsdata.append(fmt.block('(', ')', [s]))
        infos.lsdata.append("events:" + repr(self.events))
        infos.lsdata.append(
            "named_events:" + repr(list(self.named_events.keys()))
        )
        infos.lsdata.append("uid_events:" + repr(list(self.uid_events.keys())))
        return infos
def to_fmt(self) -> str:
        infos = fmt.end(";\n", [])
        s = fmt.sep(', ', [])
        for ids in sorted(self.states.keys()):
            s.lsdata.append(str(ids))
        infos.lsdata.append(fmt.block('(', ')', [s]))
        infos.lsdata.append("events:" + repr(self.events))
        infos.lsdata.append(
            "named_events:" + repr(list(self.named_events.keys()))
        )
        infos.lsdata.append("uid_events:" + repr(list(self.uid_events.keys())))
        return infos
def to_fmt ( self ) -> str : infos = fmt . end ( ";\n" , [ ] ) s = fmt . sep ( ', ' , [ ] ) for ids in sorted ( self . states . keys ( ) ) : s . lsdata . append ( str ( ids ) ) infos . lsdata . append ( fmt . block ( '(' , ')' , [ s ] ) ) infos . lsdata . append ( "events:" + repr ( self . events ) ) infos . lsdata . append ( "named_events:" + repr ( list ( self . named_events . keys ( ) ) ) ) infos . lsdata . append ( "uid_events:" + repr ( list ( self . uid_events . keys ( ) ) ) ) return infos
Provide a useful representation of the register.
Provide a useful representation of the register .