File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ import (
11
11
"go/ast"
12
12
)
13
13
14
- type Inferred = _Inferred
14
+ type (
15
+ Inferred = _Inferred
16
+ Sum = _Sum
17
+ TypeParam = _TypeParam
18
+ )
15
19
16
20
func GetInferred (info * Info ) map [ast.Expr ]Inferred {
17
21
return info ._Inferred
@@ -20,3 +24,16 @@ func GetInferred(info *Info) map[ast.Expr]Inferred {
20
24
func SetInferred (info * Info , inferred map [ast.Expr ]Inferred ) {
21
25
info ._Inferred = inferred
22
26
}
27
+
28
+ func NewSum (types []Type ) Type { return _NewSum (types ) }
29
+
30
+ func (s * Signature ) TParams () []* TypeName { return s ._TParams () }
31
+ func (s * Signature ) SetTParams (tparams []* TypeName ) { s ._SetTParams (tparams ) }
32
+
33
+ func (t * Interface ) HasTypeList () bool { return t ._HasTypeList () }
34
+ func (t * Interface ) IsComparable () bool { return t ._IsComparable () }
35
+ func (t * Interface ) IsConstraint () bool { return t ._IsConstraint () }
36
+
37
+ func (t * Named ) TParams () []* TypeName { return t ._TParams () }
38
+ func (t * Named ) TArgs () []Type { return t ._TArgs () }
39
+ func (t * Named ) SetTArgs (args []Type ) { t ._SetTArgs (args ) }
You can’t perform that action at this time.
0 commit comments