Several node kinds share function-like features such as a signature, a name, and a body. These nodes should extend FunctionLikeDeclarationBase. Examples:
Several node kinds share function-like features such as a signature, a name, and a body. These nodes should extend FunctionLikeDeclarationBase. Examples: - FunctionDeclaration - MethodDeclaration - AccessorDeclaration
(asterisk-token function-like-declaration-base)
Returns: AsteriskToken | undefined
**Returns:** `AsteriskToken | undefined`
(body function-like-declaration-base)
Returns: Expression | Block | undefined
**Returns:** `Expression | Block | undefined`
(child-at function-like-declaration-base index)
(child-at function-like-declaration-base index source-file)
Parameters:
index
: number
source-file
: SourceFile | undefined
Returns: Node
**Parameters:** - `index`: `number` - `source-file`: `SourceFile | undefined` **Returns:** `Node`
(child-count function-like-declaration-base)
(child-count function-like-declaration-base source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: number
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `number`
(children function-like-declaration-base)
(children function-like-declaration-base source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: Node[]
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node[]`
(end function-like-declaration-base)
Returns: number
**Returns:** `number`
(exclamation-token function-like-declaration-base)
Returns: ExclamationToken | undefined
**Returns:** `ExclamationToken | undefined`
(first-token function-like-declaration-base)
(first-token function-like-declaration-base source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: Node | undefined
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node | undefined`
(flags function-like-declaration-base)
Returns: NodeFlags
**Returns:** `NodeFlags`
(for-each-child function-like-declaration-base cb-node)
(for-each-child function-like-declaration-base cb-node cb-node-array)
Parameters:
cb-node
: (node: Node) => T | undefined
cb-node-array
: ((nodes: NodeArray<Node>) => T | undefined) | undefined
Returns: T | undefined
**Parameters:** - `cb-node`: `(node: Node) => T | undefined` - `cb-node-array`: `((nodes: NodeArray<Node>) => T | undefined) | undefined` **Returns:** `T | undefined`
(full-start function-like-declaration-base)
Returns: number
**Returns:** `number`
(full-text function-like-declaration-base)
(full-text function-like-declaration-base source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: string
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `string`
(full-width function-like-declaration-base)
Returns: number
**Returns:** `number`
(get-end function-like-declaration-base)
Returns: number
**Returns:** `number`
(kind function-like-declaration-base)
Returns: SyntaxKind.MethodSignature | SyntaxKind.MethodDeclaration | SyntaxKind.Constructor | SyntaxKind.GetAccessor | SyntaxKind.SetAccessor | SyntaxKind.CallSignature | SyntaxKind.ConstructSignature | ... 6 more ... | SyntaxKind.JSDocFunctionType
**Returns:** `SyntaxKind.MethodSignature | SyntaxKind.MethodDeclaration | SyntaxKind.Constructor | SyntaxKind.GetAccessor | SyntaxKind.SetAccessor | SyntaxKind.CallSignature | SyntaxKind.ConstructSignature | ... 6 more ... | SyntaxKind.JSDocFunctionType`
(last-token function-like-declaration-base)
(last-token function-like-declaration-base source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: Node | undefined
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node | undefined`
(leading-trivia-width function-like-declaration-base)
(leading-trivia-width function-like-declaration-base source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: number
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `number`
(name function-like-declaration-base)
Returns: PropertyName | undefined
**Returns:** `PropertyName | undefined`
(parameters function-like-declaration-base)
Returns: NodeArray<ParameterDeclaration>
**Returns:** `NodeArray<ParameterDeclaration>`
(parent function-like-declaration-base)
Returns: Node
**Returns:** `Node`
(pos function-like-declaration-base)
Returns: number
**Returns:** `number`
(question-token function-like-declaration-base)
Returns: QuestionToken | undefined
**Returns:** `QuestionToken | undefined`
(source-file function-like-declaration-base)
Returns: SourceFile
**Returns:** `SourceFile`
(start function-like-declaration-base)
(start function-like-declaration-base source-file)
(start function-like-declaration-base source-file include-js-doc-comment?)
Parameters:
source-file
: SourceFile | undefined
include-js-doc-comment?
: boolean | undefined
Returns: number
**Parameters:** - `source-file`: `SourceFile | undefined` - `include-js-doc-comment?`: `boolean | undefined` **Returns:** `number`
(text function-like-declaration-base)
(text function-like-declaration-base source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: string
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `string`
(type function-like-declaration-base)
Returns: TypeNode | undefined
**Returns:** `TypeNode | undefined`
(type-parameters function-like-declaration-base)
Returns: NodeArray<TypeParameterDeclaration> | undefined
**Returns:** `NodeArray<TypeParameterDeclaration> | undefined`
(width function-like-declaration-base)
(width function-like-declaration-base source-file)
Parameters:
source-file
: SourceFileLike | undefined
Returns: number
**Parameters:** - `source-file`: `SourceFileLike | undefined` **Returns:** `number`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close