MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / isExportTableDeclaration

Function isExportTableDeclaration

src/lualib-build/util.ts:3–5  ·  view source on GitHub ↗
(node: tstl.Node)

Source from the content-addressed store, hash-verified

1import * as tstl from "..";
2
3export function isExportTableDeclaration(node: tstl.Node): node is tstl.VariableDeclarationStatement & { left: [] } {
4 return tstl.isVariableDeclarationStatement(node) && isExportTable(node.left[0]);
5}
6
7export function isExportTable(node: tstl.Node): node is tstl.Identifier {
8 return tstl.isIdentifier(node) && node.text === "____exports";

Callers 1

lualibFileVisitorMethod · 0.90

Calls 1

isExportTableFunction · 0.85

Tested by

no test coverage detected