11other.go:
2- # 8| [TypeParamDecl] type parameter declaration
3- # 8| 0: [Ident, TypeName] int
4- # 8| Type = int
5- # 8| 1: [Ident, TypeName] U
6- # 8| Type = U
7- # 17| [TypeParamDecl] type parameter declaration
8- # 17| 0: [TypeSetLiteralExpr] type set literal
9- # 17| Type = ~string
10- # 17| 0: [Ident, TypeName] string
11- # 17| Type = string
12- # 17| 1: [Ident, TypeName] T
13- # 17| Type = T
142# 0| [GoFile] other.go
153# 1| package: [Ident] main
164# 3| 1: [FuncDecl] function declaration
@@ -53,6 +41,11 @@ other.go:
5341# 11| Type = int
5442# 11| 0: [Ident, VariableName] myNested
5543# 11| Type = func() int
44+ # 8| 3: [TypeParamDecl] type parameter declaration
45+ # 8| 0: [Ident, TypeName] int
46+ # 8| Type = int
47+ # 8| 1: [Ident, TypeName] U
48+ # 8| Type = U
5649# 15| 5: [VarDecl] variable declaration
5750# 15| 0: [ValueSpec] value declaration specifier
5851# 15| 0: [Ident, VariableName] x
@@ -70,6 +63,13 @@ other.go:
7063# 17| Type = []T
7164# 17| 0: [Ident, TypeName] T
7265# 17| Type = T
66+ # 17| 2: [TypeParamDecl] type parameter declaration
67+ # 17| 0: [TypeSetLiteralExpr] type set literal
68+ # 17| Type = ~string
69+ # 17| 0: [Ident, TypeName] string
70+ # 17| Type = string
71+ # 17| 1: [Ident, TypeName] T
72+ # 17| Type = T
7373# 19| 7: [MethodDecl] function declaration
7474# 19| 0: [FunctionName, Ident] f
7575# 19| Type = func()
0 commit comments