Skip to content

Commit 3fcc669

Browse files
authored
Merge pull request #121 from gregory-nisbet/2025-11-22-sumtype
Add gochecksumtype and check Name in .../schema/ast/ast.go
2 parents 17fa46a + a19f338 commit 3fcc669

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ linters:
1010
enable:
1111
- errcheck
1212
- errname
13+
- gochecksumtype
1314
- govet
1415
- ineffassign
1516
- revive

internal/schema/ast/ast.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ func (r *Ref) End() token.Position {
377377
}
378378

379379
// Name is an IDENT or STR
380+
//
381+
//sumtype:decl
380382
type Name interface {
381383
Node
382384
isName()

0 commit comments

Comments
 (0)