MCPcopy Create free account
hub / github.com/Tencent/LuaHelper / ChangeFuncSelfToReferVar

Function ChangeFuncSelfToReferVar

luahelper-lsp/langserver/check/common/util.go:1040–1074  ·  view source on GitHub ↗

ChangeFuncSelfToReferVar 冒号 函数,self语法进行转换 判断是否为这样的在冒号函数内, self.b 这样的 self要进行转换为b,统一起来 a = {} function a:test1() self.b = 3 -- 传入的为self.b end

(fi *FuncInfo, varStruct *DefineVarStruct)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

FindFirstColonFuncMethod · 0.80
FindLocVarMethod · 0.80

Tested by

no test coverage detected