summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/objects/index_assignable.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/d5/tengo/objects/index_assignable.go')
-rw-r--r--vendor/github.com/d5/tengo/objects/index_assignable.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/objects/index_assignable.go b/vendor/github.com/d5/tengo/objects/index_assignable.go
new file mode 100644
index 00000000..a1c6cbff
--- /dev/null
+++ b/vendor/github.com/d5/tengo/objects/index_assignable.go
@@ -0,0 +1,9 @@
+package objects
+
+// IndexAssignable is an object that can take an index and a value
+// on the left-hand side of the assignment statement.
+type IndexAssignable interface {
+ // IndexSet should take an index Object and a value Object.
+ // If an error is returned, it will be treated as a run-time error.
+ IndexSet(index, value Object) error
+}