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
↓ 2 callers
Method
HandleNotCheckThirdFile
HandleNotCheckThirdFile 处理特殊的第三轮非特殊校验的
luahelper-lsp/langserver/check/check_third_file.go:208
↓ 2 callers
Method
HandleSecondProjectTraverseAST
HandleSecondProjectTraverseAST 第二轮深度遍历AST的处理(带工程的方式)或是第三轮遍历单个文件
luahelper-lsp/langserver/check/analysis/analysis.go:169
↓ 2 callers
Method
HasDeepSubVarInfo
HasDeepSubVarInfo 深入判断子成员是否包含另外一个变量
luahelper-lsp/langserver/check/common/var_info.go:486
↓ 2 callers
Method
Initialize
Initialize lsp初始化函数
luahelper-lsp/langserver/initialize.go:62
↓ 2 callers
Method
InsertCompleteClassField
InsertCompleteClassField 插入注解系统的class field域
luahelper-lsp/langserver/check/common/complete_cache.go:312
↓ 2 callers
Method
InsertCompleteExpand
InsertCompleteNormal 插入普通的
luahelper-lsp/langserver/check/common/complete_cache.go:286
↓ 2 callers
Method
InsertCompleteInnotateType
InsertCompleteInnotateType 插入关键字的代码补全
luahelper-lsp/langserver/check/common/complete_cache.go:300
↓ 2 callers
Method
InsertCompleteSysModuleMem
InsertCompleteSysModuleMem 插入系统模块的成员
luahelper-lsp/langserver/check/common/complete_cache.go:258
↓ 2 callers
Method
InsertExcludeStr
InsertExcludeStr 屏蔽冒号语法的字符串
luahelper-lsp/langserver/check/common/complete_cache.go:171
↓ 2 callers
Method
InsertOneFile
InsertOneFile 缓存中插入一个文件名
luahelper-lsp/langserver/check/common/file_index_info.go:39
↓ 2 callers
Method
InsertRequireInfoGlobalVars
InsertRequireInfoGlobalVars 第二轮,尝试把引入文件的require("two") 或 dofile("two.lua") 需要把他们的符号表引入到_G符号表中
luahelper-lsp/langserver/check/analysis/analysis.go:220
↓ 2 callers
Method
InsertThirdGlobalGMaps
checkTerm 1 第一阶段进行完毕,第一阶段所有的全局符号表中插入一个新的全局变量信息 checkTerm 2 表示第二阶段工程check中,每解析到一个_G的全局变量,放入到第二阶段全局map中
luahelper-lsp/langserver/check/results/third_result.go:51
↓ 2 callers
Function
IsDigit
IsDigit 是否是数字
luahelper-lsp/langserver/stringutil/util.go:9
↓ 2 callers
Method
IsExcludeStr
IsExcludeStr 是否为冒号语法排除的
luahelper-lsp/langserver/check/common/complete_cache.go:182
↓ 2 callers
Method
IsFrameReferOtherFile
IsFrameReferOtherFile 判断传入的函数是否为新增的框架引入其他文件的方式
luahelper-lsp/langserver/check/common/global_conf.go:1189
↓ 2 callers
Method
IsHasEnumType
IsHasEnumType 判断是否含义枚举类型
luahelper-lsp/langserver/check/common/annotate_info.go:1016
↓ 2 callers
Method
IsHasReferTableKey
IsHasReferTableKey 判断这个变量是否指向一个table,且它的key是一个strTableKey;或是是key为nil,value为strTableKey
luahelper-lsp/langserver/check/common/var_info.go:541
↓ 2 callers
Method
IsIgnoreProtocolPreVar
IsIgnoreProtocolPreVar 获取协议前缀变量未找到,是否忽略告警
luahelper-lsp/langserver/check/common/global_conf.go:1300
↓ 2 callers
Function
IsLetter
IsLetter 是否为英文字符
luahelper-lsp/langserver/stringutil/util.go:14
↓ 2 callers
Method
IsMemberOfAnnotateClassByVar
(strMemName string, strVarName string, varInfo *common.VarInfo)
luahelper-lsp/langserver/check/projects/projects.go:37
↓ 2 callers
Method
IsSpecialCheck
IsSpecialCheck 判断是否需要进行特殊的关联检查
luahelper-lsp/langserver/check/common/global_conf.go:1323
↓ 2 callers
Function
IsSubDir
IsSubDir 判断传入的path 是否是另一个文件夹dir 下的子文件夹
luahelper-lsp/langserver/check/common/dir_manager.go:787
↓ 2 callers
Method
Len
Len 注解错误排序相关的获取长度的函数
luahelper-lsp/langserver/check/common/enum_info.go:39
↓ 2 callers
Method
MakeVarMemTable
MakeVarMemTable 当变量为table,构造所有的全局成员变量 定义了全局变量 a 1)例如a = { bc = 1, cd = 2} 2)例如a = a or { bc = 1, cd = 2}
luahelper-lsp/langserver/check/common/var_info.go:352
↓ 2 callers
Function
NewMatcher
NewMatcher returns a new fuzzy matcher for scoring candidates against the provided pattern.
luahelper-lsp/langserver/check/check_lsp_symbol.go:249
↓ 2 callers
Method
NextParamName
NextParamName 下一个是标识符或是关键字名称,可以用于函数的参数名
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:256
↓ 2 callers
Method
NextTokenStruct
NextTokenStruct 获取下一个单词结构
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:120
↓ 2 callers
Method
NextTokenStruct
NextTokenStruct 获取下一个单词结构
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:244
↓ 2 callers
Method
NextTypeIdentifier
NextTypeIdentifier 注解类型的标识符
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:247
↓ 2 callers
Method
RebuildSameFileNameVar
RebuildSameFileNameVar 重构应该忽略的同文件名的变量 allFilesMap为最新的加载的所有文件名,包含了前缀
luahelper-lsp/langserver/check/common/global_conf.go:1131
↓ 2 callers
Method
Remove
Remove 删除节点
luahelper-lsp/langserver/check/common/cache_lru.go:88
↓ 2 callers
Method
RemoveFile
RemoveFile 非工程文件被删除,清除错误
luahelper-lsp/langserver/diagnostics_manager.go:98
↓ 2 callers
Method
RemoveFile
RemoveFile 删除一个文件
luahelper-lsp/langserver/check/check_all.go:186
↓ 2 callers
Function
RuneRoles
RuneRoles detects the roles of each byte rune in an input string and stores it in the output slice. The rune role depends on the input type. Stops whe
luahelper-lsp/langserver/check/check_lsp_symbol.go:91
↓ 2 callers
Method
SaveOneFilePushAgain
SaveOneFilePushAgain 文件保存的操作,重新推送这个文件的错误信息
luahelper-lsp/langserver/diagnostics_manager.go:166
↓ 2 callers
Method
Score
Score returns the score returned by matching the candidate to the pattern. This is not designed for parallel use. Multiple candidates must be scored s
luahelper-lsp/langserver/check/check_lsp_symbol.go:285
↓ 2 callers
Method
Set
Set 插入一个节点
luahelper-lsp/langserver/check/common/cache_lru.go:41
↓ 2 callers
Method
SetAssocialList
SetAssocialList 设置所有后缀文件关联到lua类型, 例如有的.txt后缀文件,会当成lua文件处理
luahelper-lsp/langserver/check/common/global_conf.go:1272
↓ 2 callers
Method
SetFindReferenceInfo
SetFindReferenceInfo 设置需要查找引用的信息
luahelper-lsp/langserver/check/results/reference_result.go:158
↓ 2 callers
Method
SetLastNormalTypeLoc
SetLastNormalTypeLoc 更新最新annotateast.NormalType的位置信息
luahelper-lsp/langserver/check/annotation/annotatelexer/annotate_lexer.go:435
↓ 2 callers
Method
SetMidNotValStruct
SetMidNotValStruct 设置一个midNotVar值
luahelper-lsp/langserver/check/common/scope_info.go:38
↓ 2 callers
Method
SetNotVarMapStruct
SetNotVarMapStruct 设置一个notVar值
luahelper-lsp/langserver/check/common/scope_info.go:47
↓ 2 callers
Method
SetRequirePathSeparator
SetRequirePathSeparator 设置require其他lua文件时候的路径分割符
luahelper-lsp/langserver/check/common/global_conf.go:758
↓ 2 callers
Method
SetVSRootDir
SetVSRootDir set VSCode root dir
luahelper-lsp/langserver/check/common/dir_manager.go:82
↓ 2 callers
Method
SignaturehelpFunc
SignaturehelpFunc 定位到函数的参数位置 查找变量的定义
luahelper-lsp/langserver/check/check_lsp_signaturehelp.go:11
↓ 2 callers
Function
SliceInsert2
SliceInsert2 字符串切片拼接
luahelper-lsp/langserver/check/check_common.go:20
↓ 2 callers
Function
StringToBytes
StringToBytes 实现string 转换成 []byte, 不用额外的内存分配
luahelper-lsp/langserver/strbytesconv/strbytesconv.go:9
↓ 2 callers
Function
ToLower
ToLower transforms the input string to lower case, which is stored in the output byte slice. The lower casing considers only ASCII values - non ASCII
luahelper-lsp/langserver/check/check_lsp_symbol.go:186
↓ 2 callers
Function
TypeConvertStr
TypeConvertStr 根据类型获取代码补全时候的提示字符串
luahelper-lsp/langserver/check/annotation/annotateast/annotate_util.go:25
↓ 2 callers
Method
analysisFirstLuaFile
analysisFirstLuaFile 进行第一段的分析,主要进行词法和语法的分析,然后构造函数和全局变量信息 content 为具体传入的内容, 若为nil表示没有传入内容,需要从文件中读取 saveFlag 为是否cache住文件的内容 realTimeFlag 实时分析标记,当实时敲入代码时
luahelper-lsp/langserver/check/check_first_hanlde.go:34
↓ 2 callers
Method
bestK
(i, j int)
luahelper-lsp/langserver/check/check_lsp_symbol.go:241
↓ 2 callers
Function
calcCreateTypeScore
(createType *CreateTypeInfo, varLine int)
luahelper-lsp/langserver/check/common/annotate_info.go:695
↓ 2 callers
Method
cgFuncCallParamCheck
检查调用函数匹配的参数
luahelper-lsp/langserver/check/analysis/analysis_stat.go:68
↓ 2 callers
Method
cgFuncDefExp
f[a] := function(args) body end
luahelper-lsp/langserver/check/analysis/analysis_exp.go:96
↓ 2 callers
Method
checkAllAnnotate
检查所有的注解类型系统,进行告警 告警主要分为两方面:1)使用的type类型是否有注解定义。2)使用的注解type是否重复
luahelper-lsp/langserver/check/check_lsp_annotate.go:238
↓ 2 callers
Function
checkAndCompile
(workPath, language, version)
luahelper-vscode/client/3rd/vscode-lua-doc/extension.js:119
↓ 2 callers
Method
checkFileEnum
checkFileEnum 检查当前文件的enum枚举段定义是否有重复的值
luahelper-lsp/langserver/check/check_lsp_annotate.go:113
↓ 2 callers
Method
checkIfNotTableAccess
第一轮, if not a then ,这样的赋值语句a.b = 1,检查 binParentExp 为二元表达式,父的BinopExp指针, 例如 a = b and c,当对c变量调用cgExp时候,binParentExp为b and c
luahelper-lsp/langserver/check/analysis/analysis_search.go:709
↓ 2 callers
Method
checkScopeEnumVacList
CheckScopeDuplicateVar 校验文件指定代码块内,是否有指向相同的枚举值
luahelper-lsp/langserver/check/results/file_result.go:795
↓ 2 callers
Method
checkTableAccess
根据注解判断table成员合法性 包括 t.a t可以是符号 或者函数参数 最多只判断三段,如a.b.c.. 当a是import值或者_G时,会判断c是否b的成员,否则只判断b是否a成员
luahelper-lsp/langserver/check/analysis/analysis_check_table.go:123
↓ 2 callers
Method
checkVar
var ::= Name | prefixexp ‘[’ exp ‘]’ | prefixexp ‘.’ Name
luahelper-lsp/langserver/check/compiler/parser/parse_stat.go:510
↓ 2 callers
Method
checkVarAnnotateEnum
(varInfo *common.VarInfo)
luahelper-lsp/langserver/check/results/file_struct.go:86
↓ 2 callers
Function
check_hook_state
luahelper-vscode/debugger/debugger_lib/libpdebug.cpp:667
↓ 2 callers
Function
constructConstCopy
(l *Lexer)
luahelper-lsp/langserver/check/compiler/lexer/lexer_test.go:42
↓ 2 callers
Method
consumeEOL
(i *int)
luahelper-lsp/langserver/check/compiler/lexer/lexer.go:828
↓ 2 callers
Method
doSignatureHelp
doSignatureHelp 该文件为函数输入参数的时候,提示参数补全
luahelper-lsp/langserver/textdocument_signaturehelp.go:72
↓ 2 callers
Method
filterAnnotateTypeByKey
(ClassName string, keyName string)
luahelper-lsp/langserver/check/check_util.go:440
↓ 2 callers
Method
findFuncColon
查找冒号的调用, 判断是否要找的引用其他的 a = {} function a:test() end a:test() -- 冒号调用时候,判断是否要查找
luahelper-lsp/langserver/check/analysis/analysis_search.go:787
↓ 2 callers
Method
findGlobalVar
查找全局变量的定义,判断是否有找到,没有找到输出错误 callGflag 表明调用的是否为_G gFindGlag 表明查找定义是否为_G binParentExp 为二元表达式,父的BinopExp指针, 例如 a = b and c,当对c变量调用cgExp时候,binParentExp为b a
luahelper-lsp/langserver/check/analysis/analysis_search.go:265
↓ 2 callers
Method
findNameStr
查找引用的NameExp 变量是否之前定义过 binParentExp 为二元表达式,父的BinopExp指针, 例如 a = b and c,当对c变量调用cgExp时候,binParentExp为b and c
luahelper-lsp/langserver/check/analysis/analysis_search.go:439
↓ 2 callers
Method
findOldDefineInfo
findOldDefineInfo 查找变量最初的定义地方 findStrName 为查找到的变量的名称
luahelper-lsp/langserver/check/check_lsp_define.go:346
↓ 2 callers
Method
findProtocolDefine
查找所有的协议前缀符号,匹配下
luahelper-lsp/langserver/check/check_lsp_define.go:51
↓ 2 callers
Method
findTableDefine
查找引用的table名是否有定义过
luahelper-lsp/langserver/check/analysis/analysis_search.go:1071
↓ 2 callers
Method
findThreeLevelCall
搜索指定的三层变量调用
luahelper-lsp/langserver/check/analysis/analysis_search.go:488
↓ 2 callers
Method
findVarDefine
(varName string, varLoc lexer.Location)
luahelper-lsp/langserver/check/analysis/analysis_util.go:11
↓ 2 callers
Method
findVarDefineGlobal
从全局查找变量定义
luahelper-lsp/langserver/check/analysis/analysis_util.go:39
↓ 2 callers
Method
findVarDefineInfo
findFile 表示找到的定义在的lua文件 findLoc 为定义的地方
luahelper-lsp/langserver/check/check_lsp_define.go:39
↓ 2 callers
Method
firstCreateAndTraverseAst
firstCreateAndTraverseAst 协程分析所有的文件的一阶段(生成AST以及第一次遍历) saveContentFlag 为是否cache住文件的内容
luahelper-lsp/langserver/check/check_first_hanlde.go:178
↓ 2 callers
Method
funcCallParamTypeCheck
函数调用处的参数类型检查
luahelper-lsp/langserver/check/analysis/analysis_check_func.go:11
↓ 2 callers
Method
gValueComplete
_G所有变量的代码补全 funcFlag 表示是否只获取函数 gFlag 表示是否只获取_G前缀的 ignoreFile 表示忽略指定文件的变量,前面已经加入过了
luahelper-lsp/langserver/check/check_lsp_complete.go:180
↓ 2 callers
Method
generateAllGlobalMaps
客户端的模式,文件没有依赖关系,把所有文件的全局符号,导入进来(包括_G的符号)
luahelper-lsp/langserver/check/check_third_file.go:296
↓ 2 callers
Method
getAllFuncAnnotateType
追踪出所以的函数类型 通过传入的类型,获取所有的ClassInfo 列表,返回的是一个列表, 包括所有的父类型也统一放在列表中 astType 传入的为类型 fileName 为注解的文件名 lastLine 为注解出现的行号
luahelper-lsp/langserver/check/check_lsp_annotate.go:741
↓ 2 callers
Method
getAnnotateFunStrKey
判断函数的一个注解返回值,是否包含子key
luahelper-lsp/langserver/check/check_lsp_annotate.go:1447
↓ 2 callers
Method
getAnnotateFuncParamDocument
获取函数参数的注解信息
luahelper-lsp/langserver/check/check_lsp_signaturehelp.go:164
↓ 2 callers
Method
getAnnotateFuncSignature
获取完全为注解的函数的类型
luahelper-lsp/langserver/check/check_lsp_signaturehelp.go:111
↓ 2 callers
Function
getCalcNum
(data byte)
luahelper-lsp/langserver/codingconv/condingconv_test.go:37
↓ 2 callers
Function
getCheckFlagList
getCheckFlagList 获取check的列表
luahelper-lsp/langserver/initialize.go:288
↓ 2 callers
Method
getClassFieldStr
(classInfo *common.OneClassInfo)
luahelper-lsp/langserver/check/check_lsp_hover_complete_util.go:81
↓ 2 callers
Method
getClassTypeInfoList
通过字符名查找到ClassTypeInfo 列表 strName 为字符串的名称 fileName 为strName所在的lua文件名 lastLine 为strName所在的lua文件行号 repeatTypeList 主要是为了防止重复,记录所有已经查找的
luahelper-lsp/langserver/check/check_lsp_annotate.go:638
↓ 2 callers
Method
getCurrentMS
()
luahelper-vscode/src/common/tools.ts:127
↓ 2 callers
Method
getForCycleAnnotateType
(luaFile string, varInfo *common.VarInfo)
luahelper-lsp/langserver/check/check_lsp_annotate.go:1266
↓ 2 callers
Function
getFormatConfigStrTable
()
luahelper-vscode/src/luaformat.ts:60
↓ 2 callers
Function
getInitAssociationList
初始化时,获取其他后缀关联到的lua 类型 (associalList string[])
luahelper-lsp/langserver/initialize.go:228
↓ 2 callers
Method
getLocVarMapsSymbols
局部变量下满足的符号信息
luahelper-lsp/langserver/check/check_lsp_symbol.go:641
↓ 2 callers
Method
getLocalAttribute
get local var attribute, add by guochuliang 2020-08-20
luahelper-lsp/langserver/check/compiler/parser/parse_stat.go:325
↓ 2 callers
Method
getLuaBinVersion
(strCmd: string)
luahelper-vscode/src/common/luaPath.ts:32
↓ 2 callers
Method
getLuaExePathStr
(vSCodeExtensionPath: string, luaVersionStr: string)
luahelper-vscode/src/common/luaPath.ts:69
↓ 2 callers
Function
getPath
获取路径(带缓存)
luahelper-vscode/debugger/debugger_lib/libpdebug.cpp:350
↓ 2 callers
Function
getPriority
通过tokenKind 获取优先级
luahelper-lsp/langserver/check/compiler/parser/parse_exp.go:47
↓ 2 callers
Method
getSimpleMetatableRight
获取原表右侧的简单元素, 目前支持strKey为__index与__call
luahelper-lsp/langserver/check/check_find_var_refer.go:481
← previous
next →
301–400 of 1,325, ranked by callers