* What a Lua alias variable names: a project function (or the module's own * global), null for the standard library or an outside module, `undefined` * for an initializer that is not an alias.
(decl: Node, context: ResolutionContext, depth: number)
| 1598 | * for an initializer that is not an alias. |
| 1599 | */ |
| 1600 | function luaAliasOf(decl: Node, context: ResolutionContext, depth: number): Node | null | undefined { |
| 1601 | const rhs = decl.signature!.replace(/^\s*=\s*/, '').trim(); |
| 1602 | return luaAliasExpr(rhs, { file: decl.filePath, line: decl.startLine, name: decl.name, node: decl }, context, depth); |
| 1603 | } |
| 1604 | |
| 1605 | const luaMembers = (chain: string): string[] => chain.split('.').map((s) => s.trim()).filter(Boolean); |
| 1606 |
no test coverage detected