(attach-to-project? script-info project)
Parameters:
project
: Project
Returns: boolean
**Parameters:** - `project`: `Project` **Returns:** `boolean`
(attached? script-info project)
Parameters:
project
: Project
Returns: boolean
**Parameters:** - `project`: `Project` **Returns:** `boolean`
(close script-info)
(close script-info file-exists?)
Parameters:
file-exists?
: boolean | undefined
Returns: void
**Parameters:** - `file-exists?`: `boolean | undefined` **Returns:** `void`
(containing-projects script-info)
All projects that include this file
Returns: Project[]
All projects that include this file **Returns:** `Project[]`
(default-project script-info)
Returns: Project
**Returns:** `Project`
(detach-all-projects script-info)
Returns: void
**Returns:** `void`
(detach-from-project script-info project)
Parameters:
project
: Project
Returns: void
**Parameters:** - `project`: `Project` **Returns:** `void`
(edit-content script-info start end new-text)
Parameters:
start
: number
end
: number
new-text
: string
Returns: void
**Parameters:** - `start`: `number` - `end`: `number` - `new-text`: `string` **Returns:** `void`
(ensure-real-path script-info)
Returns: any
**Returns:** `any`
(file-name script-info)
Returns: NormalizedPath
**Returns:** `NormalizedPath`
(format-code-settings script-info)
Returns: FormatCodeSettings | undefined
**Returns:** `FormatCodeSettings | undefined`
(get-preferences script-info)
Returns: UserPreferences | undefined
**Returns:** `UserPreferences | undefined`
(has-mixed-content? script-info)
Returns: boolean
**Returns:** `boolean`
(java-script? script-info)
Returns: boolean
**Returns:** `boolean`
(latest-version script-info)
Returns: string
**Returns:** `string`
(line-offset-to-position script-info line offset)
Parameters:
line
: number
- 1 based indexoffset
: number
- 1 based indexReturns: number
**Parameters:** - `line`: `number` - 1 based index - `offset`: `number` - 1 based index **Returns:** `number`
(line-to-text-span script-info line)
Parameters:
line
: number
- 1 based indexReturns: TextSpan
**Parameters:** - `line`: `number` - 1 based index **Returns:** `TextSpan`
(mark-containing-projects-as-dirty script-info)
Returns: void
**Returns:** `void`
(open script-info)
(open script-info new-text)
Parameters:
new-text
: string | undefined
Returns: void
**Parameters:** - `new-text`: `string | undefined` **Returns:** `void`
(position-to-line-offset script-info position)
Parameters:
position
: number
Returns: Location
**Parameters:** - `position`: `number` **Returns:** `Location`
(register-file-update script-info)
Returns: void
**Returns:** `void`
(reload-from-file? script-info)
(reload-from-file? script-info temp-file-name)
Parameters:
temp-file-name
: NormalizedPath | undefined
Returns: boolean
**Parameters:** - `temp-file-name`: `NormalizedPath | undefined` **Returns:** `boolean`
(save-to script-info file-name)
Parameters:
file-name
: string
Returns: void
**Parameters:** - `file-name`: `string` **Returns:** `void`
(script-kind script-info)
Returns: ScriptKind
**Returns:** `ScriptKind`
(script-open? script-info)
Returns: boolean
**Returns:** `boolean`
(set-options script-info format-settings)
(set-options script-info format-settings preferences)
Parameters:
format-settings
: FormatCodeSettings
preferences
: UserPreferences | undefined
Returns: void
**Parameters:** - `format-settings`: `FormatCodeSettings` - `preferences`: `UserPreferences | undefined` **Returns:** `void`
(snapshot script-info)
Returns: IScriptSnapshot
**Returns:** `IScriptSnapshot`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close