def visit_app(self, app: AppInfo) -> str:
    'Visit a AppInfo instance. Usually called by `process`.'
    type_ = ('ASGI' if app.asgi else 'WSGI')
    self.indent = 4
    text = '{} ({})'.format((self.name or 'Falcon App'), type_)
    if app.routes:
        routes = '\n'.join((self.process(r) for r in app.routes))
        text += '\n• Routes:\n{}'.format(routes)
    middleware_text = self.process(app.middleware)
    if middleware_text:
        text += '\n• Middleware ({}):\n{}'.format(app.middleware.independent_text, middleware_text)
    if app.static_routes:
        static_routes = '\n'.join((self.process(sr) for sr in app.static_routes))
        text += '\n• Static routes:\n{}'.format(static_routes)
    if app.sinks:
        sinks = '\n'.join((self.process(s) for s in app.sinks))
        text += '\n• Sinks:\n{}'.format(sinks)
    errors = _filter_internal(app.error_handlers, self.internal)
    if errors:
        errs = '\n'.join((self.process(e) for e in errors))
        text += '\n• Error handlers:\n{}'.format(errs)
    return text
Visit a AppInfo instance. Usually called by `process`.
def visit_app(self, app: AppInfo) -> str:
    
    type_ = ('ASGI' if app.asgi else 'WSGI')
    self.indent = 4
    text = '{} ({})'.format((self.name or 'Falcon App'), type_)
    if app.routes:
        routes = '\n'.join((self.process(r) for r in app.routes))
        text += '\n• Routes:\n{}'.format(routes)
    middleware_text = self.process(app.middleware)
    if middleware_text:
        text += '\n• Middleware ({}):\n{}'.format(app.middleware.independent_text, middleware_text)
    if app.static_routes:
        static_routes = '\n'.join((self.process(sr) for sr in app.static_routes))
        text += '\n• Static routes:\n{}'.format(static_routes)
    if app.sinks:
        sinks = '\n'.join((self.process(s) for s in app.sinks))
        text += '\n• Sinks:\n{}'.format(sinks)
    errors = _filter_internal(app.error_handlers, self.internal)
    if errors:
        errs = '\n'.join((self.process(e) for e in errors))
        text += '\n• Error handlers:\n{}'.format(errs)
    return text