(child-at token index)
(child-at token index source-file)
Parameters:
index
: number
source-file
: SourceFile | undefined
Returns: Node
**Parameters:** - `index`: `number` - `source-file`: `SourceFile | undefined` **Returns:** `Node`
(child-count token)
(child-count token source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: number
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `number`
(children token)
(children token source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: Node[]
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node[]`
(first-token token)
(first-token token source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: Node | undefined
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node | undefined`
(for-each-child token cb-node)
(for-each-child token 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-text token)
(full-text token source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: string
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `string`
(last-token token)
(last-token token source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: Node | undefined
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `Node | undefined`
(leading-trivia-width token)
(leading-trivia-width token source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: number
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `number`
(start token)
(start token source-file)
(start token 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 token)
(text token source-file)
Parameters:
source-file
: SourceFile | undefined
Returns: string
**Parameters:** - `source-file`: `SourceFile | undefined` **Returns:** `string`
(width token)
(width token 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