Skip to content

Commit c887ed9

Browse files
committed
dsl: add Var.Comparable property
1 parent 7750682 commit c887ed9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dsl/dsl.go

+4
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ type Var struct {
127127
// See https://golang.org/ref/spec#Address_operators.
128128
Addressable bool
129129

130+
// Comparable reports whether the corresponding expression value is comparable.
131+
// See https://pkg.go.dev/go/types#Comparable.
132+
Comparable bool
133+
130134
// Type is a type of a matched expr.
131135
//
132136
// For function call expressions, a type is a function result type,

0 commit comments

Comments
 (0)