Skip to content

Commit

Permalink
remove assertExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
deelawn committed Sep 19, 2024
1 parent 0e80801 commit 804c17e
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions gnovm/pkg/gnolang/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,29 +327,11 @@ var (

type Expr interface {
Node
assertExpr()
addressability() addressabilityStatus
}

type Exprs []Expr

// non-pointer receiver to help make immutable.
func (*NameExpr) assertExpr() {}
func (*BasicLitExpr) assertExpr() {}
func (*BinaryExpr) assertExpr() {}
func (*CallExpr) assertExpr() {}
func (*IndexExpr) assertExpr() {}
func (*SelectorExpr) assertExpr() {}
func (*SliceExpr) assertExpr() {}
func (*StarExpr) assertExpr() {}
func (*RefExpr) assertExpr() {}
func (*TypeAssertExpr) assertExpr() {}
func (*UnaryExpr) assertExpr() {}
func (*CompositeLitExpr) assertExpr() {}
func (*KeyValueExpr) assertExpr() {}
func (*FuncLitExpr) assertExpr() {}
func (*ConstExpr) assertExpr() {}

var (
_ Expr = &NameExpr{}
_ Expr = &BasicLitExpr{}
Expand Down Expand Up @@ -623,17 +605,6 @@ func (x *StructTypeExpr) assertTypeExpr() {}
func (x *constTypeExpr) assertTypeExpr() {}
func (x *MaybeNativeTypeExpr) assertTypeExpr() {}

func (x *FieldTypeExpr) assertExpr() {}
func (x *ArrayTypeExpr) assertExpr() {}
func (x *SliceTypeExpr) assertExpr() {}
func (x *InterfaceTypeExpr) assertExpr() {}
func (x *ChanTypeExpr) assertExpr() {}
func (x *FuncTypeExpr) assertExpr() {}
func (x *MapTypeExpr) assertExpr() {}
func (x *StructTypeExpr) assertExpr() {}
func (x *constTypeExpr) assertExpr() {}
func (x *MaybeNativeTypeExpr) assertExpr() {}

var (
_ TypeExpr = &FieldTypeExpr{}
_ TypeExpr = &ArrayTypeExpr{}
Expand Down

0 comments on commit 804c17e

Please sign in to comment.