@@ -639,6 +639,11 @@ other.go:
639639# 11| Type = int
640640# 11| 0: [Ident, VariableName] myNested
641641# 11| Type = func() int
642+ # 8| 3: [TypeParamDecl] type parameter declaration
643+ # 8| 0: [Ident, TypeName] int
644+ # 8| Type = int
645+ # 8| 1: [Ident, TypeName] U
646+ # 8| Type = U
642647# 15| 5: [VarDecl] variable declaration
643648# 15| 0: [ValueSpec] value declaration specifier
644649# 15| 0: [Ident, VariableName] x
@@ -648,3 +653,32 @@ other.go:
648653# 15| 2: [IntLit] 0
649654# 15| Type = int
650655# 15| Value = [IntLit] 0
656+ # 17| 6: [TypeDecl] type declaration
657+ # 17| 0: [TypeSpec] type declaration specifier
658+ # 17| 0: [Ident, TypeName] myType
659+ # 17| Type = myType
660+ # 17| 1: [ArrayTypeExpr] array type
661+ # 17| Type = []T
662+ # 17| 0: [Ident, TypeName] T
663+ # 17| Type = T
664+ # 17| 2: [TypeParamDecl] type parameter declaration
665+ # 17| 0: [TypeSetLiteralExpr] type set literal
666+ # 17| Type = ~string
667+ # 17| 0: [Ident, TypeName] string
668+ # 17| Type = string
669+ # 17| 1: [Ident, TypeName] T
670+ # 17| Type = T
671+ # 19| 7: [MethodDecl] function declaration
672+ # 19| 0: [FunctionName, Ident] f
673+ # 19| Type = func()
674+ # 19| 1: [FuncTypeExpr] function type
675+ # 19| 2: [ReceiverDecl] receiver declaration
676+ # 19| 0: [GenericTypeInstantiationExpr] generic type instantiation expression
677+ # 19| Type = myType
678+ # 19| 0: [Ident, TypeName] myType
679+ # 19| Type = myType
680+ # 19| 1: [Ident, TypeName] U
681+ # 19| Type = U
682+ # 19| 1: [Ident, VariableName] m
683+ # 19| Type = myType
684+ # 19| 3: [BlockStmt] block statement
0 commit comments