Skip to content
1 min read · 154 words

Interface: EcmaScriptSymbol

Defined in: src/batteries/artifacts/ecmascript/index.ts:52

A top-level declaration (function, class, interface, type alias, enum, or binding).

Remarks

Line numbers are 0-based. startLine is the line containing the declaration keyword or identifier. endLine is the 0-based index of the last line belonging to this declaration (inclusive).

Properties

PropertyTypeDescriptionDefined in
endLinenumber0-based line of the last line of this declaration (inclusive).src/batteries/artifacts/ecmascript/index.ts:62
exportedbooleanWhether this declaration is exported.src/batteries/artifacts/ecmascript/index.ts:58
kindstringDeclaration kind: 'function', 'class', 'interface', 'type', 'enum', or 'const'/'let'/'var'.src/batteries/artifacts/ecmascript/index.ts:54
namestringThe declared name.src/batteries/artifacts/ecmascript/index.ts:56
startLinenumber0-based line of the first line of this declaration.src/batteries/artifacts/ecmascript/index.ts:60