summaryrefslogtreecommitdiff
path: root/server/src/parser/ast.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-28 20:20:41 +0800
committersumneko <sumneko@hotmail.com>2019-04-28 20:20:41 +0800
commitd1274f277907b4b7e45dd018f5617708ea37636d (patch)
treed2a10cc5f7cc3aca34362f6cf24b67da377b4167 /server/src/parser/ast.lua
parent0bc67627a4409a08e34be0b44cba928cdacf8192 (diff)
downloadlua-language-server-d1274f277907b4b7e45dd018f5617708ea37636d.zip
检查重复field
Diffstat (limited to 'server/src/parser/ast.lua')
-rw-r--r--server/src/parser/ast.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua
index f93870e4..72c441ca 100644
--- a/server/src/parser/ast.lua
+++ b/server/src/parser/ast.lua
@@ -1206,11 +1206,14 @@ local Defs = {
}
end,
EmmyField = function (access, fieldName, ...)
- return {
+ local obj = {
type = 'emmyField',
access, fieldName,
...
}
+ obj.start = obj[2].start
+ obj.finish = obj[3].finish
+ return obj
end,
EmmyGenericBlock = function (genericName, parentName)
return { genericName, parentName }