Skip to content

Commit

Permalink
dsl: add Var.Comparable property
Browse files Browse the repository at this point in the history
  • Loading branch information
quasilyte committed Mar 20, 2022
1 parent 7750682 commit c887ed9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dsl/dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ type Var struct {
// See https://golang.org/ref/spec#Address_operators.
Addressable bool

// Comparable reports whether the corresponding expression value is comparable.
// See https://pkg.go.dev/go/types#Comparable.
Comparable bool

// Type is a type of a matched expr.
//
// For function call expressions, a type is a function result type,
Expand Down

0 comments on commit c887ed9

Please sign in to comment.