Skip to content

Commit 31e5cfc

Browse files
committed
ast: remove the node tag guard test
The source-level test checked that every node struct declares the Tag marker with the right type parameter. Drop it: the end-to-end goldens pin the output that matters, and the declarations are one convention, not behavior. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T9LCt1mwdY3mE14x3Zz5Vw
1 parent fd144c6 commit 31e5cfc

2 files changed

Lines changed: 1 addition & 94 deletions

File tree

internal/sql/ast/node_tag.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import (
1818
// as its first field, with T the node's own type. The field is zero-sized and
1919
// its zero value is valid, so constructing nodes as struct literals is
2020
// unaffected; encoding/json calls MarshalJSON on the field, and the type
21-
// parameter carries the node's identity to it at compile time. A test checks
22-
// that every node declares the field and that its type parameter matches.
21+
// parameter carries the node's identity to it at compile time.
2322
type NodeTag[T any] struct{}
2423

2524
func (NodeTag[T]) MarshalJSON() ([]byte, error) {

internal/sql/ast/node_tag_test.go

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)