#pragma once #include "swift/extractor/SwiftDispatcher.h" #include namespace codeql { class DeclVisitor : public swift::DeclVisitor { public: // SwiftDispatcher should outlive the DeclVisitor DeclVisitor(SwiftDispatcher& dispatcher) : dispatcher(dispatcher) {} template void visitDecl(E* decl) { dispatcher.TBD(decl, "Decl"); } private: SwiftDispatcher& dispatcher; }; } // namespace codeql