# Sandbox.Script.Analysis

Immutable editor data for one source, input and permission snapshot.

- Kind: class
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`Diagnostics`](/api/Sandbox.Script.Analysis/Diagnostics): Editor diagnostics. An empty list does not guarantee successful execution.
- [`Inputs`](/api/Sandbox.Script.Analysis/Inputs): Host input metadata captured by this snapshot, including inputs not used by the source.
- [`Source`](/api/Sandbox.Script.Analysis/Source): The exact source text to which all ranges refer.
- [`Tokens`](/api/Sandbox.Script.Analysis/Tokens): Lexical ranges for syntax highlighting, excluding whitespace.

## Methods

- [`GetCompletions`](/api/Sandbox.Script.Analysis/GetCompletions): Returns permitted suggestions at a UTF-16 caret offset. Accept a suggestion by replacing ReplacementSpan with its InsertText in this snapshot's source. Queries do not execute host code.
- [`GetSignatureHelp`](/api/Sandbox.Script.Analysis/GetSignatureHelp): Returns parameter help without executing host code. Handles incomplete and nested calls.
- [`GetSymbol`](/api/Sandbox.Script.Analysis/GetSymbol): Returns symbol information at a UTF-16 character offset without allocating.
- [`GetToken`](/api/Sandbox.Script.Analysis/GetToken): Returns the token covering a UTF-16 character offset, or null for whitespace or EOF.
