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
↓ 6 callers
Method
find_fun_params_text
(&self, fn_name: &str, uri: &Url)
src/indexer/infer/deps.rs:276
↓ 6 callers
Method
find_method_return_type_for_type
( &self, class_name: &str, method_name: &str, )
src/indexer/infer/deps.rs:300
↓ 6 callers
Function
find_named_param_type_in_sig
Find the type string of a named parameter `param_name` inside a comma-separated parameter list text (output of `collect_fun_params_text`). Handles `v
src/indexer/infer/args.rs:255
↓ 6 callers
Function
find_source_files
(root: &Path, matcher: Option<&IgnoreMatcher>)
src/indexer/discover.rs:20
↓ 6 callers
Function
find_this_context_in_lines
Resolve the `this` context at `pos` in `lines`. Returns a [`ThisContext`] that lets callers distinguish between a resolved receiver type, an unresolv
src/indexer/infer/it_this.rs:120
↓ 6 callers
Function
has_keyword_child
(node: Node<'_>, keyword: &str)
src/semantic_tokens/helpers.rs:77
↓ 6 callers
Function
index_root
Run `kmp-lsp index` against `root` and panic on failure.
tests/cli_complete.rs:32
↓ 6 callers
Function
index_sources_jars
Index *-sources.jar files from the Gradle cache by unpacking them in-memory and parsing each `.kt` / `.java` entry with tree-sitter. Results go into
src/indexer/jar.rs:144
↓ 6 callers
Method
infer_type_raw
(&self, var_name: &str)
src/lines_ext.rs:104
↓ 6 callers
Method
initialize
Full initialization handshake: send `initialize`, wait for the response, then send `initialized`. Does not wait for indexing to finish.
tests/lsp_smoke.rs:208
↓ 6 callers
Function
labels
(items: &[Value])
tests/cli_complete.rs:67
↓ 6 callers
Function
library_chunk_path
(dir: &Path, chunk_number: u32)
src/indexer/cache.rs:364
↓ 6 callers
Function
lines
(src: &str)
src/indexer/doc_tests.rs:4
↓ 6 callers
Function
load_sources_jar_cache
Load the global sources-JAR parse cache. Empty map on any error.
src/indexer/sources_jar_cache.rs:125
↓ 6 callers
Function
locs_to_opt_response
(locs: Vec<Location>)
src/features/definition.rs:25
↓ 6 callers
Function
locs_to_response
(locs: Vec<Location>)
src/features/definition.rs:16
↓ 6 callers
Function
make_indexed
(src: &str)
src/backend/rename_tests.rs:12
↓ 6 callers
Function
make_sidecar_symbol
(name: &str, kind: &str, detail: &str, container: &str)
src/indexer/jar_tests.rs:22
↓ 6 callers
Function
mock_jar_entries
Build a `Vec<(Url, String)>` representing sources-JAR entries — used to exercise `index_jar_entries` without filesystem I/O. Tests that need the real
src/indexer/jar_tests.rs:629
↓ 6 callers
Function
nth_fun_param_type_str
Split the flattened parameter list by `,` at depth-0 (respecting `()`, `<>`). Returns the type string of the parameter at position `n` (0-based). Fall
src/indexer/infer/sig.rs:504
↓ 6 callers
Method
parse_imports
(&self)
src/lines_ext.rs:76
↓ 6 callers
Function
parse_include_calls
Parses `include("...", "...")` calls and returns directory paths. Handles both double- and single-quoted project names, and both Kotlin DSL (`include
src/workspace_json.rs:268
↓ 6 callers
Method
rebuild_bare_name_cache
Coordinator: rebuild bare-name cache from current definitions map. Skips if nothing changed since last rebuild (dirty-flag gate).
src/indexer/apply.rs:957
↓ 6 callers
Method
resolve_symbol
( &self, name: &str, qualifier: Option<&str>, from_uri: &Url, )
src/resolver/resolve.rs:1088
↓ 6 callers
Function
resolve_symbol_no_rg
Index-only resolver for use in completion paths. Identical to `resolve_symbol_inner` but omits: - Step 4's `rg_in_package_dir` fallback (inside `reso
src/resolver/resolve.rs:249
↓ 6 callers
Function
runKotlinCli
Run kotlin-cli.py with the given subcommand args. workspace is passed as --workspace.
contrib/copilot-extension/extension.mjs:109
↓ 6 callers
Function
save_cache
Build and write the workspace index cache to disk. Reads filesystem metadata (mtime, size) for each file, so this function performs IO. Library-sour
src/indexer/cache.rs:204
↓ 6 callers
Method
set_state
Transition to `Ready` (or replace the current `Ready`).
src/workspace/phase.rs:97
↓ 6 callers
Function
should_skip_reference
(loc: &Location, content: &str, request: &RgSearchRequest<'_>)
src/rg.rs:686
↓ 6 callers
Function
strip_trailing_call_args
Strip a balanced trailing `(…)` argument list from the end of `s`. `"collection.method(arg1, arg2)"` → `"collection.method"` `"collection.forEach"`
src/indexer/infer/sig.rs:534
↓ 6 callers
Method
submit
Submit a symbol for background enrichment. Returns immediately. Duplicate/recently-failed symbols are silently skipped.
src/indexer/enrich.rs:61
↓ 6 callers
Function
type_args_inner
Extract the content between the outermost `<` and `>` of a generic type.
src/indexer/infer/type_subst.rs:42
↓ 6 callers
Function
type_hint
(position: Position, type_name: &str)
src/inlay_hints.rs:438
↓ 6 callers
Function
walk_hierarchy
Walk the class hierarchy starting from `start_class`, collecting items at each level. `T` is what the visitor produces per symbol. `max_depth` prevent
src/resolver/hierarchy.rs:10
↓ 6 callers
Method
with_class_params
Register `class_name` → type parameter names (e.g. `"Result"` → `["T"]`).
src/indexer/infer/deps.rs:218
↓ 6 callers
Method
with_pattern
(mut self, pattern: impl Into<String>)
src/rg.rs:421
↓ 6 callers
Method
write_raw
Write a raw JSON-RPC message to the server's stdin.
tests/lsp_smoke.rs:114
↓ 6 callers
Function
write_sources_jar
Create a sources JAR on disk in the standard Gradle cache layout `caches/modules-2/files-2.1/group/artifact/version/hash/artifact-version-sources.jar`
src/indexer/jar_tests.rs:518
↓ 5 callers
Function
_loc
(loc: dict)
contrib/kotlin-cli.py:732
↓ 5 callers
Function
append_markdown_section
(markdown: &mut String, section: Option<String>)
src/indexer/doc.rs:248
↓ 5 callers
Method
apply_file_result
Coordinator: apply a single file parse result to the index. Uses pure [`stale_keys_for`] to compute removals and [`file_contributions`] to compute in
src/indexer/apply.rs:499
↓ 5 callers
Method
apply_workspace_result
Coordinator: apply workspace indexing results to the index. Full-replace path: resets all index maps first, then inserts all file contributions. Cach
src/indexer/apply.rs:551
↓ 5 callers
Method
as_indexer
(&self)
src/indexer/resolution.rs:776
↓ 5 callers
Function
assert_labels_contain
(items: &[tower_lsp::lsp_types::CompletionItem], expected: &[&str])
src/resolver/tests.rs:2476
↓ 5 callers
Method
build
Build a cursor context for the given URI + LSP position. Returns `None` only when there is no identifier under the cursor (e.g. cursor is in whitespa
src/backend/cursor.rs:42
↓ 5 callers
Function
build_subst_map
Build substitution map for enclosing class at cursor position.
src/indexer/resolution.rs:249
↓ 5 callers
Method
collect_signature
(&self, start_line: usize)
src/lines_ext.rs:80
↓ 5 callers
Function
collect_tokens
Collect semantic tokens for `doc`, for the given `language`. Returns delta-encoded `SemanticToken` values ready for the LSP response. Filtered to `ran
src/semantic_tokens/mod.rs:175
↓ 5 callers
Function
complete_symbol_with_context
Like `complete_symbol` but with explicit annotation context flag. Called from `indexer::completions` after detecting a `@` trigger.
src/resolver/complete.rs:241
↓ 5 callers
Function
deprecated_at_line
Detect an `@Deprecated` annotation on the declaration at `line_no`. Handles both same-line (`@Deprecated fun foo()`) and the common stacked form wher
src/parser.rs:1778
↓ 5 callers
Function
enclosing_scope
Find the line range of the innermost function/lambda scope enclosing `cursor_line`. Returns `(start_line, end_line)` inclusive, or the whole file if n
src/features/rename.rs:124
↓ 5 callers
Function
entry_for
(fingerprint: &JarFingerprint, files: Vec<SourcesFileEntry>)
src/indexer/sources_jar_cache_tests.rs:21
↓ 5 callers
Method
extract_type_params
(self, bytes: &[u8])
src/indexer/node_ext.rs:468
↓ 5 callers
Method
find_declaration_range
(&self, name: &str)
src/lines_ext.rs:108
↓ 5 callers
Function
find_last_dot_at_depth_zero
Find the position of the last `.` that is at parenthesis/bracket depth 0 (scanning left-to-right so that `fn(Enum.VALUE,` returns None — the dot is at
src/indexer/infer/type_subst.rs:334
↓ 5 callers
Function
find_this_element_type_in_lines
( lines: &[String], pos: CursorPos, idx: &Indexer, uri: &Url, )
src/indexer/infer/it_this.rs:134
↓ 5 callers
Function
first_positional
( positionals: Vec<String>, missing_message: &'static str, )
src/cli/args.rs:375
↓ 5 callers
Method
generation_atomic
Reference to the inner atomic for lifetime-scoped staleness checks (e.g. `ScanSession` which holds `&AtomicU64` across an async boundary).
src/indexer/workspace_root.rs:64
↓ 5 callers
Function
has_deprecated_annotation
Returns true if the node has a `@Deprecated` annotation. Checks the node's own `modifiers` child first, then scans only immediately-preceding annotat
src/semantic_tokens/helpers.rs:146
↓ 5 callers
Function
has_modifier
Check whether a Kotlin node has a modifier keyword (e.g. "suspend", "abstract").
src/semantic_tokens/helpers.rs:93
↓ 5 callers
Function
in_range
(line: u32, range: Range)
src/inlay_hints.rs:468
↓ 5 callers
Method
index_workspace
( self: Arc<Self>, root: &Path, reporter: Arc<R>, )
src/indexer/scan.rs:701
↓ 5 callers
Function
is_stdlib
Returns true for packages whose sources aren't present in a typical project. Kotlin automatically imports `kotlin.*` and `kotlin.collections.*` etc.
src/resolver/resolve.rs:1028
↓ 5 callers
Function
kt_uri
()
src/indexer/live_tree_tests.rs:9
↓ 5 callers
Function
lambda_receiver_type_named_arg_ml
Handles named-arg lambdas spread across multiple lines: opener like ` buildingSavings = ` or ` loan = ` spread across multiple lines (the enclosing
src/indexer/infer/receiver.rs:463
↓ 5 callers
Function
last_fun_param_type_str
Return the type string of the last parameter in `params_text`.
src/indexer/infer/sig.rs:520
↓ 5 callers
Method
live_doc_or_parse
Return the `LiveDoc` for `uri`, parsing on-demand if not already cached. Used by CST-based queries (e.g. `enclosing_class_at`) that are called before
src/indexer/live_tree_impl.rs:39
↓ 5 callers
Function
load_library_chunk
Load one library cache chunk. Returns `None` if the file is missing, corrupt, or has a mismatched CACHE_VERSION.
src/indexer/cache.rs:398
↓ 5 callers
Method
locations_with_content
(&self)
src/rg.rs:506
↓ 5 callers
Function
locs_to_results
(locs: Vec<Location>, name: &str, kind: &str)
src/cli/run.rs:282
↓ 5 callers
Function
make_markdown_hover
(markdown: String)
src/features/hover.rs:206
↓ 5 callers
Function
make_range
(start_line: u32, end_line: u32)
src/indexer/resolution_tests.rs:44
↓ 5 callers
Function
make_sym_col
( name: &str, kind: SymbolKind, line: u32, col_start: u32, col_end: u32, )
src/indexer/resolution_tests.rs:234
↓ 5 callers
Function
make_workspace_json
(dir: &TempDir, json: &str)
src/workspace_json_tests.rs:5
↓ 5 callers
Function
missing_package_diagnostic
Return a `HINT` diagnostic when a Kotlin/Java file is missing a package declaration that can be derived from its path. The range covers the line wher
src/features/code_actions.rs:172
↓ 5 callers
Method
parse_sem
(&self)
src/indexer.rs:459
↓ 5 callers
Method
ready
Return a reference to the inner [`ReadyState`], or `None` if the workspace has not been initialised yet.
src/workspace/phase.rs:78
↓ 5 callers
Method
remove_live_tree
Remove the live parse tree for `uri` (called on `textDocument/didClose`).
src/indexer/live_tree_impl.rs:66
↓ 5 callers
Function
rg_available
()
src/resolver/tests.rs:373
↓ 5 callers
Function
rg_word_in_files
Run `rg --word-regexp NAME` restricted to specific files.
src/rg.rs:1610
↓ 5 callers
Function
run_concurrent
Execute work items concurrently with semaphore throttling. This is a pure async orchestrator - it doesn't know about indexing, just runs async functi
src/task_runner.rs:22
↓ 5 callers
Function
save_sources_jar_cache
Save the cache atomically (write temp → rename), then delete stale `sources-jar-*.bin` files from older versions (each can be hundreds of MB). Streams
src/indexer/sources_jar_cache.rs:151
↓ 5 callers
Function
split_top_level_commas
Split a generic parameter list at top-level commas, respecting nested `<>`.
src/indexer/infer/type_subst.rs:52
↓ 5 callers
Function
stub_data
(root: &str)
src/workspace/phase_tests.rs:7
↓ 5 callers
Function
subst_at
Compute the class-level type-param substitution map at a specific line. This ensures inlay hints use the correct enclosing class context for each hint
src/inlay_hints.rs:454
↓ 5 callers
Function
subst_type
Apply type-param substitution to an inferred type string. Returns the original string unchanged if the map is empty or no match.
src/inlay_hints.rs:460
↓ 5 callers
Function
syntax_diagnostics
(errors: &[SyntaxError])
src/backend/helpers.rs:4
↓ 5 callers
Function
try_load_cache
Load and validate the on-disk cache. Returns `None` if absent / stale / corrupt.
src/indexer/cache.rs:123
↓ 5 callers
Function
ts_byte_col_to_utf16
Count the UTF-16 code units from the start of `row` up to `byte_col`. `starts` must have been produced by `line_starts(bytes)` — it is used to jump d
src/inlay_hints.rs:486
↓ 5 callers
Function
uppercase_dotted_type_prefix
Like `uppercase_ident_prefix` but preserves dot-qualified type names. Use when `raw` is a **type string** (e.g. "Contract.Effect", "ImmutableList<T>")
src/indexer/infer/receiver.rs:290
↓ 5 callers
Function
uri
(p: &str)
src/resolver/infer_tests.rs:72
↓ 5 callers
Function
visibility_at_line
(lines: &[String], line_no: usize)
src/parser.rs:1755
↓ 5 callers
Method
wait_for_indexing
Wait until the server sends a `$/progress` *end* event for the `kmp-lsp/indexing` token, indicating that workspace indexing is done.
tests/lsp_smoke.rs:176
↓ 5 callers
Method
with_callable_info
( mut self, fn_name: &str, type_params: &[&str], extension_receiver_type: &str
src/indexer/infer/deps.rs:257
↓ 5 callers
Function
xdg_cache_base
()
src/indexer/cache.rs:71
↓ 4 callers
Function
_resolve_unique_symbol
Find exactly one workspace symbol matching name (and optional kind). Prints candidates and exits if 0 or >1 match is found.
contrib/kotlin-cli.py:782
↓ 4 callers
Method
apply_source_path_scan
Apply a completed slow-path scan: strip private symbols, apply contributions, rebuild caches, and persist the refreshed library cache.
src/indexer/apply.rs:860
↓ 4 callers
Function
buildTypeParamMap
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:227
↓ 4 callers
Function
build_add_package_action
Build an "Add missing package declaration" code action. Fires when the file has no `package` declaration and the path can be resolved to a valid pack
src/features/code_actions.rs:205
↓ 4 callers
Function
change
(text: &str)
src/workspace/file_change_handler_tests.rs:11
← previous
next →
201–300 of 3,021, ranked by callers