File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313#include " swift/extractor/infra/SwiftLocationExtractor.h"
1414#include " swift/extractor/infra/SwiftBodyEmissionStrategy.h"
1515#include " swift/extractor/config/SwiftExtractorState.h"
16+ #include " swift/extractor/infra/log/SwiftLogging.h"
1617
1718namespace codeql {
1819
@@ -151,7 +152,13 @@ class SwiftDispatcher {
151152 return *l;
152153 }
153154 waitingForNewLabel = e;
155+ // TODO: more generic and informational visiting one-line log
156+ if constexpr (std::is_convertible_v<E, const swift::ValueDecl*>) {
157+ const swift::ValueDecl* x = e;
158+ LOG_TRACE (" {}" , x->getName ().getBaseIdentifier ().str ());
159+ }
154160 visit (e, std::forward<Args>(args)...);
161+ Log::flush ();
155162 // TODO when everything is moved to structured C++ classes, this should be moved to createEntry
156163 if (auto l = store.get (e)) {
157164 if constexpr (IsLocatable<E>) {
@@ -329,6 +336,7 @@ class SwiftDispatcher {
329336 SwiftBodyEmissionStrategy& bodyEmissionStrategy;
330337 Store::Handle waitingForNewLabel{std::monostate{}};
331338 std::unordered_set<swift::ModuleDecl*> encounteredModules;
339+ Logger logger{" dispatcher" };
332340};
333341
334342} // namespace codeql
You can’t perform that action at this time.
0 commit comments