Skip to content

require 返回的模块调用函数无法正确识别 #307

Description

@AuTsing

Describe the bug
require 返回的模块调用函数无法正确识别。

To Reproduce

main.lua

 local app = require('lib')

lib.lua

local lib = {}

function lib:fn1()
    return self
end

function lib:fn2()
end

return lib:fn1()

Expected behavior

local app: {
    fn1: function,
    fn2: function,
}

Screenshots
QQ截图20201216234745

Environment (please complete the following information):

  • OS: Windows
  • Client: VSCoce 插件 v1.7.1

Additional context
请问设计就是这样的吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions