File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ type Var struct {
141
141
// `$x` m["x"].Type is `a.b()` function call result type
142
142
Type ExprType
143
143
144
+ SinkType SinkType
145
+
144
146
// Object is an associated "go/types" Object.
145
147
Object TypesObject
146
148
@@ -211,6 +213,12 @@ func (TypesObject) Is(typ string) bool { return boolResult }
211
213
// IsGlobal reports whether an associated types.Object is defined in global scope.
212
214
func (TypesObject ) IsGlobal () bool { return boolResult }
213
215
216
+ type SinkType struct {}
217
+
218
+ // Is reports whether a type is identical to a given type.
219
+ // Works like ExprType.Is method.
220
+ func (SinkType ) Is (typ string ) bool { return boolResult }
221
+
214
222
// ExprType describes a type of a matcher expr.
215
223
type ExprType struct {
216
224
// Size represents expression type size in bytes.
You can’t perform that action at this time.
0 commit comments