Expand description
Shared ECMAScript (JavaScript/TypeScript) support functions.
This module contains common logic shared between JavaScript, TypeScript, and TSX. Each language struct delegates to these functions for DRY implementation.
Constants§
- COMPLEXITY_
NODES - CONTROL_
FLOW_ KINDS - IMPORT_
KINDS - JS_
CONTAINER_ KINDS - JS_
FUNCTION_ KINDS - JS_
TYPE_ KINDS - NESTING_
NODES - PUBLIC_
SYMBOL_ KINDS - SCOPE_
CREATING_ KINDS - TS_
CONTAINER_ KINDS - TS_
FUNCTION_ KINDS - TS_
TYPE_ KINDS
Functions§
- build_
signature - Build signature for a JS/TS function, method, or class node.
- extract_
decorators - Extract decorator attributes (
@decorator) preceding a node. - extract_
implements - Extract implements/extends list for a JS/TS class or interface node.
- extract_
imports - Extract imports from an import_statement node.
- extract_
js_ module_ doc - Extract the file-level JSDoc comment from JavaScript/TypeScript source.
- extract_
jsdoc - Extract a JSDoc comment (
/** ... */) preceding a node. - format_
import - Format an import as JavaScript/TypeScript source code.
- get_
visibility - Get visibility for a JS/TS class member.