aboutsummaryrefslogtreecommitdiffstats
path: root/prog
diff options
context:
space:
mode:
Diffstat (limited to 'prog')
-rw-r--r--prog/expr.go2
-rw-r--r--prog/prog.go2
-rw-r--r--prog/types.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/prog/expr.go b/prog/expr.go
index 87fb056a9..fbffd3578 100644
--- a/prog/expr.go
+++ b/prog/expr.go
@@ -8,7 +8,7 @@ import (
"fmt"
)
-func (bo *BinaryExpression) Evaluate(finder ArgFinder) (uint64, bool) {
+func (bo BinaryExpression) Evaluate(finder ArgFinder) (uint64, bool) {
left, ok := bo.Left.Evaluate(finder)
if !ok {
return 0, false
diff --git a/prog/prog.go b/prog/prog.go
index c9bd05baa..27b46c541 100644
--- a/prog/prog.go
+++ b/prog/prog.go
@@ -91,7 +91,7 @@ type ArgCommon struct {
dir Dir
}
-func (arg ArgCommon) Type() Type {
+func (arg *ArgCommon) Type() Type {
if arg.ref == 0 {
panic("broken type ref")
}
diff --git a/prog/types.go b/prog/types.go
index 02bbdffdf..3a8d478ce 100644
--- a/prog/types.go
+++ b/prog/types.go
@@ -129,7 +129,7 @@ func (bo BinaryExpression) ForEachValue(cb func(*Value)) {
bo.Right.ForEachValue(cb)
}
-func (bo *BinaryExpression) Clone() Expression {
+func (bo BinaryExpression) Clone() Expression {
return &BinaryExpression{
Operator: bo.Operator,
Left: bo.Left.Clone(),
@@ -144,7 +144,7 @@ type Value struct {
Path []string
}
-func (v Value) GoString() string {
+func (v *Value) GoString() string {
return fmt.Sprintf("&prog.Value{%#v,%#v}", v.Value, v.Path)
}