|
1 | 1 | other.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 |
2 | 14 | # 0| [GoFile] other.go |
3 | 15 | # 1| package: [Ident] main |
4 | 16 | # 3| 1: [FuncDecl] function declaration |
@@ -50,3 +62,25 @@ other.go: |
50 | 62 | # 15| 2: [IntLit] 0 |
51 | 63 | # 15| Type = int |
52 | 64 | # 15| Value = [IntLit] 0 |
| 65 | +# 17| 6: [TypeDecl] type declaration |
| 66 | +# 17| 0: [TypeSpec] type declaration specifier |
| 67 | +# 17| 0: [Ident, TypeName] myType |
| 68 | +# 17| Type = myType |
| 69 | +# 17| 1: [ArrayTypeExpr] array type |
| 70 | +# 17| Type = []T |
| 71 | +# 17| 0: [Ident, TypeName] T |
| 72 | +# 17| Type = T |
| 73 | +# 19| 7: [MethodDecl] function declaration |
| 74 | +# 19| 0: [FunctionName, Ident] f |
| 75 | +# 19| Type = func() |
| 76 | +# 19| 1: [FuncTypeExpr] function type |
| 77 | +# 19| 2: [ReceiverDecl] receiver declaration |
| 78 | +# 19| 0: [GenericTypeInstantiationExpr] generic type instantiation expression |
| 79 | +# 19| Type = myType |
| 80 | +# 19| 0: [Ident, TypeName] myType |
| 81 | +# 19| Type = myType |
| 82 | +# 19| 1: [Ident, TypeName] U |
| 83 | +# 19| Type = U |
| 84 | +# 19| 1: [Ident, VariableName] m |
| 85 | +# 19| Type = myType |
| 86 | +# 19| 3: [BlockStmt] block statement |
0 commit comments