MCPcopy Index your code

hub / github.com/Hessesian/kmp-lsp / functions

Functions3,021 in github.com/Hessesian/kmp-lsp

↓ 432 callersMethodget
Clone the current root path.
src/indexer/workspace_root.rs:45
↓ 417 callersMethodindex_content
(Re-)parse and index a single file's content in-place. Returns `Some(data)` when the file was actually (re-)parsed, or `None` when the content-hash m
src/indexer/apply.rs:1026
↓ 389 callersMethodis_empty
(&self)
src/rg.rs:148
↓ 321 callersMethodas_str
(&self)
src/resolver/complete.rs:186
↓ 158 callersFunctionwrite
(dir: &std::path::Path, name: &str, content: &str)
src/features/references_tests.rs:27
↓ 103 callersFunctionuri
(path: &str)
src/resolver/tests.rs:7
↓ 92 callersFunctionparse_kotlin
(content: &str)
src/parser.rs:144
↓ 90 callersFunctiontype_id
Find token type id by name in the legend.
src/semantic_tokens_tests.rs:20
↓ 69 callersFunctionparse_kotlin
(src: &str)
src/semantic_tokens_tests.rs:11
↓ 63 callersFunctionuri
(path: &str)
src/indexer_tests.rs:5
↓ 59 callersFunctiontype_index
(token_type: &SemanticTokenType)
src/semantic_tokens/mod.rs:61
↓ 58 callersFunctionindexed
(path: &str, src: &str)
src/indexer_tests.rs:9
↓ 57 callersMethodstarts_with_uppercase
(&self)
src/str_ext.rs:34
↓ 51 callersFunctiondecode_all
Decode one SemanticToken from the delta-encoded stream.
src/semantic_tokens_tests.rs:43
↓ 45 callersMethodinfer_lambda_param_type_at
If `name` at `position` is `it` or a named lambda parameter, return the inferred element/receiver type name (e.g. `"Product"`, `"User"`). Used by hov
src/indexer/scope.rs:211
↓ 43 callersFunctionmodifier_bit
(modifier: &SemanticTokenModifier)
src/semantic_tokens/mod.rs:73
↓ 42 callersMethodfirst_child_of_kind
(self, kind: &str)
src/indexer/node_ext.rs:140
↓ 42 callersMethodset
Set `key` to `value`, saving the current value for later restore.
src/indexer/test_helpers.rs:56
↓ 41 callersMethodstore_live_tree
Parse `content` and store the resulting `LiveDoc` for `uri`. If the file extension is unsupported or parsing fails, any previously stored tree for `u
src/indexer/live_tree_impl.rs:12
↓ 40 callersFunctionlambda_receiver_type_from_context
Shared core: given the text BEFORE the `{` that opens a lambda, infer the element type that `it` / the named param will have. Three cases: A) `receiv
src/indexer/infer/receiver.rs:33
↓ 40 callersFunctionresolve_symbol
Resolve `name` as seen from `from_uri`, returning all known definition `Location`s in priority order. Returns an empty vec only when nothing was foun
src/resolver/resolve.rs:74
↓ 37 callersFunctionindexed
(path: &str, src: &str)
src/indexer/scope_tests.rs:16
↓ 36 callersMethodutf8_text_owned
(self, bytes: &[u8])
src/indexer/node_ext.rs:136
↓ 35 callersFunctionfirst_child_of_kind
(node: Node<'a>, kind: &str)
src/semantic_tokens/helpers.rs:61
↓ 35 callersFunctionwrite_fixture
(dir: &Path, rel_path: &str, content: &str)
tests/cli_diagnose.rs:14
↓ 33 callersFunctionidx
()
src/indexer/jar_tests.rs:50
↓ 33 callersFunctionpush_token
( node: Node<'_>, token_type: u32, token_modifiers_bitset: u32, src: &Source<'_>, out: &mu
src/semantic_tokens/helpers.rs:214
↓ 32 callersFunctionparse_live
Parse `content` with `lang` and return a `LiveDoc`, or `None` if the parser fails (malformed grammar state — extremely rare).
src/indexer/live_tree.rs:42
↓ 32 callersFunctionrun_diagnostics
Run diagnostics using a locally-parsed tree (mirrors production flow).
src/features/call_arg_diagnostics_tests.rs:27
↓ 31 callersFunctionuri
(path: &str)
src/features/fill_when_tests.rs:6
↓ 30 callersFunctionsetup
(files: &[(&str, &str)])
src/features/fill_when_tests.rs:10
↓ 30 callersFunctionsym
(data: &'a FileData, name: &str)
src/parser_tests.rs:9
↓ 28 callersFunctionsetup
(sources: &[(&str, &str)])
src/features/call_arg_diagnostics_tests.rs:12
↓ 27 callersFunctionassert_token_at
( tokens: &[(u32, u32, u32, u32, u32)], line: u32, col: u32, token_type: u32, label: &str,
src/semantic_tokens_tests.rs:56
↓ 26 callersFunctionfind_references_with_qualifier
Finds all references to `name`, optionally scoped by `qualifier`. When `qualifier` is `Some("ReducerA")` (cursor was on `ReducerA.Factory`), the qual
src/features/references.rs:30
↓ 26 callersFunctionpopulate_from_symbols
Insert symbols for one JAR into the indexer. Returns the symbol count.
src/indexer/jar.rs:592
↓ 26 callersFunctionuri
(path: &str)
src/indexer/infer/it_this_tests.rs:13
↓ 25 callersMethodset_live_lines
Update the live-lines cache for `uri` without any debounce. Called from `did_change` before the debounced re-index so that `completions()` always sees
src/indexer.rs:672
↓ 25 callersFunctiontest_uri
()
src/indexer/infer/it_this_tests.rs:673
↓ 24 callersFunctiondecode_all_indexed
( indexer: &Indexer, uri: &Url, doc: &crate::indexer::LiveDoc, language: Language, )
src/semantic_tokens_tests.rs:47
↓ 24 callersFunctionlang_for_path
Return the tree-sitter `Language` for the given file path, or `None` for unsupported extensions. This is the extension→language map used for live-tre
src/indexer/live_tree.rs:14
↓ 24 callersFunctionuri
Build a `file://` URL rooted under the system temp directory.
src/indexer/apply_tests.rs:19
↓ 24 callersFunctionwrite_temp
Write `content` to `dir/rel_path` and return the absolute path as String.
src/rg_tests.rs:53
↓ 23 callersFunctionindexed_with_live
Index `sig_src` for signature lookup, plus store a live tree for `code_src` at the same URI (for CST fast-path tests).
src/indexer/infer/it_this_tests.rs:26
↓ 23 callersMethodlive_doc
Return the `LiveDoc` for `uri`, or `None` if the file is not open.
src/indexer/live_tree_impl.rs:25
↓ 23 callersFunctionwrite
(dir: &Path, rel: &str, content: &str)
tests/lsp_smoke.rs:283
↓ 22 callersMethodident_prefix
(&self)
src/str_ext.rs:50
↓ 21 callersFunctionmake_url
(path: &str)
src/indexer/infer/sig_tests.rs:616
↓ 21 callersFunctionpanic_safe
Wraps an async handler in `catch_unwind` so a panic in one request doesn't kill the server process. Returns an internal error to the client on panic.
src/backend/panic_guard.rs:6
↓ 20 callersFunctionbuild_fill_when_action
Try to build a "fill missing when branches" code action for the cursor position. Returns `None` if the cursor is not inside a `when` expression, the
src/features/fill_when.rs:91
↓ 20 callersFunctioncall_arg_diagnostics
Scan a file for call-argument count mismatches and return diagnostics. The caller provides a `LiveDoc` parsed from the *same text* that was just inde
src/features/call_arg_diagnostics.rs:26
↓ 20 callersFunctionindex_file
(idx: &Indexer, uri: &str, pkg: &str, imports: Vec<ImportEntry>)
src/indexer/infer/sig_tests.rs:620
↓ 20 callersMethodparse
()
src/cli/args.rs:96
↓ 20 callersFunctionparse_kotlin
(src: &str)
src/indexer/node_ext_tests.rs:7
↓ 20 callersFunctionparse_swift
(content: &str)
src/parser.rs:213
↓ 20 callersMethodselection_start
Return the line number where the symbol's identifier starts. This is a convenience accessor for `.selection_range.start.line` (the identifier line),
src/types.rs:205
↓ 19 callersMethodclear
Clear dedup state (called on workspace switch / reindex).
src/indexer/enrich.rs:91
↓ 19 callersFunctioncomplete_symbol
Provide completion candidates for `prefix` at the current position. - **Dot-completion** (`dot_receiver = Some("obj")`): infer the receiver's type an
src/resolver/complete.rs:220
↓ 19 callersFunctioncursor_at
(line: u32, col: u32)
src/features/fill_when_tests.rs:21
↓ 19 callersMethoddotted_ident_prefix
(&self)
src/str_ext.rs:55
↓ 19 callersMethodwith_var
Register `var_name` → `type_name` for `uri`.
src/indexer/infer/deps.rs:188
↓ 18 callersFunctionfind_node_kind
(node: tree_sitter::Node<'a>, kind: &str)
src/indexer/node_ext_tests.rs:17
↓ 18 callersFunctionis_generic_param
Returns `true` if `name` looks like a generic type parameter: a short all-uppercase identifier like `T`, `R`, `IN`, `OUT`, `KEY`, `VAL`.
src/indexer/infer/type_subst.rs:159
↓ 18 callersFunctionutf16_col_to_byte
Convert a UTF-16 column offset (as used in LSP positions) to a byte offset within `line_text`. Tree-sitter `Point::column` expects byte offsets.
src/indexer/live_tree.rs:29
↓ 17 callersFunctionuri
(path: &str)
src/features/call_arg_diagnostics_tests.rs:8
↓ 16 callersFunctioncomplete_bare
Bare-word completion: match-scored across local file + same-package + index. Case heuristic: - **Lowercase prefix** → only return symbols whose name
src/resolver/complete.rs:1682
↓ 16 callersFunctiondiagnose
Run `kmp-lsp diagnose --root <root> <file>` and return stdout lines.
tests/cli_diagnose.rs:23
↓ 16 callersFunctionhit_files
Returns a sorted, deduplicated list of file names (basename only) from `locs`.
src/features/references_tests.rs:35
↓ 16 callersMethodoutput
(&self)
src/rg.rs:498
↓ 16 callersFunctionuri
(path: &str)
src/features/code_actions_tests.rs:207
↓ 15 callersFunctioncompute_signature_help
Compute signature help for the call under the cursor at `pos` in `uri`. Returns `None` when: - no live parse tree exists for the file (not yet opened
src/features/signature_help.rs:25
↓ 15 callersFunctionfind_it_element_type_in_lines
Multi-line version of `find_it_element_type` for hover/goto-def contexts. When hovering over `it`, the cursor is ON `it` in the lambda body — which m
src/indexer/infer/it_this.rs:106
↓ 15 callersMethodfind_var_type
(&self, var_name: &str, uri: &Url)
src/indexer/infer/deps.rs:281
↓ 15 callersFunctionindexed
(path: &str, src: &str)
src/indexer/infer/it_this_tests.rs:17
↓ 15 callersMethodlast_segment
(&self)
src/str_ext.rs:62
↓ 15 callersMethodrequest
(self, method: str, params: dict)
contrib/kotlin-cli.py:154
↓ 15 callersFunctionwhen_diagnostics
Produce diagnostics for all incomplete `when` expressions in a file. Scans the CST for every `when_expression` node and emits a warning diagnostic on
src/features/fill_when.rs:150
↓ 15 callersFunctionwith_xdg_cache
Run `f` with `XDG_CACHE_HOME` temporarily pointing at `dir`. Restores the original value (or removes the var) on exit, even on panic.
src/indexer/test_helpers.rs:11
↓ 15 callersFunctionwrite_fixture
Write `content` to `dir/rel_path`, creating parent dirs as needed.
tests/cli_complete.rs:23
↓ 14 callersMethodfile_data_for
(&self, uri: &str)
src/features/traits_impl.rs:39
↓ 14 callersMethodgeneration
Current generation value.
src/indexer/workspace_root.rs:50
↓ 14 callersFunctionhover
Hover markdown for a stdlib symbol, or `None` if not known.
src/stdlib.rs:512
↓ 14 callersFunctionis_id_char
(c: char)
src/indexer/scope.rs:559
↓ 14 callersFunctionparse_java
(content: &str)
src/parser.rs:196
↓ 14 callersFunctionts_to_lsp
(r: tree_sitter::Range)
src/parser.rs:596
↓ 13 callersFunctionchild_ident
Find the first direct child with a name identifier (simple_identifier or identifier).
src/semantic_tokens/helpers.rs:42
↓ 13 callersMethodcompletions
Uses `live_lines` (updated synchronously on every keystroke) for the current file's line text, falling back to indexed lines or disk.
src/indexer.rs:865
↓ 13 callersMethoddefinition_locations
(&self, name: &str)
src/features/traits_impl.rs:31
↓ 13 callersFunctionparse_by_extension
Dispatch to the correct parser based on file extension.
src/parser.rs:280
↓ 13 callersFunctionrg_find_references
Run `rg` to find all *usages* of `name` in the project. Uses `--word-regexp` so only whole-word matches are returned. If `include_decl` is false, lin
src/rg.rs:1400
↓ 12 callersFunctioncomplete_dot
Dot-completion: return all members of the receiver's inferred type, sorted: methods first, then fields/vars, then class-level names last.
src/resolver/complete.rs:587
↓ 12 callersFunctionlast_ident_in
Return the trailing contiguous identifier slice in `s` — the longest suffix whose characters all satisfy `is_id_char`. Returns `""` if none. Example
src/indexer/scope.rs:567
↓ 12 callersFunctionload_source_paths
Reads `<workspace_root>/workspace.json` and returns source root paths. Returns an empty `Vec` (with a log warning) if the file is missing, malformed,
src/workspace_json.rs:56
↓ 12 callersFunctionregex_escape
Escape a string for use as a regex literal (non-alphanumeric chars → `\c`).
src/rg.rs:1586
↓ 12 callersFunctionrg_find_definition
Run `rg` to find definition sites for `name`, scoped to `root`. When `root` is an absolute path, rg outputs absolute paths in results. Passing worksp
src/rg.rs:284
↓ 12 callersMethodstarts_with_lowercase
(&self)
src/str_ext.rs:42
↓ 12 callersMethodwith_fun
Register `fn_name` → `params_text` for `uri`.
src/indexer/infer/deps.rs:181
↓ 11 callersFunctionapply
(src: &str, edits: Vec<TextEdit>)
src/features/on_type_formatting.rs:229
↓ 11 callersFunctionapply_type_subst
Apply a type-parameter substitution map to a type string. Only replaces whole-word occurrences (character boundaries), so `EventType` is not partiall
src/indexer/lookup.rs:220
↓ 11 callersMethodcall_fn_name
(self, bytes: &[u8])
src/indexer/node_ext.rs:171
next →1–100 of 3,021, ranked by callers