Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/LuaHelper
/ functions
Functions
1,325 in github.com/Tencent/LuaHelper
⨍
Functions
1,325
◇
Types & classes
551
↓ 6 callers
Method
GetCompletePath
GetCompletePath 传入目录和后面文件名,拼接成完整的路径
luahelper-lsp/langserver/check/common/dir_manager.go:486
↓ 6 callers
Method
GetFileHandleErr
GetFileHandleErr 获取是否有错误
luahelper-lsp/langserver/check/results/file_struct.go:44
↓ 6 callers
Method
GetMainDir
GetMainDir 获取主的目录
luahelper-lsp/langserver/check/common/dir_manager.go:87
↓ 6 callers
Method
GetOneReturnExp
GetOneReturnExp 获取函数返回的第一个Exp
luahelper-lsp/langserver/check/common/func_info.go:160
↓ 6 callers
Method
InsertGlobalGMaps
checkTerm 1 第一阶段进行完毕,第一阶段所有的全局符号表中插入一个新的全局变量信息 checkTerm 2 表示第二阶段工程check中,每解析到一个_G的全局变量,放入到第二阶段全局map中
luahelper-lsp/langserver/check/results/single_project_result.go:40
↓ 6 callers
Method
InsertRelateError
InsertRelateError 插入完整的关联的错误
luahelper-lsp/langserver/check/results/file_result.go:152
↓ 6 callers
Method
InsertSubMember
InsertSubMember 局部里面构建一个成员信息
luahelper-lsp/langserver/check/common/var_info.go:325
↓ 6 callers
Method
collect
collect is a thread-safe method that will record the passed-in symbol in the list of results if its score > 0.
luahelper-lsp/langserver/check/check_lsp_symbol.go:549
↓ 6 callers
Method
enterScope
进入一个scope
luahelper-lsp/langserver/check/analysis/analysis.go:116
↓ 6 callers
Method
getAllNormalAnnotateClass
对外的接口 通过传入的类型,获取所有的ClassInfo 列表,返回的是一个列表, 包括所有的父类型也统一放在列表中 astType 传入的为类型 fileName 为注解的文件名 lastLine 为注解出现的行号
luahelper-lsp/langserver/check/check_lsp_annotate.go:580
↓ 6 callers
Function
getFormatIntStr
(itemStr: string)
luahelper-vscode/src/luaformat.ts:16
↓ 6 callers
Function
isDigit
(c byte)
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:1020
↓ 6 callers
Method
isThirdTerm
判断是否为第三轮,散落的文件分析
luahelper-lsp/langserver/check/analysis/analysis.go:92
↓ 6 callers
Method
pushAllDiagnosticsAgain
pushAllDiagnosticsAgain 再次全量获取诊断信息,增量推送诊断信息给客户端
luahelper-lsp/langserver/diagnostics_manager.go:48
↓ 6 callers
Function
setNowToken
(l *Lexer)
luahelper-lsp/langserver/check/compiler/lexer/lexer_test.go:8
↓ 5 callers
Method
FindASTNode
FindASTNode 给定行与列, 查找AST上的节点 posLine 从0开始 posCh 从0开始
luahelper-lsp/langserver/check/results/file_result.go:427
↓ 5 callers
Method
FindProjectGlobal
查找所有引用的全局变量,在所有的第二阶段工程,和三阶段散落的文件集合中查找
luahelper-lsp/langserver/check/results/reference_result.go:122
↓ 5 callers
Method
GetBestCreateTypeInfo
GetBestCreateTypeInfo 注解文件内根据名称来查找对应的OneClassInfo strName 为对应的字符串名称 lastLine 为变量出现所在的行号
luahelper-lsp/langserver/check/common/annotate_info.go:995
↓ 5 callers
Method
GetDirFileList
GetDirFileList 获取所有的文件列表
luahelper-lsp/langserver/check/common/dir_manager.go:255
↓ 5 callers
Function
GetExpLoc
GetExpLoc 获取table key的位置信息
luahelper-lsp/langserver/check/common/util.go:999
↓ 5 callers
Method
GetFirstReferFileResult
GetFirstReferFileResult 给一个引用关系,找第一阶段引用lua文件
luahelper-lsp/langserver/check/check_util.go:218
↓ 5 callers
Method
GetOneReturnVar
GetOneReturnVar 获取函数的第一个返回值
luahelper-lsp/langserver/check/common/func_info.go:144
↓ 5 callers
Method
HandleFileEventChanges
HandleFileEventChanges 项目工程文件的变化 返回值表示诊断信息是否有变化
luahelper-lsp/langserver/check/check_lsp_filechange.go:12
↓ 5 callers
Method
IsIgnoreErrorFile
IsIgnoreErrorFile 判断文件是否为需要忽略告警的
luahelper-lsp/langserver/check/common/global_conf.go:869
↓ 5 callers
Function
JudgeSimpleStr
JudgeSimpleStr 判断是否为简单的字符串,没有包含 . # ! 字符串
luahelper-lsp/langserver/check/common/util.go:554
↓ 5 callers
Method
expandTableHover
hover 的时候是指向一个table,展开这个table的内容
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:344
↓ 5 callers
Method
genUnifiedPath
(beProcessPath)
luahelper-vscode/src/common/tools.ts:60
↓ 5 callers
Method
getCommFunc
(strFile string, line, ch int)
luahelper-lsp/langserver/check/check_util.go:879
↓ 5 callers
Method
getFileCache
getFileCache 获取文件缓冲map
luahelper-lsp/langserver/lsp_server.go:137
↓ 5 callers
Method
getFuncShowStr
获取函数的完整展示信息 paramTipFlag 表示是否提示函数的参数 colonFlag 如果是冒号语法,有时候需要忽略掉self returnFlag 是否需要获取函数的返回值类型 returnMultiline 多个返回值时,是否需要多行显示
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:672
↓ 5 callers
Method
getSymbolAliasMultiCandidate
(annotateType annotateast.Type, fileName string, line int)
luahelper-lsp/langserver/check/check_lsp_annotate.go:1916
↓ 5 callers
Method
match
(candidate string, candidateLower []byte)
luahelper-lsp/langserver/check/check_lsp_symbol.go:322
↓ 5 callers
Method
parseExpList
explist ::= exp {‘,’ exp}
luahelper-lsp/langserver/check/compiler/parser/parse_exp.go:9
↓ 5 callers
Method
readLaunchjson
(rootFolder)
luahelper-vscode/src/debug/visualSetting.ts:36
↓ 5 callers
Function
sethookstate
根据运行状态修改hook状态
luahelper-vscode/debugger/debugger_lib/libpdebug.cpp:317
↓ 5 callers
Method
start
* 发送初始化请求 * @param callback: 收到请求返回后的回调函数 * @param callbackArgs:回调参数 * @param sendArgs:发给debugger的参数
luahelper-vscode/src/debug/luaDebugRuntime.ts:52
↓ 5 callers
Function
traverseMapInStringOrder
按字母顺序遍历map
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:14
↓ 4 callers
Method
CheckHeardValid
CheckHeardValid 校验头部是否有效,正常头部只能以-@开头
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:68
↓ 4 callers
Method
FindFirstColonFunc
FindFirstColonFunc 向上找到第一个含义冒号语法的函数
luahelper-lsp/langserver/check/common/func_info.go:270
↓ 4 callers
Method
FindGlobalLimitVar
在globalMaps中查找一个新的全局定义信息, 带了限定条件 找到了就返回true,否则返回false gFlag 是否只查找_G的
luahelper-lsp/langserver/check/results/file_result.go:100
↓ 4 callers
Method
FindNotVarInfo
FindNotVarInfo 向上的scope中查找NotVarMap里面的变量,并且返回LocalVarInfo checkFlag 表示是否只找SetFlag为false的
luahelper-lsp/langserver/check/common/scope_info.go:318
↓ 4 callers
Method
FindVarDefine
FindVarDefine 查找变量的定义, 包括变量之前关联的所有变量
luahelper-lsp/langserver/check/check_lsp_define.go:400
↓ 4 callers
Method
GetAllArrayType
GetAllArrayType 获取Type对应的ArrayType 类型 todo 这里后面还需要重新组装
luahelper-lsp/langserver/check/check_lsp_annotate.go:1212
↓ 4 callers
Method
GetAllFileNumber
GetAllFileNumber 获取工程中所有lua文件的数量
luahelper-lsp/langserver/check/check_all.go:181
↓ 4 callers
Method
GetBestFragementInfo
GetBestFragementInfo 根据行号,匹配一个FragementInfo
luahelper-lsp/langserver/check/common/annotate_info.go:980
↓ 4 callers
Method
GetCompleteCache
GetCompleteCache get complete cache
luahelper-lsp/langserver/check/check_all.go:203
↓ 4 callers
Method
GetFileTerm
()
luahelper-lsp/langserver/check/results/file_result.go:80
↓ 4 callers
Method
GetFuncParamInfo
GetFuncParamInfo 获取前面注释行的所有参数返回
luahelper-lsp/langserver/check/check_lsp_annotate.go:415
↓ 4 callers
Method
GetGVarExtendFlag
GetGVarExtendFlag 查询_G.a 这样的全局符号,a是否会扩大到全局符号定义 例如前面定义了a=1, 那么此时_G.a 会指向前面的a=1 获取标记
luahelper-lsp/langserver/check/common/global_conf.go:1174
↓ 4 callers
Method
GetLineComment
GetLineComment 获取某一行的注释 luaFile 表示获取注释的文件 line 获取注释的行
luahelper-lsp/langserver/check/check_util.go:200
↓ 4 callers
Method
GetReferFrameType
如果为自定义的引入其他lua文件的方式,获取真实的引入的子类型
luahelper-lsp/langserver/check/projects/projects.go:17
↓ 4 callers
Method
GetStrProtocol
GetStrProtocol 判断给定的字符串是否有协议组,例如c2s, s2s 传入的字符串可能为 !c2s,首先去掉! 前缀, 如果找到了返回去掉!前缀的字符串
luahelper-lsp/langserver/check/common/global_conf.go:1034
↓ 4 callers
Function
GetTableExpKeyStrVec
GetTableExpKeyStrVec 获取table定义时候,所有的字符串key值
luahelper-lsp/langserver/check/common/util.go:808
↓ 4 callers
Method
InertNewFunc
InertNewFunc 顺序插入一个新的func
luahelper-lsp/langserver/check/results/file_result.go:74
↓ 4 callers
Method
IsContainLoc
IsContainLoc 判断当前 loc是否 包含传入的loc
luahelper-lsp/langserver/check/compiler/lexer/common.go:109
↓ 4 callers
Method
IsExistMember
IsExistMember 判断局部对象是否含有特定的成员
luahelper-lsp/langserver/check/common/var_info.go:315
↓ 4 callers
Method
IsHandleAsLua
IsHandleAsLua 判断给定的文件的完整文件名,判断是否关联成lua文件,是否要进行分析
luahelper-lsp/langserver/check/common/global_conf.go:989
↓ 4 callers
Method
IsInSysNotUseMap
(strName string)
luahelper-lsp/langserver/check/common/global_conf.go:1342
↓ 4 callers
Method
MatchAllDirReferFile
MatchAllDirReferFile 所有目录下匹配路径
luahelper-lsp/langserver/check/common/dir_manager.go:407
↓ 4 callers
Method
NextFieldName
NextFieldName 下一个是标识符或是关键字名称, 可以用好field域的名称
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:231
↓ 4 callers
Method
RemoveCacheContent
RemoveCacheContent 删除cache的结构
luahelper-lsp/langserver/check/check_lsp_filechange.go:199
↓ 4 callers
Method
String
()
luahelper-lsp/langserver/check/compiler/lexer/token.go:140
↓ 4 callers
Method
Wait
()
luahelper-lsp/langserver/check/common/dir_manager.go:248
↓ 4 callers
Method
checkfindGVar
直接查找全局变量,判断是否有定义
luahelper-lsp/langserver/check/analysis/analysis_search.go:476
↓ 4 callers
Method
convertToCompItems
(preStr string)
luahelper-lsp/langserver/textdocument_complete.go:606
↓ 4 callers
Method
copyFileErr
拷贝文件内的所有分析错误 fileStrMap 为文件的唯一的错误信息map
luahelper-lsp/langserver/check/check_util.go:41
↓ 4 callers
Method
dispose
()
luahelper-vscode/src/onlinePeople.ts:30
↓ 4 callers
Method
findGlobalVarDefineInfo
查找全局的变量信息
luahelper-lsp/langserver/check/check_lsp_define.go:14
↓ 4 callers
Method
findStrReferSymbol
查找一个变量的直接引用, 另外一个变量VarInfo
luahelper-lsp/langserver/check/check_find_var_refer.go:154
↓ 4 callers
Method
findStrReferVarInfo
查找一个变量的直接引用, 另外一个变量VarInfo
luahelper-lsp/langserver/check/analysis/analysis_var_refer.go:67
↓ 4 callers
Method
getInLineAllNormalAnnotateClass
对内的接口
luahelper-lsp/langserver/check/check_lsp_annotate.go:604
↓ 4 callers
Method
getPathNameAndExt
(UriOrPath)
luahelper-vscode/src/common/tools.ts:133
↓ 4 callers
Function
isDefaultType
(str string)
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:127
↓ 4 callers
Method
readFileContent
(path: string)
luahelper-vscode/src/common/tools.ts:40
↓ 4 callers
Method
rebuidCreateTypeMap
重新创建所有的createTypeMap 注释类型
luahelper-lsp/langserver/check/check_all.go:141
↓ 4 callers
Method
sendDiagnostics
PushShowMessage 给客户端推送提示消息 func PushShowMessage(ctx context.Context, messageType lsp.MessageType, strContent string) { err := GLspGlobal.GServer.Noti
luahelper-lsp/langserver/push_client_message.go:24
↓ 4 callers
Method
showError
* 显示tip error
luahelper-vscode/src/debug/luaDebugRuntime.ts:230
↓ 4 callers
Function
sync_runstate_toLua
同步运行状态给Lua C->lua
luahelper-vscode/debugger/debugger_lib/libpdebug.cpp:303
↓ 3 callers
Method
Add
()
luahelper-lsp/langserver/check/common/dir_manager.go:232
↓ 3 callers
Method
AddEnumVar
AddEnumVar 添加枚举变量
luahelper-lsp/langserver/check/common/enum_info.go:19
↓ 3 callers
Method
CheckReferFile
查找引用一个文件的结果 allFilesMap 为所有加载文件map
luahelper-lsp/langserver/check/results/file_result.go:225
↓ 3 callers
Function
CreateLspServer
CreateLspServer 创建全局Glsp管理对象
luahelper-lsp/langserver/lsp_server.go:69
↓ 3 callers
Method
FileExistCache
FileExistCache cache中查找文件是否存在,如果cache中存在直接返回,避免同一个文件读取判断是否存在
luahelper-lsp/langserver/check/common/global_conf.go:1103
↓ 3 callers
Method
FindReferences
FindReferences 查找引用 1111
luahelper-lsp/langserver/check/check_lsp_references.go:48
↓ 3 callers
Method
GetAllFileErrorInfo
GetAllFileErrorInfo 获取所有检测的错误返回,按类型来排
luahelper-lsp/langserver/check/check_util.go:67
↓ 3 callers
Method
GetAllTableType
GetAllTableType 获取Type对应的TableType的value类型 todo 这里后面还需要重新组装
luahelper-lsp/langserver/check/check_lsp_annotate.go:1151
↓ 3 callers
Method
GetAnnClassInfo
(className string)
luahelper-lsp/langserver/check/projects/projects.go:61
↓ 3 callers
Method
GetFileContent
GetFileContent 获取文件的内容
luahelper-lsp/langserver/lspcommon/file_cache.go:46
↓ 3 callers
Method
GetFirstReferFileResult
getFirstReferFileResult 给一个引用关系,找第一阶段引用lua文件
luahelper-lsp/langserver/check/projects/projects.go:23
↓ 3 callers
Method
GetFrameReferFiles
GetFrameReferFiles 获取框架中引入的其他文件方式的列表
luahelper-lsp/langserver/check/common/global_conf.go:1252
↓ 3 callers
Method
GetHeardLoc
GetHeardLoc get look aheard Token location
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:390
↓ 3 callers
Method
GetLastOneReturnExp
GetLastReturnExp 获取函数最后一个返回的Exp, require一个文件时候,可能提前返回不合法的
luahelper-lsp/langserver/check/common/func_info.go:165
↓ 3 callers
Method
GetPreTokenLoc
GetPreTokenLoc get before Token location
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:142
↓ 3 callers
Method
GetReferComment
GetReferComment 获取引用信息的字符串,用于代码提示用
luahelper-lsp/langserver/check/common/refer_info.go:97
↓ 3 callers
Method
GetReferFrameType
GetReferFrameType 如果为自定义的引入其他lua文件的方式,获取真实的引入的子类型
luahelper-lsp/langserver/check/check_util.go:616
↓ 3 callers
Method
GetReturnIndexExp
GetReturnIndexExp 获取函数指定位置的返回值 index 默认从1开始,如果为1表示获取第一个返回值
luahelper-lsp/langserver/check/common/func_info.go:189
↓ 3 callers
Method
HandleTermTraverseAST
HandleTermTraverseAST 第三轮、第四轮、第五轮遍历,不会跟进去引用的文件
luahelper-lsp/langserver/check/analysis/analysis.go:303
↓ 3 callers
Method
InsertOneColorElem
InsertOneColorElem 插入一个找到的全局信息
luahelper-lsp/langserver/check/results/color_result.go:25
↓ 3 callers
Method
IntialGlobalVar
IntialGlobalVar 初始化全局配置
luahelper-lsp/langserver/check/common/global_conf.go:350
↓ 3 callers
Method
IsDirExistWorkspace
IsDirExistWorkspace 判断当前文件夹下是否存在于 当前项目中的mainDir 和 subDirs中
luahelper-lsp/langserver/check/common/dir_manager.go:730
← previous
next →
101–200 of 1,325, ranked by callers