MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / luaAliasOf

Function luaAliasOf

src/resolution/name-matcher.ts:1600–1603  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

1598 * for an initializer that is not an alias.
1599 */
1600function 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
1605const luaMembers = (chain: string): string[] => chain.split('.').map((s) => s.trim()).filter(Boolean);
1606

Callers 2

luaAliasTargetFunction · 0.85
luaMemberInFunction · 0.85

Calls 1

luaAliasExprFunction · 0.85

Tested by

no test coverage detected