(has-extended-unicode-escape? scanner)
Returns: boolean
**Returns:** `boolean`
(has-preceding-line-break? scanner)
Returns: boolean
**Returns:** `boolean`
(has-unicode-escape? scanner)
Returns: boolean
**Returns:** `boolean`
(look-ahead scanner callback)
Parameters:
callback
: () => T
Returns: T
**Parameters:** - `callback`: `() => T` **Returns:** `T`
(re-scan-asterisk-equals-token scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-greater-token scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-hash-token scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-invalid-identifier scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-jsx-attribute-value scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-jsx-token scanner)
(re-scan-jsx-token scanner allow-multiline-jsx-text?)
Parameters:
allow-multiline-jsx-text?
: boolean | undefined
Returns: JsxTokenSyntaxKind
**Parameters:** - `allow-multiline-jsx-text?`: `boolean | undefined` **Returns:** `JsxTokenSyntaxKind`
(re-scan-less-than-token scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-question-token scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-slash-token scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-template-head-or-no-substitution-template scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(re-scan-template-token scanner tagged-template?)
Parameters:
tagged-template?
: boolean
Returns: SyntaxKind
**Parameters:** - `tagged-template?`: `boolean` **Returns:** `SyntaxKind`
(reserved-word? scanner)
Returns: boolean
**Returns:** `boolean`
(reset-token-state scanner pos)
Parameters:
pos
: number
Returns: void
**Parameters:** - `pos`: `number` **Returns:** `void`
(scan-js-doc-token scanner)
Returns: JSDocSyntaxKind
**Returns:** `JSDocSyntaxKind`
(scan-jsx-attribute-value scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(scan-jsx-identifier scanner)
Returns: SyntaxKind
**Returns:** `SyntaxKind`
(scan-jsx-token scanner)
Returns: JsxTokenSyntaxKind
**Returns:** `JsxTokenSyntaxKind`
(scan-range scanner start length callback)
Parameters:
start
: number
length
: number
callback
: () => T
Returns: T
**Parameters:** - `start`: `number` - `length`: `number` - `callback`: `() => T` **Returns:** `T`
(set-js-doc-parsing-mode scanner kind)
Parameters:
kind
: JSDocParsingMode
Returns: void
**Parameters:** - `kind`: `JSDocParsingMode` **Returns:** `void`
(set-language-variant scanner variant)
Parameters:
variant
: LanguageVariant
Returns: void
**Parameters:** - `variant`: `LanguageVariant` **Returns:** `void`
(set-on-error scanner)
(set-on-error scanner on-error)
Parameters:
on-error
: ErrorCallback | undefined
Returns: void
**Parameters:** - `on-error`: `ErrorCallback | undefined` **Returns:** `void`
(set-script-kind scanner script-kind)
Parameters:
script-kind
: ScriptKind
Returns: void
**Parameters:** - `script-kind`: `ScriptKind` **Returns:** `void`
(set-script-target scanner script-target)
Parameters:
script-target
: ScriptTarget
Returns: void
**Parameters:** - `script-target`: `ScriptTarget` **Returns:** `void`
(set-text scanner)
(set-text scanner text)
(set-text scanner text start)
(set-text scanner text start length)
Parameters:
text
: string | undefined
start
: number | undefined
length
: number | undefined
Returns: void
**Parameters:** - `text`: `string | undefined` - `start`: `number | undefined` - `length`: `number | undefined` **Returns:** `void`
(set-text-pos scanner text-pos)
Parameters:
text-pos
: number
Returns: void
**Parameters:** - `text-pos`: `number` **Returns:** `void`
(token-full-start scanner)
Returns: number
**Returns:** `number`
(try-scan scanner callback)
Parameters:
callback
: () => T
Returns: T
**Parameters:** - `callback`: `() => T` **Returns:** `T`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close