@@ -24,8 +24,8 @@ type Value interface {
2424 // Type returns this value's type.
2525 Type () Type
2626
27- // Equals returns a comparison on this value against that value.
28- Equals (that Value ) bool
27+ // Equal returns a comparison on this value against that value.
28+ Equal (that Value ) bool
2929
3030 // String returns a string representation of the value.
3131 String () string
@@ -68,7 +68,7 @@ func (value *tUndefined) Type() Type {
6868 return & tUndefinedType {}
6969}
7070
71- func (value * tUndefined ) Equals (that Value ) bool {
71+ func (value * tUndefined ) Equal (that Value ) bool {
7272 _ , ok := that .(* tUndefined )
7373 return ok
7474}
@@ -81,7 +81,7 @@ func (value *tNumber) Type() Type {
8181 return value .typ
8282}
8383
84- func (value * tNumber ) Equals (that Value ) bool {
84+ func (value * tNumber ) Equal (that Value ) bool {
8585 typed , ok := that .(* tNumber )
8686 if ! ok {
8787 return false
@@ -136,7 +136,7 @@ func (value *tText) String() string {
136136 return strconv .Quote (value .value )
137137}
138138
139- func (value * tText ) Equals (that Value ) bool {
139+ func (value * tText ) Equal (that Value ) bool {
140140 typed , ok := that .(* tText )
141141 if ! ok {
142142 return false
@@ -152,7 +152,7 @@ func (value *tBool) Type() Type {
152152 return & tBoolType {}
153153}
154154
155- func (value * tBool ) Equals (that Value ) bool {
155+ func (value * tBool ) Equal (that Value ) bool {
156156 typed , ok := that .(* tBool )
157157 if ! ok {
158158 return false
0 commit comments