CppCXY / EmmyLuaAnalyzer

a new EmmyLua Language Server
MIT License
39 stars 6 forks source link

代码提示问题 #18

Closed 37wjy closed 1 month ago

37wjy commented 1 month ago

旧版本 使用

---@class AAA
local AAA = Class("AAA")

local a = AAA()

可以将a识别为AAA这个类型, 新版本不行, 而且没发提示__call

37wjy commented 1 month ago

注释有点bug

    ---@type Transform
    self.transform = nil         --- aaa
    ---@type GameObject
    self.gameObject = nil          --- gameObject
    ---@type RectTransform
    self.rectTransform = nil  

这段代码会提示self.gameObject 的类型是RectTransform

    ---@type Transform
    self.transform = nil        
    ---@type GameObject
    self.gameObject = nil          --- gameObject
    ---@type RectTransform
    self.rectTransform = nil  

这个不会

    ---@type Transform
    self.transform = nil      ---aaa

    ---@type GameObject
    self.gameObject = nil          --- gameObject
    ---@type RectTransform
    self.rectTransform = nil     

这个也不会

截屏2024-05-22 18 54 26