(self, attr: str)
return result
Common helper for function attribute testing.
Common helper for function attribute testing.
Common helper for function attribute testing .
def _has_function_attribute_impl(self, attr: str) -> bool:
        """Common helper for function attribute testing."""
        result, cached = self.compiler.has_func_attribute(attr, self.environment)
        cached_msg = mlog.blue('(cached)') if cached else ''
        h = mlog.green('YES') if result else mlog.red('NO')
        mlog.log(f'Compiler for {self.compiler.get_display_language()} supports function attribute {attr}:', h, cached_msg)
        return result
def _has_function_attribute_impl ( self , attr : str ) -> bool : result , cached = self . compiler . has_func_attribute ( attr , self . environment ) cached_msg = mlog . blue ( '(cached)' ) if cached else '' h = mlog . green ( 'YES' ) if result else mlog . red ( 'NO' ) mlog . log ( f'Compiler for {self.compiler.get_display_language()} supports function attribute {attr}:' , h , cached_msg ) return result