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
↓ 3 callers
Method
IsGlobal
IsGlobal 判断是否为全局变量
luahelper-lsp/langserver/check/common/var_info.go:335
↓ 3 callers
Method
IsIgnoreNameVar
IsIgnoreNameVar 判断是否要忽略找不到指定的定义
luahelper-lsp/langserver/check/common/global_conf.go:1152
↓ 3 callers
Function
NewLexer
NewLexer 创建一个词法分析器
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:57
↓ 3 callers
Method
NextIdentifier
NextIdentifier 下一个标识
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:226
↓ 3 callers
Method
PushOneSubDir
PushOneSubDir 新增一个子文件夹
luahelper-lsp/langserver/check/common/dir_manager.go:748
↓ 3 callers
Method
SetFileContent
SetFileContent 设置某一个文件的内容
luahelper-lsp/langserver/lspcommon/file_cache.go:30
↓ 3 callers
Method
SetLuaFileNumber
SetLuaFileNumber 更新工程lua文件的数量
luahelper-lsp/langserver/online_report.go:32
↓ 3 callers
Method
Start
(client: LanguageClient)
luahelper-vscode/src/onlinePeople.ts:11
↓ 3 callers
Method
ToString
ToString 错误信息,转成唯一的字符串
luahelper-lsp/langserver/check/common/lsp_common.go:112
↓ 3 callers
Function
changeErrToDiagnostic
changeErrToDiagnostic 该文件为所有分析文件的诊断管理
luahelper-lsp/langserver/diagnostics_manager.go:204
↓ 3 callers
Function
checkHasChar
判断字符串中,是否有指定的字符
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:670
↓ 3 callers
Method
convertClassInfoToCompleteVecs
oneClassInfo 转换为对应的completeVecs
luahelper-lsp/langserver/check/check_lsp_annotate_complete.go:295
↓ 3 callers
Method
convertClassInfoToHovers
(oneClass *common.OneClassInfo, existMap map[string]string)
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:31
↓ 3 callers
Function
createDecoration
(key: string, config: vscode.DecorationRenderOptions | undefined = undefined)
luahelper-vscode/src/annotator.ts:11
↓ 3 callers
Function
createSysVarInfo
(strName string, noticeInfo *SystemNoticeInfo, moduleInfo *OneModuleInfo)
luahelper-lsp/langserver/check/common/system_tips.go:33
↓ 3 callers
Function
defineVecConvert
defineVecConvert 转换为返回的定义结构
luahelper-lsp/langserver/textdocument_define.go:99
↓ 3 callers
Method
expandNodefineMapComplete
(luaInFile string, strFind string, comParam *CommonFuncParam, completeVar *common.CompleteVarStruct, varInfo
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:567
↓ 3 callers
Method
findMaxSecondProject
返回文件数最多的第二轮工程 如果strFile文件属于多个第二阶段指针,返回第二阶段工程项目最多的文件
luahelper-lsp/langserver/check/check_lsp_define.go:133
↓ 3 callers
Method
findStrFuncRefer
获取调用函数指向的定义, 在局部变量或者全局变量中查找 gFlag 表示是否为_G的全局变量,如果为true表示为_G的,false表示不确定 strProPre 为协议的前缀,例如c2s. s2s
luahelper-lsp/langserver/check/analysis/analysis_search.go:16
↓ 3 callers
Method
findVarDefineWithPre
findVarDefineWithPre 查找定义 并尝试带出其类型 如果preName空,查找varName 如果preName是import值 查找varName 如果preName非import值 根据findSub 查找preName定义或者preName的成员即varName的定义
luahelper-lsp/langserver/check/analysis/analysis_util.go:95
↓ 3 callers
Method
getAliasMultiCandidate
判断是否alias多个候选词 ---@alias exitcode2 '"exit"' | '"signal"'
luahelper-lsp/langserver/check/check_lsp_annotate.go:1837
↓ 3 callers
Method
getAnnotateStrTypeInfo
获取注解字符串对应的信息
luahelper-lsp/langserver/check/check_lsp_annotate.go:1804
↓ 3 callers
Method
getAnnotateTypeStringhelp
(argTypeInfo annotateast.Type, keyName string)
luahelper-lsp/langserver/check/check_util.go:522
↓ 3 callers
Method
getChangeCheckTerm
获取矫正后的checkTerm
luahelper-lsp/langserver/check/analysis/analysis_search.go:939
↓ 3 callers
Method
getDeepVarList
查找变量关联的深层次引用关系,所有引用的变量都跟踪出来
luahelper-lsp/langserver/check/check_lsp_annotate.go:1530
↓ 3 callers
Method
getFuncIndexReturnSymbol
获取一个函数返回的类型 varIndex 表示获取第一个函数返回值
luahelper-lsp/langserver/check/check_lsp_annotate.go:876
↓ 3 callers
Method
getFuncReturnAnnotateTypeList
获取注释是否为函数的返回字段列表 flag 表示是否获取的为一个函数返回 astTypeList 为所有的函数返回字段列表,函数可能有多个返回参数
luahelper-lsp/langserver/check/check_lsp_annotate.go:1028
↓ 3 callers
Method
getInfoFileAnnotateType
查找变量直接关联的类型以及注解带来的注释 strName 为变量的名称 strPreComment 为注解引入的前置说明
luahelper-lsp/langserver/check/check_lsp_annotate.go:1336
↓ 3 callers
Method
getInlineAllFuncAnnotateType
对内的函数的 追踪出所以的函数类型 通过传入的类型,获取所有的ClassInfo 列表,返回的是一个列表, 包括所有的父类型也统一放在列表中 astType 传入的为类型 fileName 为注解的文件名 lastLine 为注解出现的行号
luahelper-lsp/langserver/check/check_lsp_annotate.go:923
↓ 3 callers
Method
getInlineAllNormalFuncType
(astType annotateast.Type, fileName string, lastLine int, repeatTypeList *common.CreateTypeList, strMap map[s
luahelper-lsp/langserver/check/check_lsp_annotate.go:475
↓ 3 callers
Function
getParamVarinfoType
(oneVar *common.VarInfo)
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:619
↓ 3 callers
Method
getSetLuaPath
(strPath: string)
luahelper-vscode/src/common/luaPath.ts:7
↓ 3 callers
Method
getVarCommonFuncParam
客户端请求的信息,转换为通用的CommonFuncParam参数
luahelper-lsp/langserver/check/check_lsp_define.go:281
↓ 3 callers
Method
getVarInfoCompleteExt
getVarInfoCompleteExt 获取变量关联的所有子成员信息,用于代码补全 excludeMap 表示这次因为冒号语法剔除掉的字符串 colonFlag 表示是否获取冒号成员
luahelper-lsp/langserver/check/check_lsp_annotate_complete.go:347
↓ 3 callers
Method
handleProjectEntryFileVec
传入工程入口文件vec,对这些工程入口文件进行分析
luahelper-lsp/langserver/check/check_second_project.go:52
↓ 3 callers
Method
ignoreCircleDefine
判断是否要忽略下列右边的变量没有定义,赋值的问题 1) enable_reload = (enable_reload == nil) and true 2) enable_reload = (enable_reload ~= nil) and true 3) enable_reload = enab
luahelper-lsp/langserver/check/analysis/analysis_search.go:233
↓ 3 callers
Method
insetOneDirCache
insetOneDirCache 插入子文件夹到cache中,如果已经处理过了插入失败
luahelper-lsp/langserver/check/common/dir_manager.go:200
↓ 3 callers
Method
isIgnoreFile
isIgnoreFile 判断lua文件是否为过滤处理的文件
luahelper-lsp/langserver/check/common/global_conf.go:972
↓ 3 callers
Method
isIgnoreFloder
isIgnoreFloder 判断文件夹是否为过滤处理的文件夹
luahelper-lsp/langserver/check/common/global_conf.go:955
↓ 3 callers
Function
isNewLine
(c byte)
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:1016
↓ 3 callers
Method
loadFuncParamAnnType
加载函数的参数与返回值的注解类型
luahelper-lsp/langserver/check/analysis/analysis_util.go:280
↓ 3 callers
Function
needReplaceMapStr
(oldStr string, newType string, newStr string)
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:136
↓ 3 callers
Function
openHtml
(workPath, file)
luahelper-vscode/client/3rd/vscode-lua-doc/extension.js:143
↓ 3 callers
Function
parseDigit
(digit byte, base int)
luahelper-lsp/langserver/check/compiler/parser/parser_number.go:320
↓ 3 callers
Method
parseFuncDefExp
functiondef ::= function funcbody funcbody ::= ‘(’ [parlist] ‘)’ block end
luahelper-lsp/langserver/check/compiler/parser/parse_exp.go:204
↓ 3 callers
Function
parseHexFloat
(0x)ABC.DEFp10
luahelper-lsp/langserver/check/compiler/parser/parser_number.go:252
↓ 3 callers
Method
parsePrefixExp
prefixexp ::= var | functioncall | ‘(’ exp ‘)’ var ::= Name | prefixexp ‘[’ exp ‘]’ | prefixexp ‘.’ Name functioncall ::= prefixexp args | prefixexp
luahelper-lsp/langserver/check/compiler/parser/parse_prefix_exp.go:18
↓ 3 callers
Method
pushFileDiagnostic
pushFileDiagnostic 再次推送某个文件的诊断错误 ignoreSyntax 表示是否忽略语法错误
luahelper-lsp/langserver/diagnostics_manager.go:122
↓ 3 callers
Method
pushFileErrList
pushFileErrList 给指定的文件推送指定的错误列表
luahelper-lsp/langserver/diagnostics_manager.go:14
↓ 3 callers
Function
recurseExpToDefine
(exp ast.Exp, defineVar *common.DefineVarStruct)
luahelper-lsp/langserver/check/check_util.go:750
↓ 3 callers
Function
score
(val int, prevK int /*0 or 1*/)
luahelper-lsp/langserver/check/check_lsp_symbol.go:214
↓ 3 callers
Function
setAheardToken
(l *Lexer)
luahelper-lsp/langserver/check/compiler/lexer/lexer_test.go:18
↓ 3 callers
Method
setBreakPoint
* 通知 Debugger 设置断点 * @param path:文件路径 * @param bks:断点信息 * @param callback:回调信息,用来确认断点 * @param callbackArgs:回调参数
luahelper-vscode/src/debug/luaDebugRuntime.ts:188
↓ 3 callers
Method
setCheckUpdate
(state)
luahelper-vscode/src/debug/updateManager.ts:10
↓ 3 callers
Method
setColorTime
setColorTime 设置获取color着色的时间
luahelper-lsp/langserver/lsp_server.go:142
↓ 3 callers
Method
step
* 通知Debugger单步运行
luahelper-vscode/src/debug/luaDebugRuntime.ts:167
↓ 3 callers
Method
test
(s string)
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:78
↓ 3 callers
Method
writeFileContent
(path: string, content:string)
luahelper-vscode/src/common/tools.ts:52
↓ 2 callers
Method
AddEnumVar
AddEnumVar 添加枚举变量
luahelper-lsp/langserver/check/common/enum_info.go:69
↓ 2 callers
Function
BytesToString
BytesToString 实现 []byte 转换成 string, 不需要额外的内存分配
luahelper-lsp/langserver/strbytesconv/strbytesconv.go:19
↓ 2 callers
Method
CheckEnumExp
CheckEnumVar 检查枚举变量指向的值是否存在
luahelper-lsp/langserver/check/common/enum_info.go:78
↓ 2 callers
Function
CheckExpRefIsSample
判断两个exp是否指向同一个对象
luahelper-lsp/langserver/check/common/var_info.go:573
↓ 2 callers
Method
CheckTableDecl
CheckTableDecl 根据注解判断table成员合法性 在 t={f1=1,f1=2,} 时使用
luahelper-lsp/langserver/check/analysis/analysis_check_table.go:13
↓ 2 callers
Method
ClearCacheFileMap
ClearCacheFileMap 新的扫描和当文件保存的时候,清除掉缓存
luahelper-lsp/langserver/check/common/global_conf.go:1098
↓ 2 callers
Method
CompAnnTypeAndCodeType
比较注解类型和参数/返回值类型
luahelper-lsp/langserver/check/analysis/analysis_util.go:334
↓ 2 callers
Method
CompAnnTypeForAssign
比较注解类型和参数/返回值类型
luahelper-lsp/langserver/check/analysis/analysis_util.go:390
↓ 2 callers
Method
CompleteAnnotateArea
这个文件为因为引入了注解系统,带来的代码补全 CompleteAnnotateArea ---@ 注解的提示后面的域
luahelper-lsp/langserver/check/check_lsp_annotate_complete.go:17
↓ 2 callers
Function
CompleteFilePathToPreStr
CompleteFilePathToPreStr 给定的文件名,截取前面.部分的字符串, 例如 test.lua ,返回test
luahelper-lsp/langserver/check/common/util.go:1415
↓ 2 callers
Method
Done
()
luahelper-lsp/langserver/check/common/dir_manager.go:236
↓ 2 callers
Function
ExpToDefineVarStruct
ExpToDefineVarStruct 转换成VarStruct
luahelper-lsp/langserver/check/check_util.go:785
↓ 2 callers
Method
FindAllColorVar
FindAllColorVar 查找文件中的所有全局变量
luahelper-lsp/langserver/check/check_color_file.go:13
↓ 2 callers
Method
FindAllVar
FindAllVar 找到当前varinfo 下的所有 local function | variable
luahelper-lsp/langserver/check/common/var_info.go:399
↓ 2 callers
Method
FindGMapsScopes
FindGMapsScopes 找到当前全局变量 和 全局协议变量下的所有Scope
luahelper-lsp/langserver/check/results/file_result.go:698
↓ 2 callers
Method
FindMinFunc
FindMinFunc 查找scopeInfo的最近的funcInfo
luahelper-lsp/langserver/check/common/scope_info.go:225
↓ 2 callers
Method
FindMinScope
FindMinScope 通过行与列找到最小单位的ScopInfo line 从1开始 column 从0开始
luahelper-lsp/langserver/check/common/scope_info.go:157
↓ 2 callers
Method
FindOpenFileDefine
FindOpenFileDefine 查找打开一个文件,直接跳转到打开的文件 strFile 为原文件内 strOpenFile 为直接打开某一文件名
luahelper-lsp/langserver/check/check_lsp_define.go:98
↓ 2 callers
Method
Get
Get 返回节点
luahelper-lsp/langserver/check/common/cache_lru.go:72
↓ 2 callers
Method
GetAllFilesMap
GetAllFilesMap 获取所有的文件map
luahelper-lsp/langserver/check/projects/projects.go:26
↓ 2 callers
Method
GetAnnotateFileSymbolStruct
GetAnnotateFileSymbolStruct 获取文件的注解类型信息, 用于显示当前文档的符号
luahelper-lsp/langserver/check/check_lsp_annotate.go:1654
↓ 2 callers
Method
GetClientExtLuaPath
GetClientExtLuaPath get client ext lua path
luahelper-lsp/langserver/check/common/dir_manager.go:73
↓ 2 callers
Method
GetColonFlag
GetColonFlag 获取最后的补全是否为冒号语法:
luahelper-lsp/langserver/check/common/complete_cache.go:166
↓ 2 callers
Method
GetCommentMap
GetCommentMap 获取所有的注释map
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:84
↓ 2 callers
Method
GetCompleteVar
GetCompleteVar 查找scopeInfo范围代码补全,包括父的scopeInfo
luahelper-lsp/langserver/check/common/scope_info.go:189
↓ 2 callers
Function
GetExpName1
(node ast.Exp)
luahelper-lsp/langserver/check/common/util.go:293
↓ 2 callers
Function
GetExpTypeString
GetExpTypeString 获取ext的类型字符串
luahelper-lsp/langserver/check/common/util.go:181
↓ 2 callers
Method
GetFileNameAndLoc
GetFileNameAndLoc 获取出现的lua文件名及其位置新
luahelper-lsp/langserver/check/common/annotate_info.go:269
↓ 2 callers
Method
GetFirstFileStuct
getFirstFileStuct 获取第一阶段文件处理的结果
luahelper-lsp/langserver/check/projects/projects.go:20
↓ 2 callers
Method
GetFuncReturnInfo
获取前面注释行的所有返回值
luahelper-lsp/langserver/check/check_lsp_annotate.go:432
↓ 2 callers
Method
GetHeardTokenStr
GetHeardStr get heard token str
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:364
↓ 2 callers
Method
GetImportReferByCallExp
GetImportReferByCallExp 根据传入的exp,判断是否为导入的函数调用
luahelper-lsp/langserver/check/analysis/analysis_search.go:1286
↓ 2 callers
Method
GetLineFuncInfo
GetLineFuncInfo 获取指定行的函数信息
luahelper-lsp/langserver/check/results/file_result.go:659
↓ 2 callers
Method
GetLuaExeCpathStr
(strPath: string, vSCodeExtensionPath: string)
luahelper-vscode/src/common/luaPath.ts:120
↓ 2 callers
Function
GetLuaFmtPath
(context: vscode.ExtensionContext)
luahelper-vscode/src/luaformat.ts:222
↓ 2 callers
Function
GetLuaTypeString
GetLuaTypeString 获取每个类型的字符串
luahelper-lsp/langserver/check/common/util.go:198
↓ 2 callers
Method
GetMainDirFileList
GetMainDirFileList 根据目录获取所有需要分析的lua文件
luahelper-lsp/langserver/check/common/dir_manager.go:175
↓ 2 callers
Method
GetPathFileList
GetPathFileList 获取指定目录lua文件列表
luahelper-lsp/langserver/check/common/dir_manager.go:190
↓ 2 callers
Function
GetStrComment
GetStrComment 对注释进行一些处理, 提取出注解的特殊的markdown格式
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:515
↓ 2 callers
Method
GetSubDirsFileList
GetSubDirsFileList get sub dir vec file list
luahelper-lsp/langserver/check/common/dir_manager.go:181
↓ 2 callers
Method
HandleAllThirdFile
HandleAllThirdFile 进行第三轮分析,主要分析哪些不在工程目录的文件
luahelper-lsp/langserver/check/check_third_file.go:238
↓ 2 callers
Method
HandleCheck
HandleCheck 进行分析检查
luahelper-lsp/langserver/check/check_all.go:83
← previous
next →
201–300 of 1,325, ranked by callers