From 6a14f700184dd4cd0a5d51a91dd1f4c2bcd6f09f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Dec 2025 00:03:18 +0000 Subject: [PATCH] Add IndexDefinition switch case to Node() in explain.go The Index() helper function was already defined but wasn't being called from the Node() switch statement. This adds the missing case for *ast.IndexDefinition to properly output Index AST nodes. --- internal/explain/explain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/explain/explain.go b/internal/explain/explain.go index aca386f530..4cbd229509 100644 --- a/internal/explain/explain.go +++ b/internal/explain/explain.go @@ -157,6 +157,8 @@ func Node(sb *strings.Builder, node interface{}, depth int) { explainNameTypePair(sb, n, indent, depth) case *ast.Parameter: explainParameter(sb, n, indent) + case *ast.IndexDefinition: + Index(sb, n, depth) // Dictionary types case *ast.DictionaryAttributeDeclaration: