MCPcopy Create free account

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

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

↓ 4 callersFunctioncli_workspace_source_roots
Load workspace.json module sourceRoots to scope rg searches in the CLI. Mirrors the subset of `Backend::collect_workspace_source_roots` relevant for C
src/cli/run.rs:292
↓ 4 callersFunctioncollect_fun_params_text
Collect everything between the outer `(…)` of a function's parameter list. Scans the symbol's start line and up to 20 following lines. Matches both to
src/indexer/infer/sig.rs:272
↓ 4 callersFunctioncollect_params_from_file
Collect params text and param_counts for callable symbols matching `name` in `file_data`, applying `scope` filtering rules and optional receiver-type
src/indexer/infer/sig.rs:692
↓ 4 callersFunctioncollect_params_from_line
Walk forward from `start_line`, accumulating characters until the outermost `)` closes — that ends the parameter list. We only track `()` depth (NOT
src/indexer/infer/sig.rs:370
↓ 4 callersFunctioncompute_inlay_hints
(idx: &Arc<Indexer>, uri: &Url, range: Range)
src/inlay_hints.rs:29
↓ 4 callersFunctioncontains_ignore_ascii_case
Shared text-processing utilities for feature modules. Returns `true` if `haystack` contains `needle` case-insensitively. `needle` **must already be lo
src/features/text_utils.rs:11
↓ 4 callersFunctioncursor_node_at
( doc: &crate::indexer::live_tree::LiveDoc, pos: CursorPos, )
src/indexer/infer/cst_lambda.rs:254
↓ 4 callersFunctiondot_completions_for
Returns stdlib dot-completions filtered to those applicable for `receiver_type`. Falls back to scope-functions-only for unknown project types.
src/stdlib.rs:587
↓ 4 callersMethodenqueue_scan
Enqueue a scan request. If a scan is in progress the generation is bumped to invalidate it; the new request replaces any earlier pending one (last-wri
src/workspace/scan_handler.rs:216
↓ 4 callersFunctionextend_unique_files
(files: &mut Vec<String>, new_files: Vec<String>)
src/rg.rs:767
↓ 4 callersFunctionextract_declared_names
Scan source lines for `ident:` patterns (constructor params, properties, locals). Called once at parse time; result cached in FileData so completion n
src/parser.rs:1888
↓ 4 callersFunctionextract_type_with_generics
Extract a type name (with generics) from the start of a string. `"List<Product> = emptyList()"` → `"List<Product>"` `"StateFlow<UiState>"` → `"StateF
src/resolver/infer_lines.rs:461
↓ 4 callersFunctionfile_stem_from_uri
Extract the file stem (basename without extension) from a `file://` URL. Prefers `Url::to_file_path()` (which handles percent-decoding correctly) and
src/path_util.rs:94
↓ 4 callersMethodfinalize_workspace_scan
( self: Arc<Self>, result: WorkspaceIndexResult, guard: IndexingGuard, reporte
src/indexer/scan.rs:909
↓ 4 callersFunctionfind_declaration_range_in_lines
Return the `Range` of the declaration `name:` on the first matching line, or `None` if not found. Used to locate function parameters and other declar
src/resolver/infer_lines.rs:496
↓ 4 callersFunctionfind_enclosing_call_name
Scan backward from `(line_no, col)` — where `col` is the START of the cursor word — to find the name of the enclosing function/constructor call. Used
src/indexer/scope.rs:695
↓ 4 callersMethodfind_field_type
(&self, class_name: &str, field_name: &str)
src/indexer.rs:294
↓ 4 callersMethodfind_field_type
(&self, class_name: &str, field_name: &str)
src/indexer/infer/deps.rs:286
↓ 4 callersMethodfind_fun_signature_with_receiver
( &self, uri: &Url, name: &str, receiver: Option<&str>, )
src/features/traits_impl.rs:161
↓ 4 callersFunctionfind_implementation
Find all implementations/subtypes of the symbol under the cursor at `uri`. - If `word` names a method/function declared inside a class or interface,
src/features/implementation.rs:26
↓ 4 callersFunctionfind_node_kind
(node: tree_sitter::Node<'a>, kind: &str)
src/indexer/infer/it_this_tests.rs:603
↓ 4 callersMethodget_definitions
(&self, name: &str)
src/indexer/resolution.rs:659
↓ 4 callersMethodhandle_file_changed
( &mut self, uri: Url, changes: Vec<TextDocumentContentChangeEvent>, )
src/workspace/file_change_handler.rs:34
↓ 4 callersFunctionhas_java_modifier
(node: Node<'_>, keyword: &str)
src/semantic_tokens/java.rs:199
↓ 4 callersMethodhas_lambda_named_params
(self, bytes: &[u8])
src/indexer/node_ext.rs:239
↓ 4 callersFunctionindexClassBytes
* Index a single `.class` file bytes → list of SymbolEntry. * Returns empty list on any error (corrupted class, synthetic inner, etc.). */
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:409
↓ 4 callersMethodindex_workspace_full
Full reindex passing `MAX_FILES_UNLIMITED` as the default file cap — used by `--index-only` CLI mode and the `kmp-lsp/reindex` workspace command. The
src/indexer/scan.rs:680
↓ 4 callersMethodindex_workspace_impl
Core workspace indexing: file discovery → cache partition → concurrent parse. Returns `(result, guard)`. `guard` is `Some` iff this call successfully
src/indexer/scan.rs:956
↓ 4 callersFunctionindexed
(path: &str, src: &str)
src/indexer/lookup_tests.rs:16
↓ 4 callersMethodinfer_type
(&self, var_name: &str)
src/lines_ext.rs:100
↓ 4 callersFunctioninferred_receiver_lambda_type
( raw_type: &str, method: &str, deps: &impl InferDeps, uri: &Url, )
src/indexer/infer/receiver.rs:231
↓ 4 callersFunctionlambda_brace_arrows
Iterator over `(brace_pos, names_str)` for each `->` in `line` that has a preceding `{`. `names_str` is the text between `{` and `->` (not trimmed). T
src/indexer/infer/it_this.rs:443
↓ 4 callersFunctionlambda_brace_pos_for_param
Find the `{` byte position in `line` for the lambda that declares `param_name`. Scans all `->` occurrences (a line may have multiple lambdas).
src/indexer/infer/it_this.rs:483
↓ 4 callersFunctionlambda_type_nth_input
Return the Nth (0-based) input type from a functional type expression. `lambda_type_nth_input("(String, Boolean) -> Unit", 0)` → `Some("String")` `la
src/indexer/infer/lambda.rs:27
↓ 4 callersFunctionline_starts
Precompute the byte offset of each line's first byte within `bytes`. Used by `ts_byte_col_to_utf16` so it doesn't rescan from the file start for every
src/inlay_hints.rs:60
↓ 4 callersMethodlines_for
(&self, uri: &Url)
src/features/traits_impl.rs:63
↓ 4 callersFunctionmake_completion_item
Build a single `CompletionItem` for a named symbol. Functions and methods get a snippet `name($1)` so the cursor lands inside the parentheses after a
src/resolver/complete.rs:1806
↓ 4 callersFunctionmake_indexer_with
(src: &str)
src/backend/rename_tests.rs:5
↓ 4 callersFunctionmatch_score
Score how well `name` matches `prefix`. Lower = better. - `0` — `name` starts with `prefix` (case-insensitive, fastest/best) - `1` — camelCase acrony
src/resolver/complete.rs:55
↓ 4 callersMethodname_line
(self)
src/indexer/node_ext.rs:560
↓ 4 callersMethodopen_file
Send `textDocument/didOpen` for a file already on disk.
tests/lsp_smoke.rs:237
↓ 4 callersMethodpackage_of
(&self, uri: &Url)
src/features/traits_impl.rs:91
↓ 4 callersFunctionpackage_prefix
Derive the Kotlin package from an import path by taking all dot-separated segments that start with a lowercase letter (package convention). `cz.monet
src/resolver/fd.rs:16
↓ 4 callersMethodparse
(&self, source: &str)
src/language/java.rs:20
↓ 4 callersFunctionparse_jar_meta
Parse `(group, artifact, version)` from a Gradle module cache path. Gradle cache layout: `<home>/caches/modules-2/files-2.1/<group>/<artifact>/<versi
src/cli/extract_sources.rs:54
↓ 4 callersFunctionparse_kotlin
(src: &str)
src/indexer/infer/it_this_tests.rs:595
↓ 4 callersMethodparser
Return the stateless [`LanguageParser`] singleton for this language. This is the single authoritative dispatch point: use it instead of matching on t
src/types.rs:99
↓ 4 callersFunctionpoll_until
Poll `condition` every yield until it returns `true` or `timeout` elapses.
src/workspace/actor_tests.rs:29
↓ 4 callersFunctionreceiver_aware_params
( call_expr: tree_sitter::Node<'_>, bytes: &[u8], deps: &impl InferDeps, uri: &Url, )
src/indexer/infer/cst_lambda.rs:803
↓ 4 callersFunctionresolve_from_class_hierarchy
Walk the superclass / interface hierarchy of the class(es) declared in `from_uri` looking for a symbol named `name`. Algorithm --------- 1. Extract d
src/resolver/resolve.rs:865
↓ 4 callersFunctionresolve_local
Step 1 — symbols defined in the same source file.
src/resolver/resolve.rs:637
↓ 4 callersFunctionresolve_member_type_on
Given a current receiver type string, resolve a member access (field or method) and return the resulting type with type substitution applied. When `b
src/indexer/infer/chain.rs:299
↓ 4 callersFunctionresolve_root
Resolve the workspace root: explicit --root, then nearest .git ancestor, then cwd.
src/cli/run.rs:27
↓ 4 callersFunctionresolve_root_for_file
Resolve workspace root for file-centric commands: tries explicit root first, then walks up from the file's directory, then falls back to CWD-based det
src/cli/run.rs:63
↓ 4 callersFunctionresolve_root_node_type
Resolve the type of a root node (identifier, navigation_expression for dotted access).
src/indexer/infer/chain.rs:348
↓ 4 callersFunctionresolve_same_package
Step 3 — same-package visibility (no import needed in Kotlin). Finds all indexed files sharing the same `package` declaration as `from_uri` and searc
src/resolver/resolve.rs:731
↓ 4 callersFunctionresolve_symbol_kind
( name: &str, indexer: &Indexer, matches_kind: impl Fn(SymbolKind) -> bool, )
src/semantic_tokens/resolve.rs:531
↓ 4 callersMethodresolve_symbol_no_rg
(&self, name: &str, from_uri: &Url)
src/resolver/resolve.rs:1096
↓ 4 callersFunctionrunShell
(cmd, timeout = 8000)
contrib/copilot-extension/extension.mjs:69
↓ 4 callersMethodrun_pending_reindex
Called at the end of every public scan function, after the full workflow (impl + apply + source_paths + save_cache) completes. Mirrors RA's `OpQueue`
src/indexer/scan.rs:829
↓ 4 callersMethodscan_source_paths_slow
Slow path: scan source directories, use per-file cache where possible, and spawn async parse tasks for changed files.
src/indexer/apply.rs:795
↓ 4 callersFunctionsort_text_of
(items: &'a [tower_lsp::lsp_types::CompletionItem], label: &str)
src/resolver/tests.rs:2460
↓ 4 callersMethodspawn_jar_indexing
Spawn a blocking task that scans the Gradle cache and indexes JAR/AAR symbols via the sidecar. Runs in the background after `initialize` returns so i
src/workspace/scan_handler.rs:286
↓ 4 callersFunctionstrip_suspend
(type_name: &str)
src/indexer/infer/lambda.rs:215
↓ 4 callersFunctionstrip_unc_prefix
Strip the `\\?\` extended-length UNC prefix that `Path::canonicalize()` adds on Windows. Paths with this prefix confuse external tools like `rg`.
src/cli/run.rs:39
↓ 4 callersMethodsubtypes_of
(&self, name: &str)
src/features/traits_impl.rs:35
↓ 4 callersFunctionsupers_names
(data: &FileData)
src/parser_tests.rs:904
↓ 4 callersFunctiontry_acquire_rg_slot
Try to acquire a concurrency slot for any subprocess (rg or fd). Returns `None` when the cap is reached. Uses a CAS loop to guarantee that exactly on
src/rg.rs:50
↓ 4 callersFunctionuri
(path: &str)
src/inlay_hints_tests.rs:4
↓ 4 callersFunctionuri
(path: &str)
src/indexer/lookup_tests.rs:12
↓ 4 callersFunctionutf16_column
Counts UTF-16 code units in `text` (for LSP column offsets).
src/features/text_utils.rs:78
↓ 4 callersMethodwith_classified_source_set
(&self, uri: &str, file_data: Arc<FileData>)
src/indexer/apply.rs:470
↓ 4 callersMethodwith_source_paths
(mut self, source_paths: &'a [String])
src/rg.rs:603
↓ 4 callersMethodword_and_qualifier_at
Like `word_at` but also returns the single dot-qualifier immediately preceding the word, if any. `AccountPickerMapper.Content` cursor on `Content` →
src/indexer/scope.rs:124
↓ 3 callersFunction_find_templates_dir
Locate .idea/fileTemplates starting at workspace, searching up two levels.
contrib/kotlin-cli.py:225
↓ 3 callersFunction_range_contains
Return True if outer LSP range fully contains inner.
contrib/kotlin-cli.py:745
↓ 3 callersMethodapply_config
Apply a [`Config`] to the indexer and transition the phase state. The single write path shared by Initialize, ChangeRoot, and switch_workspace_root_f
src/workspace/scan_handler.rs:161
↓ 3 callersFunctionasString
(value)
contrib/copilot-extension/extension.mjs:45
↓ 3 callersFunctionassign_containers
Assign `container` field to each symbol based on range nesting. For each non-container symbol, finds the tightest enclosing container. For nested con
src/parser.rs:530
↓ 3 callersFunctionbuild_bare_names
( definitions: &dashmap::DashMap<String, Vec<Location>>, )
src/indexer/apply.rs:281
↓ 3 callersFunctionbuild_ext_fn_type_subst
Build a type-parameter substitution map for a generic extension function by recursively matching the declared receiver type against the concrete recei
src/indexer/infer/type_subst.rs:108
↓ 3 callersFunctionbuild_qualified_keys
Compute qualified map keys for a single file. Returns one or two `(key, selection_range)` pairs per symbol: - `"pkg.SymName"` - `"pkg.FileStem.SymNam
src/indexer/cache.rs:174
↓ 3 callersFunctionbuild_result
Build a `SignatureResult` from a list of `(params_text, param_counts)` pairs. Deduplicates by arity envelope. If there are multiple distinct envelope
src/indexer/infer/sig.rs:900
↓ 3 callersMethodcall_info_at
( &self, pos: tower_lsp::lsp_types::Position, uri: &Url, )
src/features/traits_impl.rs:174
↓ 3 callersMethodcancel_pending_reindex
(&mut self, uri: &Url)
src/workspace/file_change_handler.rs:209
↓ 3 callersFunctioncanonical_root
Returns the canonical form of a path for use as a server workspace root. On macOS this resolves /var → /private/var symlinks. On Windows this strips
tests/lsp_smoke.rs:272
↓ 3 callersFunctioncapitalize_first_char
Capitalize the first character of a string (Kotlin naming convention: `buildingSavingsReducer` → `BuildingSavingsReducer`).
src/indexer/infer/type_subst.rs:323
↓ 3 callersMethodclear_jar_index
Clear JAR-sourced symbol maps (called on workspace root change). Also removes JAR URIs from `library_uris` so `is_library_uri` stays consistent. Reset
src/indexer.rs:727
↓ 3 callersFunctioncol_after_call_paren
Col of the character immediately after the `(` that follows `fn_name` on `line_no` of `src`.
src/indexer_tests.rs:2627
↓ 3 callersMethodcol_utf16
(&self, row: usize, byte_col: usize)
src/semantic_tokens/mod.rs:115
↓ 3 callersFunctioncollect_lambda_param_names
( lambda_node: tree_sitter::Node<'_>, bytes: &[u8], existing: &[String], )
src/indexer/scope.rs:491
↓ 3 callersMethodcollect_lambda_param_names
(self, bytes: &[u8], existing: &[String])
src/indexer/node_ext.rs:275
↓ 3 callersMethodcompleted
Mark the current scan as finished. Call this before `try_start` to check for a pending follow-up scan.
src/workspace/scan_queue.rs:89
↓ 3 callersFunctioncompute_on_type_formatting
( lines: &[String], position: Position, ch: &str, options: &FormattingOptions, )
src/features/on_type_formatting.rs:3
↓ 3 callersFunctionconfig_with_explicit
(root: &Path, explicit: &[&str])
src/workspace/config_tests.rs:19
↓ 3 callersMethodcontaining_class_at
Find the name of the innermost class/interface/object/enum that contains `line` in this file's symbol list. Returns `None` if the symbol is top-level
src/types.rs:335
↓ 3 callersFunctioncontains_word
(text: &str, word: &str)
src/parser.rs:1866
↓ 3 callersFunctioncount_params_from_node
Count (required, total) params by examining tree children. A `parameter` node followed by an `=` sibling is optional.
src/parser.rs:1371
↓ 3 callersFunctioncst_cursor_is_local_var
(indexer: &Indexer, uri: &Url, pos: Position)
src/indexer/infer/cst_cursor.rs:230
↓ 3 callersFunctioncst_forward_resolve_receiver_type
Forward-walk chain resolution for the receiver type of a lambda's enclosing call expression. Given `a.b.method { lambda }`, resolves left-to-right: 1.
src/indexer/infer/chain.rs:250
← previousnext →301–400 of 3,021, ranked by callers