Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hessesian/kmp-lsp
/ functions
Functions
3,021 in github.com/Hessesian/kmp-lsp
⨍
Functions
3,021
◇
Types & classes
179
↓ 1 callers
Function
save_jar_cache
Save the global JAR symbol cache atomically (write temp → rename).
src/indexer/jar_cache.rs:76
↓ 1 callers
Function
scan_gradle_sources_jars
Scan for sources JARs only.
src/indexer/jar.rs:107
↓ 1 callers
Function
scan_lambda_params_in_lines
( lines: &[String], cursor_line: usize, cursor_col: usize, )
src/indexer/scope.rs:599
↓ 1 callers
Method
scan_line
(&mut self, line: &str)
src/indexer/scope.rs:640
↓ 1 callers
Function
schedule_parse_work
( to_parse: Vec<PathBuf>, session: &ScanSession, )
src/indexer/scan.rs:391
↓ 1 callers
Method
schedule_path
(&self, path: &PathBuf)
src/indexer/scan.rs:177
↓ 1 callers
Function
sdk_dir_from_local_properties
Read `sdk.dir` from `<workspace_root>/local.properties`.
src/workspace_json.rs:350
↓ 1 callers
Function
select_latest
For each (group, artifact), keep only the JAR with the highest version.
contrib/extract-sources.py:91
↓ 1 callers
Function
select_latest
(jars: Vec<PathBuf>)
src/cli/extract_sources.rs:102
↓ 1 callers
Function
send_progress_begin
( reporter: &R, token: &NumberOrString, summary: &ProgressSummary, )
src/indexer/scan.rs:469
↓ 1 callers
Function
send_progress_end
( reporter: &R, token: &NumberOrString, result: &WorkspaceIndexResult, )
src/indexer/scan.rs:570
↓ 1 callers
Function
server_capabilities
()
src/backend/capabilities.rs:5
↓ 1 callers
Method
set_enrichment_handle
Install an enrichment handle (called once during LSP backend init).
src/indexer.rs:654
↓ 1 callers
Method
set_root
(&self, root: PathBuf)
src/workspace/scan_handler.rs:178
↓ 1 callers
Function
settings_subprojects
Extracts subproject directory names from `settings.gradle` / `settings.gradle.kts`. Handles both forms: - `include(":app", ":core")` — Gradle convent
src/workspace_json.rs:252
↓ 1 callers
Function
setup_with_stale_live_tree
Reproduce the Zed race: actor processed FileOpened (live_trees = original content), then did_change updated live_lines to new content, but live_trees
src/features/signature_help_tests.rs:26
↓ 1 callers
Function
should_collect_lambda_param
(name: &str, existing: &[String])
src/indexer/scope.rs:675
↓ 1 callers
Function
should_collect_named_param
(name: &str, named_params: &[(String, String)])
src/features/completion_context.rs:331
↓ 1 callers
Method
should_switch_workspace_root
( &self, opened_file_path: &Path, candidate_workspace_root: &Path, )
src/workspace/document_handler.rs:324
↓ 1 callers
Method
shutdown
(self)
contrib/kotlin-cli.py:199
↓ 1 callers
Method
signature_help_impl
( &self, params: SignatureHelpParams, )
src/backend/handlers.rs:90
↓ 1 callers
Function
skip_annotation_lines
Returns the first line index in `[start, end)` that is NOT a pure annotation (starts with `@` but contains none of `fun`/`class`/`constructor`). Retur
src/indexer/infer/sig.rs:380
↓ 1 callers
Function
skip_balanced
(s: &str, open: char, close: char)
src/parser.rs:1176
↓ 1 callers
Function
smart_find
(indexer: &Arc<Indexer>, name: &str, root: &Path)
src/cli/run.rs:301
↓ 1 callers
Function
smart_refs
(indexer: &Arc<Indexer>, name: &str, root: &Path)
src/cli/run.rs:314
↓ 1 callers
Function
source_origin
( path: &str, workspace_json_paths: &HashSet<String>, extract_sources_path: Option<&str>, )
src/cli/sources.rs:57
↓ 1 callers
Method
source_set_for_uri
(&self, uri: &str)
src/indexer/apply.rs:462
↓ 1 callers
Function
spawn_enrichment_worker
Spawn the background enrichment worker. Returns the handle for hot-path callers. The worker runs until `indexer` is dropped (or the process exits).
src/indexer/enrich.rs:106
↓ 1 callers
Function
spawn_git_head_watcher
Spawns a background task that polls `.git/HEAD` every 2 seconds. When the resolved commit SHA changes (branch switch or new commit), clears the in-mem
src/backend/git_watcher.rs:86
↓ 1 callers
Method
spawn_live_tree_update
(&self, uri: Url, text: String)
src/workspace/file_change_handler.rs:73
↓ 1 callers
Method
spawn_open_document_indexing
(&self, uri: Url, content: String)
src/workspace/document_handler.rs:137
↓ 1 callers
Method
spawn_outside_root_document_indexing
(&self, uri: Url, content: String)
src/workspace/document_handler.rs:266
↓ 1 callers
Function
spawn_progress_reporter
( idx: Arc<Indexer>, reporter: Arc<R>, token: NumberOrString, total: usize, )
src/indexer/scan.rs:415
↓ 1 callers
Function
status_cache_path
()
src/indexer/cache.rs:80
↓ 1 callers
Function
store_in_cache
Persist the latest completion result for subsequent identical requests. Only stores if `epoch` still matches the current `completion_epoch` — guards
src/features/completion.rs:221
↓ 1 callers
Function
strip_library_file_data
Drop fields not needed for library symbols at runtime. `lines` is stripped intentionally: restoring ~25k library files' source text would add ~300 MB
src/indexer/cache.rs:589
↓ 1 callers
Function
strip_library_private_symbols
Strip private symbols from `results` whose URI appears in `library_uris`. Private members of external dependencies are inaccessible from workspace cod
src/indexer/apply.rs:223
↓ 1 callers
Function
strip_nullable
(type_name: &str)
src/features/fill_when.rs:477
↓ 1 callers
Function
strip_trailing_lambda_and_args
Strip trailing lambda `{ ... }` and call args `(...)` from a receiver expression. Handles: `expr(args) { lambda }` → `expr` TODO: split into strip_tr
src/indexer/infer/type_subst.rs:290
↓ 1 callers
Function
strip_unc_prefix
Strip the Windows long-path prefix (`\\?\`) from a `PathBuf` if present. `Path::canonicalize` on Windows returns a path with the `\\?\` verbatim pref
src/path_util.rs:68
↓ 1 callers
Method
submit_enrichment
Submit an unresolved symbol for background rg enrichment. No-op in CLI mode or when the handle isn't set.
src/indexer.rs:662
↓ 1 callers
Function
substitute_generic
( extracted: String, source: GenericParamSource, info: CallableInfo, _call_expr: tree_sitter::
src/indexer/infer/cst_lambda.rs:595
↓ 1 callers
Method
super_from_delegation
(self, bytes: &[u8])
src/indexer/node_ext.rs:517
↓ 1 callers
Function
super_names_at
Collect the parent class names for the class enclosing `row` in `uri`.
src/features/definition.rs:54
↓ 1 callers
Function
super_names_for_class
(file_data: &FileData, class_name: &str)
src/resolver/hierarchy.rs:88
↓ 1 callers
Function
supertype_targets
(idx: &Indexer, class_name: &str, class_uri: &str)
src/resolver/hierarchy.rs:69
↓ 1 callers
Function
swift_def_query
()
src/parser.rs:70
↓ 1 callers
Function
swift_dot_completions
(snippets: bool)
src/stdlib_tail.rs:19
↓ 1 callers
Function
swift_import_path
Extract the import path text from an `import_declaration` node, if present.
src/parser.rs:1709
↓ 1 callers
Function
swift_visibility_at_line
Swift visibility detection. Swift modifiers: `private`, `fileprivate`, `internal`, `public`, `open`. Default is `internal` (unlike Kotlin which defau
src/parser.rs:1844
↓ 1 callers
Method
switch_workspace_root_for_opened_document
( &self, workspace_root: PathBuf, opened_file_path: Option<PathBuf>, )
src/workspace/scan_handler.rs:128
↓ 1 callers
Method
symbol_impl
( &self, params: WorkspaceSymbolParams, )
src/backend/handlers.rs:78
↓ 1 callers
Function
symbol_information
`deprecated` superseded by `tags` in LSP 3.16+
src/features/workspace_symbols.rs:182
↓ 1 callers
Method
symbol_keyword
(&self, kind: SymbolKind)
src/language/java.rs:24
↓ 1 callers
Function
symbols_in_package
Returns the first symbol named `name` found in the exact package `pkg`, or an empty Vec if none is found.
src/resolver/resolve.rs:780
↓ 1 callers
Function
synthesize_data_class_copy
Synthesize the compiler-generated `copy()` function for every `data class`. `copy()` has the same parameter list as the primary constructor, but ever
src/parser.rs:417
↓ 1 callers
Function
synthetic_enum_field
(indexer: &Indexer, class_name: &str, field_name: &str)
src/indexer.rs:426
↓ 1 callers
Function
synthetic_enum_method
(indexer: &Indexer, class_name: &str, method_name: &str)
src/indexer.rs:443
↓ 1 callers
Function
test_url
()
src/indexer/infer/expr_type_tests.rs:8
↓ 1 callers
Function
text_based_call_info
Text-based fallback for when the CST cannot find a `call_expression` (e.g., the closing `)` is absent during live editing). Scans `line_text[..byte_c
src/indexer/infer/cst_cursor.rs:140
↓ 1 callers
Method
toMetadata
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:55
↓ 1 callers
Function
token_rows
Collect and decode semantic tokens for `file`. If `cst_only` is true, the index is not consulted — only the tree-sitter CST classification is used.
src/cli/tokens.rs:38
↓ 1 callers
Function
token_rows_phases
Like `token_rows` but returns one section per phase showing which tokens survive dedup. Helps diagnose missing or incorrectly dropped tokens.
src/cli/tokens.rs:74
↓ 1 callers
Function
try_cache_hit
Pure: check whether `path` matches a library cache entry (mtime + size). Returns the matching entry when the on-disk file is unchanged, `None` otherwi
src/indexer/apply.rs:63
↓ 1 callers
Function
uppercase_ident_prefix
(raw: &str)
src/indexer/infer/receiver.rs:279
↓ 1 callers
Function
uri
(path: &str)
src/indexer/infer/args_tests.rs:248
↓ 1 callers
Function
uri
(path: &str)
src/features/completion_context_tests.rs:58
↓ 1 callers
Method
val_keyword
(self)
src/types.rs:88
↓ 1 callers
Method
visitMethod
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:391
↓ 1 callers
Method
visit_lambda_open
(&mut self, line: &str, byte_index: usize)
src/indexer/scope.rs:650
↓ 1 callers
Method
wait_for_index
Poll workspace/symbol until the index returns at least one result. Returns True when ready, False if timeout expires.
contrib/kotlin-cli.py:183
↓ 1 callers
Function
walk_kotlin_references
( node: Node<'_>, src: &Source<'_>, indexer: &Indexer, out: &mut Vec<RawToken>, )
src/semantic_tokens/resolve.rs:54
↓ 1 callers
Function
walk_to_git_root
Walk up from `file` until a `.git` directory is found, returning that ancestor as the project root. Returns `None` if no `.git` is found.
src/rg.rs:240
↓ 1 callers
Function
walkdir_find
(root: &Path, matcher: Option<&IgnoreMatcher>)
src/indexer/discover.rs:83
↓ 1 callers
Function
when_branch_smart_cast
Check if cursor is inside a `when (var_name)` block and extract the `is Type` from the enclosing branch. Handles nested when: scans backward through
src/resolver/infer_lines.rs:624
↓ 1 callers
Method
with_definition
(mut self, name: &str, location: Location)
src/indexer/workspace_read_tests.rs:17
↓ 1 callers
Function
with_env_var_unset
Run `f` with `var` temporarily unset. Saves the previous value and restores it on exit, even on panic.
src/indexer/test_helpers.rs:31
↓ 1 callers
Method
with_field_decl_line
(mut self, line: u32)
src/rg.rs:618
↓ 1 callers
Method
with_field_owner
(mut self, field_owner: &'a str)
src/rg.rs:613
↓ 1 callers
Method
with_index_candidates
(mut self, candidates: Vec<String>)
src/rg.rs:593
↓ 1 callers
Method
with_index_qualified_candidates
(mut self, candidates: Vec<String>)
src/rg.rs:598
↓ 1 callers
Method
with_owner_class
(mut self, owner_class: &'a str)
src/rg.rs:608
↓ 1 callers
Method
with_patterns
(mut self, patterns: I)
src/rg.rs:426
↓ 1 callers
Function
with_receiver_lambda_type
( trailing_fn: &str, before_brace: &str, deps: &impl InferDeps, uri: &Url, )
src/indexer/infer/receiver.rs:319
↓ 1 callers
Method
with_return
Register `fn_name` → raw return type (with generics), for method-chain tests.
src/indexer/infer/deps.rs:211
↓ 1 callers
Method
word_and_qualifier_at
(&self, uri: &Url, pos: Position)
src/features/traits_impl.rs:69
↓ 1 callers
Method
word_and_range_at
(&self, uri: &Url, pos: Position)
src/features/traits_impl.rs:79
↓ 1 callers
Method
word_at
LSP positions are UTF-16; for ASCII-heavy Kotlin/Java identifiers the character offset is identical to the UTF-16 unit offset.
src/indexer/scope.rs:34
↓ 1 callers
Method
word_at
(&self, uri: &Url, pos: Position)
src/features/traits_impl.rs:73
↓ 1 callers
Method
word_at_utf16_col
(&self, utf16_col: usize)
src/str_ext.rs:76
↓ 1 callers
Function
write_indexing_done_status
( root: &Path, files_parsed: usize, cache_hits: usize, symbols: usize, elapsed: u64, )
src/indexer/scan.rs:454
↓ 1 callers
Function
write_indexing_started_status
(root: &Path, summary: &ProgressSummary)
src/indexer/scan.rs:441
↓ 1 callers
Function
write_library_chunks
Write entries as sequential chunks. Returns `Some(total_bytes)` if all chunks were written successfully. Returns `None` if any chunk failed; the mani
src/indexer/cache.rs:609
↓ 1 callers
Method
write_source_paths
(&self, paths: Vec<String>)
src/workspace/scan_handler.rs:182
↓ 1 callers
Method
write_workspace_source_roots
(&self, root: &std::path::Path)
src/workspace/scan_handler.rs:189
Method
__init__
(self, binary: str, workspace: str, timeout: float)
contrib/kotlin-cli.py:117
Method
_dispatcher
(self)
contrib/kotlin-cli.py:137
Function
_reader_thread
Background thread: parse Content-Length framed messages and enqueue them.
contrib/kotlin-cli.py:86
Function
abstract_class_method_both_abstract
()
src/semantic_tokens_tests.rs:1451
Function
account_var_type_not_inferred_from_wrong_chain_segment
()
src/indexer_tests.rs:2108
← previous
next →
1,301–1,400 of 3,021, ranked by callers