[flang-commits] [flang] [flang] Visit "source" member in all AST nodes (PR #175211)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Fri Jan 9 11:41:01 PST 2026


================
@@ -168,12 +169,18 @@ struct ParseTreeVisitorLookupScope {
   template <typename A, typename V>
   static std::enable_if_t<EmptyTrait<A>> Walk(const A &x, V &visitor) {
     if (visitor.Pre(x)) {
+      if constexpr (HasSource<A>::value) {
----------------
kparzysz wrote:

Done.  Let me know if that's not what you had in mind.

https://github.com/llvm/llvm-project/pull/175211


More information about the flang-commits mailing list