summaryrefslogtreecommitdiff
path: root/script/parser/ast.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/ast.lua')
-rw-r--r--script/parser/ast.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/parser/ast.lua b/script/parser/ast.lua
index 07169a9a..bb42cc0f 100644
--- a/script/parser/ast.lua
+++ b/script/parser/ast.lua
@@ -1016,6 +1016,14 @@ local Defs = {
elseif name.type == 'getmethod' then
name.type = 'setmethod'
name.value = actions
+ elseif name.type == 'getindex' then
+ name.type = 'setfield'
+ name.value = actions
+ PushError {
+ type = 'INDEX_IN_FUNC_NAME',
+ start = name.index.start,
+ finish = name.index.finish,
+ }
end
name.range = actions.finish
name.vstart = functionStart