{"modulePath":"github.com/Rememorio/codog","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package codeintel\n\nPackage codeintel provides local code-intelligence helpers for symbols, diagnostics, notebooks, and language-server queries.\n\n## Functions\n\n```go\nfunc EditNotebookCell(path string, index int, cellType string, source string) error\n```\nEditNotebookCell replaces one notebook cell with source and type.\n\n```go\nfunc InferLanguageID(path string) string\n```\nInferLanguageID returns an LSP language identifier for a file path.\n\n```go\nfunc LSPActionRequiresDocument(action string) (bool, error)\n```\nLSPActionRequiresDocument reports whether an action must open a document.\n\n```go\nfunc ModulePath(workspace string) (string, error)\n```\nModulePath returns the module path from go.mod, or a stable workspace label when the workspace is not a Go module.\n\n```go\nfunc NormalizeLSPAction(action string) (string, error)\n```\nNormalizeLSPAction returns the canonical name for an LSP action alias.\n\n```go\nfunc NormalizeNotebookCellType(cellType string) (string, error)\n```\nNormalizeNotebookCellType returns the canonical notebook cell type.\n\n```go\nfunc NormalizeNotebookEditMode(mode string) (string, error)\n```\nNormalizeNotebookEditMode returns the canonical notebook edit mode.\n\n```go\nfunc ResolveNotebookEditIndex(path string, cellIndex *int, cellID string, mode string) (int, error)\n```\nResolveNotebookEditIndex resolves an index for a notebook edit request.\n\n## Types\n\n```go\ntype CallHierarchyCall struct {\n\tFrom       CallHierarchyItem `json:\"from,omitempty\"`\n\tTo         CallHierarchyItem `json:\"to,omitempty\"`\n\tFromRanges []LSPRange        `json:\"fromRanges\"`\n}\n```\nCallHierarchyCall describes a static relationship between two call hierarchy nodes.\n\n```go\nfunc IncomingCalls(workspace string, symbol string, limit int) ([]CallHierarchyCall, error)\n```\nIncomingCalls returns static callers for a function.\n\n```go\nfunc OutgoingCalls(workspace string, symbol string, limit int) ([]CallHierarchyCall, error)\n```\nOutgoingCalls returns static callees from a function.\n\n```go\ntype CallHierarchyItem struct {\n\tName           string   `json:\"name\"`\n\tKind           string   `json:\"kind\"`\n\tPath           string   `json:\"path\"`\n\tRange          LSPRange `json:\"range\"`\n\tSelectionRange LSPRange `json:\"selectionRange\"`\n}\n```\nCallHierarchyItem describes a static call hierarchy node.\n\n```go\nfunc PrepareCallHierarchy(workspace string, symbol string, relPath string, line int, character int) ([]CallHierarchyItem, error)\n```\nPrepareCallHierarchy returns the static call hierarchy item for a symbol or document position.\n\n```go\ntype CodeLens struct {\n\tPath    string          `json:\"path\"`\n\tRange   LSPRange        `json:\"range\"`\n\tSymbol  string          `json:\"symbol\"`\n\tKind    string          `json:\"kind,omitempty\"`\n\tCommand CodeLensCommand `json:\"command\"`\n\tData    map[string]any  `json:\"data,omitempty\"`\n}\n```\nCodeLens describes a static editor action attached to a declaration.\n\n```go\nfunc CodeLensAtPosition(workspace string, relPath string, line int, character int) (CodeLens, bool, error)\n```\nCodeLensAtPosition resolves a static code lens at a document position.\n\n```go\nfunc CodeLenses(workspace string, relPath string, limit int) ([]CodeLens, error)\n```\nCodeLenses returns static declaration lenses for one source document.\n\n```go\ntype CodeLensCommand struct {\n\tTitle     string `json:\"title\"`\n\tCommand   string `json:\"command\"`\n\tArguments []any  `json:\"arguments,omitempty\"`\n}\n```\nCodeLensCommand describes the command exposed by a code lens.\n\n```go\ntype ColorPresentation struct {\n\tLabel string        `json:\"label\"`\n\tColor DocumentColor `json:\"color\"`\n}\n```\nColorPresentation describes a textual rendering of a document color.\n\n```go\nfunc ColorPresentations(workspace string, relPath string, line int, character int) ([]ColorPresentation, bool, error)\n```\nColorPresentations returns static textual renderings for the color under a document position.\n\n```go\ntype Completion struct {\n\tLabel  string `json:\"label\"`\n\tKind   string `json:\"kind\"`\n\tPath   string `json:\"path,omitempty\"`\n\tLine   int    `json:\"line,omitempty\"`\n\tDetail string `json:\"detail,omitempty\"`\n}\n```\nCompletion describes a static completion candidate.\n\n```go\nfunc Completions(workspace string, prefix string, limit int) ([]Completion, error)\n```\nCompletions returns static Go symbol and keyword completions for a prefix.\n\n```go\ntype Diagnostic struct {\n\tPath    string `json:\"path,omitempty\"`\n\tLine    int    `json:\"line,omitempty\"`\n\tColumn  int    `json:\"column,omitempty\"`\n\tPackage string `json:\"package,omitempty\"`\n\tTest    string `json:\"test,omitempty\"`\n\tAction  string `json:\"action,omitempty\"`\n\tMessage string `json:\"message\"`\n}\n```\nDiagnostic describes a build, test, or parser issue in a source file.\n\n```go\nfunc GoDiagnostics(ctx context.Context, workspace string, patterns []string) ([]Diagnostic, error)\n```\nGoDiagnostics returns diagnostics from \\`go test -json\\` for the workspace.\n\n```go\nfunc ParseGoTestJSON(workspace string, data []byte) ([]Diagnostic, error)\n```\nParseGoTestJSON converts \\`go test -json\\` output into diagnostics.\n\n```go\ntype DocumentColor struct {\n\tPath  string   `json:\"path\"`\n\tText  string   `json:\"text\"`\n\tRange LSPRange `json:\"range\"`\n\tColor LSPColor `json:\"color\"`\n}\n```\nDocumentColor describes one color literal discovered in a source document.\n\n```go\nfunc DocumentColors(workspace string, relPath string, limit int) ([]DocumentColor, error)\n```\nDocumentColors returns static hex color literals discovered in one source document.\n\n```go\ntype DocumentHighlight struct {\n\tPath  string   `json:\"path\"`\n\tRange LSPRange `json:\"range\"`\n\tKind  int      `json:\"kind,omitempty\"`\n\tText  string   `json:\"text,omitempty\"`\n}\n```\nDocumentHighlight describes one static symbol occurrence in a source file.\n\n```go\nfunc DocumentHighlights(workspace string, symbol string, relPath string, limit int) ([]DocumentHighlight, error)\n```\nDocumentHighlights returns static ranges for textual symbol occurrences.\n\n```go\ntype DocumentLink struct {\n\tPath    string   `json:\"path\"`\n\tTarget  string   `json:\"target\"`\n\tRange   LSPRange `json:\"range\"`\n\tTooltip string   `json:\"tooltip,omitempty\"`\n}\n```\nDocumentLink describes a URL range discovered in a source document.\n\n```go\nfunc DocumentLinkAtPosition(workspace string, relPath string, line int, character int) (DocumentLink, bool, error)\n```\nDocumentLinkAtPosition returns the static URL link containing a document position.\n\n```go\nfunc DocumentLinks(workspace string, relPath string, limit int) ([]DocumentLink, error)\n```\nDocumentLinks returns static URL links discovered in one source document.\n\n```go\ntype FixAllResult struct {\n\tKind            string                 `json:\"kind\"`\n\tPath            string                 `json:\"path\"`\n\tChanged         bool                   `json:\"changed\"`\n\tBytes           int                    `json:\"bytes\"`\n\tContent         string                 `json:\"content,omitempty\"`\n\tActions         []string               `json:\"actions\"`\n\tOrganizeImports *OrganizeImportsResult `json:\"organize_imports,omitempty\"`\n}\n```\nFixAllResult reports the preview for static source.fixAll behavior.\n\n```go\nfunc FixAllGoFile(workspace string, requested string, write bool) (FixAllResult, error)\n```\nFixAllGoFile previews or applies static source.fixAll behavior for a Go file.\n\n```go\ntype FoldingRange struct {\n\tPath      string `json:\"path\"`\n\tStartLine int    `json:\"startLine\"`\n\tEndLine   int    `json:\"endLine\"`\n\tKind      string `json:\"kind,omitempty\"`\n}\n```\nFoldingRange describes one static foldable range in a source file.\n\n```go\nfunc FoldingRanges(workspace string, relPath string, limit int) ([]FoldingRange, error)\n```\nFoldingRanges returns static foldable ranges for Go source files.\n\n```go\ntype FormatResult struct {\n\tKind    string `json:\"kind\"`\n\tPath    string `json:\"path\"`\n\tChanged bool   `json:\"changed\"`\n\tBytes   int    `json:\"bytes\"`\n\tContent string `json:\"content,omitempty\"`\n}\n```\nFormatResult reports the result of formatting a source file.\n\n```go\nfunc FormatGoFile(workspace string, requested string, write bool) (FormatResult, error)\n```\nFormatGoFile formats a Go file and optionally writes the formatted content.\n\n```go\ntype Hover struct {\n\tSymbol  string   `json:\"symbol\"`\n\tFound   bool     `json:\"found\"`\n\tKind    string   `json:\"kind,omitempty\"`\n\tPath    string   `json:\"path,omitempty\"`\n\tLine    int      `json:\"line,omitempty\"`\n\tSnippet []string `json:\"snippet,omitempty\"`\n}\n```\nHover contains static hover context for a discovered symbol.\n\n```go\nfunc HoverInfo(workspace string, symbol string, contextLines int) (Hover, error)\n```\nHoverInfo returns static hover context around a symbol definition.\n\n```go\ntype InlayHint struct {\n\tPath         string      `json:\"path\"`\n\tPosition     LSPPosition `json:\"position\"`\n\tLabel        string      `json:\"label\"`\n\tKind         string      `json:\"kind,omitempty\"`\n\tTooltip      string      `json:\"tooltip,omitempty\"`\n\tPaddingRight bool        `json:\"paddingRight,omitempty\"`\n}\n```\nInlayHint describes a static editor hint for a document position.\n\n```go\nfunc InlayHintAtPosition(workspace string, relPath string, line int, character int) (InlayHint, bool, error)\n```\nInlayHintAtPosition resolves a static inlay hint at a document position.\n\n```go\nfunc InlayHints(workspace string, relPath string, limit int) ([]InlayHint, error)\n```\nInlayHints returns static parameter hints for calls to Go functions declared in the workspace.\n\n```go\ntype InlineValue struct {\n\tPath  string   `json:\"path\"`\n\tName  string   `json:\"name\"`\n\tValue string   `json:\"value\"`\n\tText  string   `json:\"text\"`\n\tKind  string   `json:\"kind,omitempty\"`\n\tRange LSPRange `json:\"range\"`\n}\n```\nInlineValue describes a statically known value that can be shown inline in a source document.\n\n```go\nfunc InlineValues(workspace string, relPath string, line int, character int, limit int) ([]InlineValue, error)\n```\nInlineValues returns simple statically known values from one Go source file.\n\n```go\ntype LSPActionInfo struct {\n\tName             string   `json:\"name\"`\n\tMethod           string   `json:\"method,omitempty\"`\n\tAliases          []string `json:\"aliases,omitempty\"`\n\tRequiresDocument bool     `json:\"requires_document\"`\n\tRequiresPosition bool     `json:\"requires_position\"`\n\tDescription      string   `json:\"description,omitempty\"`\n}\n```\nLSPActionInfo describes a supported high-level language-server action.\n\n```go\nfunc SupportedLSPActions() []LSPActionInfo\n```\nSupportedLSPActions returns supported LSP actions and aliases.\n\n```go\ntype LSPCandidate struct {\n\tLanguage    string   `json:\"language\"`\n\tCommand     string   `json:\"command\"`\n\tArgs        []string `json:\"args,omitempty\"`\n\tInstalled   bool     `json:\"installed\"`\n\tPath        string   `json:\"path,omitempty\"`\n\tDescription string   `json:\"description,omitempty\"`\n}\n```\nLSPCandidate describes a language-server command Codog can discover.\n\n```go\nfunc DefaultLSPCandidates() []LSPCandidate\n```\nDefaultLSPCandidates returns common language-server commands and install state.\n\n```go\ntype LSPClientPool struct {\n\t// contains filtered or unexported fields\n}\n```\nLSPClientPool owns initialized language-server sessions for a long-lived Codog runtime. Queries for the same language, command, and workspace reuse one stdio process and are serialized because LSP document versions are session scoped.\n\n```go\nfunc NewLSPClientPool() *LSPClientPool\n```\nNewLSPClientPool constructs an empty language-server session pool.\n\n```go\nfunc (p *LSPClientPool) Close() error\n```\nClose terminates every language-server process owned by the pool.\n\n```go\nfunc (p *LSPClientPool) Invalidate(language string) error\n```\nInvalidate closes and forgets the session for language. The next query will reload its recorded command and initialize a new process.\n\n```go\nfunc (p *LSPClientPool) Query(ctx context.Context, store LSPStore, language string, request LSPQueryRequest) (LSPQueryResult, error)\n```\nQuery executes a request through a persistent session using configuration recorded in store.\n\n```go\ntype LSPCodeDescription struct {\n\tHref string `json:\"href\"`\n}\n```\nLSPCodeDescription links a diagnostic code to external documentation.\n\n```go\ntype LSPColor struct {\n\tRed   float64 `json:\"red\"`\n\tGreen float64 `json:\"green\"`\n\tBlue  float64 `json:\"blue\"`\n\tAlpha float64 `json:\"alpha\"`\n}\n```\nLSPColor is the language-server color representation.\n\n```go\ntype LSPDiagnostic struct {\n\tRange              LSPRange                          `json:\"range\"`\n\tSeverity           int                               `json:\"severity,omitempty\"`\n\tCode               any                               `json:\"code,omitempty\"`\n\tCodeDescription    *LSPCodeDescription               `json:\"codeDescription,omitempty\"`\n\tSource             string                            `json:\"source,omitempty\"`\n\tMessage            string                            `json:\"message\"`\n\tTags               []int                             `json:\"tags,omitempty\"`\n\tRelatedInformation []LSPDiagnosticRelatedInformation `json:\"relatedInformation,omitempty\"`\n\tData               any                               `json:\"data,omitempty\"`\n}\n```\nLSPDiagnostic describes a language-server diagnostic entry.\n\n```go\ntype LSPDiagnosticRelatedInformation struct {\n\tLocation LSPLocation `json:\"location\"`\n\tMessage  string      `json:\"message\"`\n}\n```\nLSPDiagnosticRelatedInformation explains another location related to a diagnostic.\n\n```go\ntype LSPFileEdit struct {\n\tPath        string `json:\"path\"`\n\tAbsPath     string `json:\"-\"`\n\tActionTitle string `json:\"action_title,omitempty\"`\n\tActionKind  string `json:\"action_kind,omitempty\"`\n\tTextEdits   int    `json:\"text_edits\"`\n\tChanged     bool   `json:\"changed\"`\n\tContent     string `json:\"content,omitempty\"`\n}\n```\nLSPFileEdit previews the text edits a language server returned for one file.\n\n```go\ntype LSPLocation struct {\n\tURI   string   `json:\"uri\"`\n\tRange LSPRange `json:\"range\"`\n}\n```\nLSPLocation describes a range within a language-server document URI.\n\n```go\ntype LSPNotification struct {\n\tMethod string `json:\"method\"`\n\tParams any    `json:\"params,omitempty\"`\n}\n```\nLSPNotification records a language-server notification emitted while a query was running.\n\n```go\ntype LSPPosition struct {\n\tLine      int `json:\"line\"`\n\tCharacter int `json:\"character\"`\n}\n```\nLSPPosition is a zero-based language-server document position.\n\n```go\ntype LSPQueryRequest struct {\n\tAction          string `json:\"action\"`\n\tPath            string `json:\"path\"`\n\tQuery           string `json:\"query,omitempty\"`\n\tArguments       []any  `json:\"arguments,omitempty\"`\n\tLine            int    `json:\"line,omitempty\"`\n\tCharacter       int    `json:\"character,omitempty\"`\n\tNewName         string `json:\"new_name,omitempty\"`\n\tCodeActionTitle string `json:\"code_action_title,omitempty\"`\n\tApply           bool   `json:\"apply,omitempty\"`\n}\n```\nLSPQueryRequest describes one language-server query against a document.\n\n```go\ntype LSPQueryResult struct {\n\tKind          string            `json:\"kind\"`\n\tLanguage      string            `json:\"language\"`\n\tAction        string            `json:\"action\"`\n\tMethod        string            `json:\"method\"`\n\tPath          string            `json:\"path\"`\n\tResult        any               `json:\"result,omitempty\"`\n\tNotifications []LSPNotification `json:\"notifications,omitempty\"`\n\tDiagnostics   []LSPDiagnostic   `json:\"diagnostics,omitempty\"`\n\tTextEdits     int               `json:\"text_edits,omitempty\"`\n\tFileEdits     int               `json:\"file_edits,omitempty\"`\n\tEdits         []LSPFileEdit     `json:\"edits,omitempty\"`\n\tChanged       bool              `json:\"changed,omitempty\"`\n\tApplied       bool              `json:\"applied,omitempty\"`\n\tContent       string            `json:\"content,omitempty\"`\n}\n```\nLSPQueryResult is the normalized result of an LSP JSON-RPC request.\n\n```go\ntype LSPRange struct {\n\tStart LSPPosition `json:\"start\"`\n\tEnd   LSPPosition `json:\"end\"`\n}\n```\nLSPRange is a zero-based language-server document range.\n\n```go\ntype LSPServer struct {\n\tLanguage  string    `json:\"language\"`\n\tCommand   string    `json:\"command\"`\n\tTaskID    string    `json:\"task_id\"`\n\tMode      string    `json:\"mode,omitempty\"`\n\tWorkspace string    `json:\"workspace\"`\n\tStartedAt time.Time `json:\"started_at\"`\n}\n```\nLSPServer records a configured language server. New records use lazy mode: Start verifies the protocol handshake, while long-lived Codog runtimes open and reuse the process on the first query.\n\n```go\ntype LSPServerStatus struct {\n\tLSPServer\n\tTask background.Task `json:\"task\"`\n}\n```\nLSPServerStatus combines persisted server metadata with task state.\n\n```go\ntype LSPStore struct {\n\tConfigHome string\n\tWorkspace  string\n}\n```\nLSPStore persists language-server metadata under the Codog config home.\n\n```go\nfunc NewLSPStore(configHome, workspace string) LSPStore\n```\nNewLSPStore returns a store for workspace language-server metadata.\n\n```go\nfunc (s LSPStore) List() ([]LSPServerStatus, error)\n```\nList returns all persisted language-server statuses.\n\n```go\nfunc (s LSPStore) Query(ctx context.Context, language string, request LSPQueryRequest) (LSPQueryResult, error)\n```\nQuery starts a configured stdio LSP command and runs one document query.\n\n```go\nfunc (s LSPStore) Start(language string, commandArgs []string) (LSPServerStatus, error)\n```\nStart verifies and records a language server for lazy session reuse.\n\n```go\nfunc (s LSPStore) Status(language string) (LSPServerStatus, error)\n```\nStatus returns persisted metadata and task state for a language server.\n\n```go\nfunc (s LSPStore) Stop(language string) (LSPServerStatus, error)\n```\nStop removes a language-server registration or stops a legacy background record created by an older Codog release.\n\n```go\ntype LinkedEditingRange struct {\n\tPath        string     `json:\"path\"`\n\tRanges      []LSPRange `json:\"ranges\"`\n\tWordPattern string     `json:\"wordPattern,omitempty\"`\n}\n```\nLinkedEditingRange describes ranges that should be edited together.\n\n```go\nfunc LinkedEditingRanges(workspace string, symbol string, relPath string, limit int) (LinkedEditingRange, error)\n```\nLinkedEditingRanges returns same-document symbol ranges that can be edited together.\n\n```go\ntype MapEntry struct {\n\tPath  string `json:\"path\"`\n\tType  string `json:\"type\"`\n\tDepth int    `json:\"depth\"`\n}\n```\nMapEntry describes one file or directory in a workspace code map.\n\n```go\nfunc CodeMap(workspace string, depthLimit int, limit int) ([]MapEntry, error)\n```\nCodeMap returns a bounded map of files and directories in the workspace.\n\n```go\ntype Moniker struct {\n\tScheme     string `json:\"scheme\"`\n\tIdentifier string `json:\"identifier\"`\n\tKind       string `json:\"kind,omitempty\"`\n\tUnique     string `json:\"unique,omitempty\"`\n}\n```\nMoniker identifies a symbol across files and tools.\n\n```go\nfunc Monikers(workspace string, symbol string) ([]Moniker, error)\n```\nMonikers returns stable static identifiers for a discovered Go symbol.\n\n```go\ntype Notebook struct {\n\tCells []NotebookCell `json:\"cells\"`\n}\n```\nNotebook contains the cells from a Jupyter notebook document.\n\n```go\ntype NotebookCell struct {\n\tCellType string   `json:\"cell_type\"`\n\tSource   []string `json:\"source\"`\n}\n```\nNotebookCell contains the source for one notebook cell.\n\n```go\ntype NotebookEditOptions struct {\n\tIndex    int\n\tCellType string\n\tSource   string\n\tMode     string\n}\n```\nNotebookEditOptions describes a notebook cell edit operation.\n\n```go\ntype NotebookEditResult struct {\n\tKind        string `json:\"kind\"`\n\tPath        string `json:\"path\"`\n\tMode        string `json:\"mode\"`\n\tIndex       int    `json:\"index\"`\n\tCellID      string `json:\"cell_id,omitempty\"`\n\tCellType    string `json:\"cell_type,omitempty\"`\n\tLanguage    string `json:\"language,omitempty\"`\n\tCellCount   int    `json:\"cell_count\"`\n\tSourceLines int    `json:\"source_lines,omitempty\"`\n}\n```\nNotebookEditResult reports the applied notebook cell edit.\n\n```go\nfunc EditNotebook(path string, options NotebookEditOptions) (NotebookEditResult, error)\n```\nEditNotebook applies a replace, insert, or delete operation to a notebook.\n\n```go\ntype NotebookReadCell struct {\n\tIndex          int    `json:\"index\"`\n\tCellID         string `json:\"cell_id,omitempty\"`\n\tCellType       string `json:\"cell_type\"`\n\tSource         string `json:\"source\"`\n\tExecutionCount any    `json:\"execution_count,omitempty\"`\n\tOutputCount    int    `json:\"output_count,omitempty\"`\n\tOutputs        any    `json:\"outputs,omitempty\"`\n}\n```\nNotebookReadCell is a JSON-safe view of one notebook cell.\n\n```go\ntype NotebookReadOptions struct {\n\tCellIndex      *int\n\tLimit          int\n\tIncludeOutputs bool\n}\n```\nNotebookReadOptions controls notebook read filtering and output expansion.\n\n```go\ntype NotebookReadResult struct {\n\tKind      string             `json:\"kind\"`\n\tPath      string             `json:\"path\"`\n\tLanguage  string             `json:\"language,omitempty\"`\n\tCellCount int                `json:\"cell_count\"`\n\tCells     []NotebookReadCell `json:\"cells\"`\n\tTruncated bool               `json:\"truncated\"`\n}\n```\nNotebookReadResult reports notebook metadata and selected cells.\n\n```go\nfunc ReadNotebook(path string, options NotebookReadOptions) (NotebookReadResult, error)\n```\nReadNotebook reads selected cells from a Jupyter notebook file.\n\n```go\ntype OrganizeImportsResult struct {\n\tFormatResult\n\tImportCount                int      `json:\"import_count\"`\n\tRemovedImports             []string `json:\"removed_imports,omitempty\"`\n\tDuplicateImports           []string `json:\"duplicate_imports,omitempty\"`\n\tMissingImportInference     bool     `json:\"missing_import_inference\"`\n\tMissingImportInferenceNote string   `json:\"missing_import_inference_note,omitempty\"`\n}\n```\nOrganizeImportsResult reports the result of static Go import organization.\n\n```go\nfunc OrganizeGoImports(workspace string, requested string, write bool) (OrganizeImportsResult, error)\n```\nOrganizeGoImports removes unused and duplicate Go imports, sorts import declarations, formats the file, and optionally writes the organized content.\n\n```go\ntype Reference struct {\n\tSymbol string `json:\"symbol\"`\n\tPath   string `json:\"path\"`\n\tLine   int    `json:\"line\"`\n\tText   string `json:\"text\"`\n}\n```\nReference describes one textual symbol reference in a Go source file.\n\n```go\nfunc References(workspace string, symbol string, limit int) ([]Reference, error)\n```\nReferences returns textual Go references for a symbol.\n\n```go\ntype RenameFileEdit struct {\n\tPath      string           `json:\"path\"`\n\tTextEdits int              `json:\"textEdits\"`\n\tChanged   bool             `json:\"changed\"`\n\tContent   string           `json:\"content,omitempty\"`\n\tEdits     []RenameTextEdit `json:\"edits,omitempty\"`\n}\n```\nRenameFileEdit previews all rename edits for one file.\n\n```go\ntype RenamePrepareResult struct {\n\tPath        string   `json:\"path,omitempty\"`\n\tSymbol      string   `json:\"symbol,omitempty\"`\n\tFound       bool     `json:\"found\"`\n\tCurrentName string   `json:\"current_name,omitempty\"`\n\tPlaceholder string   `json:\"placeholder,omitempty\"`\n\tRange       LSPRange `json:\"range,omitempty\"`\n}\n```\nRenamePrepareResult describes whether a symbol can be renamed.\n\n```go\nfunc PrepareRenameAtPosition(workspace string, relPath string, line int, character int) (RenamePrepareResult, error)\n```\nPrepareRenameAtPosition returns the rename range for a symbol at a document position.\n\n```go\ntype RenameResult struct {\n\tSymbol    string           `json:\"symbol\"`\n\tNewName   string           `json:\"newName\"`\n\tFound     bool             `json:\"found\"`\n\tTextEdits int              `json:\"textEdits\"`\n\tFileEdits int              `json:\"fileEdits\"`\n\tEdits     []RenameFileEdit `json:\"edits,omitempty\"`\n}\n```\nRenameResult previews a static workspace rename.\n\n```go\nfunc RenameSymbol(workspace string, symbol string, newName string, limit int) (RenameResult, error)\n```\nRenameSymbol returns a static workspace rename preview for a Go identifier.\n\n```go\ntype RenameTextEdit struct {\n\tRange   LSPRange `json:\"range\"`\n\tNewText string   `json:\"newText\"`\n}\n```\nRenameTextEdit describes one static rename text edit.\n\n```go\ntype ResolvedSymbol struct {\n\tSymbol Symbol `json:\"symbol\"`\n\tHover  Hover  `json:\"hover,omitempty\"`\n}\n```\nResolvedSymbol combines a workspace symbol match with hover context.\n\n```go\nfunc ResolveWorkspaceSymbol(workspace string, query string) (ResolvedSymbol, bool, error)\n```\nResolveWorkspaceSymbol returns the best static match for a workspace symbol query and includes nearby source context.\n\n```go\ntype SelectionRange struct {\n\tPath  string   `json:\"path\"`\n\tRange LSPRange `json:\"range\"`\n\tKind  string   `json:\"kind,omitempty\"`\n}\n```\nSelectionRange describes one static AST range containing a document position.\n\n```go\nfunc SelectionRanges(workspace string, relPath string, line int, character int, limit int) ([]SelectionRange, error)\n```\nSelectionRanges returns nested static AST ranges containing a document position.\n\n```go\ntype SemanticToken struct {\n\tPath      string   `json:\"path\"`\n\tRange     LSPRange `json:\"range\"`\n\tText      string   `json:\"text\"`\n\tType      string   `json:\"type\"`\n\tTokenType int      `json:\"tokenType\"`\n}\n```\nSemanticToken describes one decoded semantic token.\n\n```go\ntype SemanticTokens struct {\n\tPath     string          `json:\"path\"`\n\tResultID string          `json:\"resultId,omitempty\"`\n\tLegend   []string        `json:\"legend\"`\n\tData     []int           `json:\"data\"`\n\tTokens   []SemanticToken `json:\"tokens\"`\n}\n```\nSemanticTokens describes static semantic tokens for a document.\n\n```go\nfunc SemanticTokensForDocument(workspace string, relPath string, limit int) (SemanticTokens, error)\n```\nSemanticTokensForDocument returns static semantic tokens for one source document.\n\n```go\nfunc SemanticTokensForLine(workspace string, relPath string, line int, limit int) (SemanticTokens, error)\n```\nSemanticTokensForLine returns static semantic tokens for one document line.\n\n```go\ntype SemanticTokensDelta struct {\n\tPath             string         `json:\"path\"`\n\tPreviousResultID string         `json:\"previousResultId,omitempty\"`\n\tResultID         string         `json:\"resultId\"`\n\tEdits            []any          `json:\"edits\"`\n\tTokens           SemanticTokens `json:\"tokens\"`\n}\n```\nSemanticTokensDelta describes a static semantic tokens delta response.\n\n```go\nfunc SemanticTokensDeltaForDocument(workspace string, relPath string, previousResultID string, limit int) (SemanticTokensDelta, error)\n```\nSemanticTokensDeltaForDocument returns a deterministic static delta response.\n\n```go\ntype Signature struct {\n\tLabel         string              `json:\"label\"`\n\tDocumentation string              `json:\"documentation,omitempty\"`\n\tParameters    []SignatureArgument `json:\"parameters,omitempty\"`\n}\n```\nSignature describes one static function signature.\n\n```go\ntype SignatureArgument struct {\n\tLabel string `json:\"label\"`\n\tName  string `json:\"name,omitempty\"`\n\tType  string `json:\"type,omitempty\"`\n}\n```\nSignatureArgument describes one function parameter.\n\n```go\ntype SignatureHelp struct {\n\tPath            string              `json:\"path\"`\n\tFunction        string              `json:\"function\"`\n\tFound           bool                `json:\"found\"`\n\tSignatures      []Signature         `json:\"signatures,omitempty\"`\n\tActiveSignature int                 `json:\"activeSignature\"`\n\tActiveParameter int                 `json:\"activeParameter\"`\n\tCallRange       LSPRange            `json:\"callRange,omitempty\"`\n\tParameters      []SignatureArgument `json:\"parameters,omitempty\"`\n}\n```\nSignatureHelp describes static function call signature context.\n\n```go\nfunc SignatureHelpAtPosition(workspace string, relPath string, line int, character int) (SignatureHelp, error)\n```\nSignatureHelpAtPosition returns static signature help for the function call containing a document position.\n\n```go\ntype Symbol struct {\n\tName string `json:\"name\"`\n\tKind string `json:\"kind\"`\n\tPath string `json:\"path\"`\n\tLine int    `json:\"line\"`\n}\n```\nSymbol describes a Go declaration discovered in the workspace.\n\n```go\nfunc Definition(workspace string, symbol string) (Symbol, bool, error)\n```\nDefinition returns the first discovered definition for a Go symbol.\n\n```go\nfunc GoSymbols(workspace string) ([]Symbol, error)\n```\nGoSymbols returns function and type declarations found in Go files.\n\n```go\nfunc WorkspaceSymbols(workspace string, query string, limit int) ([]Symbol, error)\n```\nWorkspaceSymbols returns symbols matching a workspace-wide query.\n\n```go\ntype TypeHierarchyItem struct {\n\tName           string   `json:\"name\"`\n\tKind           string   `json:\"kind\"`\n\tPath           string   `json:\"path\"`\n\tRange          LSPRange `json:\"range\"`\n\tSelectionRange LSPRange `json:\"selectionRange\"`\n\tDetail         string   `json:\"detail,omitempty\"`\n}\n```\nTypeHierarchyItem describes a static type hierarchy node.\n\n```go\nfunc PrepareTypeHierarchy(workspace string, symbol string, relPath string, line int, character int) ([]TypeHierarchyItem, error)\n```\nPrepareTypeHierarchy returns the static type hierarchy item for a symbol or document position.\n\n```go\nfunc TypeHierarchySubtypes(workspace string, symbol string, limit int) ([]TypeHierarchyItem, error)\n```\nTypeHierarchySubtypes returns static subtypes for a Go type. Structs that embed the target type and types that satisfy a target interface's method set are reported as children.\n\n```go\nfunc TypeHierarchySupertypes(workspace string, symbol string, limit int) ([]TypeHierarchyItem, error)\n```\nTypeHierarchySupertypes returns static supertypes for a Go type. Struct embedding and embedded interfaces are treated as hierarchy parents.\n\n","path":"github.com/Rememorio/codog/internal/codeintel","name":"codeintel","synopsis":"Package codeintel provides local code-intelligence helpers for symbols, diagnostics, notebooks, and language-server queries.","isRedistributable":true}
