diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-18 13:36:23 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-18 13:36:23 +0800 |
commit | 10680f1a44f92aa0cd32db5e3bb1960bdbb29a25 (patch) | |
tree | bfdd6346b174519e287803d41c9f49f13551b5f3 /server/src/vm/value.lua | |
parent | 04c3ce15f1515b11e43e4630888e323c6372b409 (diff) | |
download | lua-language-server-10680f1a44f92aa0cd32db5e3bb1960bdbb29a25.zip |
值类型参考class
Diffstat (limited to 'server/src/vm/value.lua')
-rw-r--r-- | server/src/vm/value.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua index 3b3a8c01..b3cc5f80 100644 --- a/server/src/vm/value.lua +++ b/server/src/vm/value.lua @@ -77,10 +77,10 @@ end function mt:getType() if self:getEmmy() then - return self:getEmmy():getType() + return self:getEmmy():getType(), 1.0 end if not self._type then - return 'nil' + return 'nil', 0.0 end local mRate = 0.0 local mType @@ -97,7 +97,7 @@ function mt:getType() end end end - return mType or 'any' + return mType or 'any', mRate end function mt:rawSet(index, value, source) |