MCPcopy Create free account

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

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

↓ 2 callersFunctionhash_str
Fast FNV-1a 64-bit hash used for content-change detection.
src/indexer/apply.rs:103
↓ 2 callersFunctionhover_substitution_context
(uri: &Url, line: u32)
src/features/hover.rs:199
↓ 2 callersMethodimport_edit
( &self, fqn: &str, needs_import: bool, )
src/resolver/complete.rs:511
↓ 2 callersFunctionindexJarBytes
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/JarIndexer.kt:48
↓ 2 callersFunctionindex_file_with_symbols
( idx: &Indexer, uri: &str, pkg: &str, imports: Vec<ImportEntry>, symb
src/indexer/infer/sig_tests.rs:624
↓ 2 callersFunctionindex_jars
Index the given JAR/AAR files using the sidecar (with disk cache), inserting results into the indexer's symbol maps. The sidecar handle is borrowed m
src/indexer/jar.rs:502
↓ 2 callersFunctionindexed_with_live
(path: &str, src: &str)
src/features/completion_context_tests.rs:62
↓ 2 callersFunctioninfer_field_type
Scan a specific (possibly un-indexed) file for the declared type of `field_name`. Checks CST type annotations first (indexed files), then falls back
src/resolver/infer.rs:352
↓ 2 callersFunctioninfer_from_rhs_assignment
Attempt to infer the type of `var_name` from the right-hand side of an assignment. Infer a Kotlin type from a single RHS assignment line without an ex
src/resolver/infer_lines.rs:282
↓ 2 callersFunctioninfer_method_return_type
( indexer: &Indexer, var_name: &str, lines: &[String], uri: &Url, depth: u8, )
src/resolver/infer.rs:526
↓ 2 callersFunctioninfer_receiver_type_at
Like [`infer_receiver_type`] but checks smart-cast narrowing at the given position first. If the variable is inside a `when (var) { is Type -> }` bra
src/resolver/infer.rs:179
↓ 2 callersFunctioninfer_type_in_lines
Scan `lines` for an explicit type annotation of `var_name` and return the base type name (generics and nullability stripped). `"val repo: UserReposit
src/resolver/infer_lines.rs:110
↓ 2 callersFunctioninfer_variable_type_core
( indexer: &Indexer, var_name: &str, uri: &Url, depth: u8, keep_generics: bool, )
src/resolver/infer.rs:239
↓ 2 callersFunctioninfer_variable_type_impl
( indexer: &Indexer, var_name: &str, uri: &Url, depth: u8, )
src/resolver/infer.rs:221
↓ 2 callersFunctioninline_lambda_param_type
For an INLINE lambda argument `fn(a, b, { param -> ... })`: find the enclosing function name and the 0-based position of this lambda, then look up tha
src/indexer/infer/receiver.rs:366
↓ 2 callersFunctionis_annotation_context
Detect whether the character immediately before `prefix` in `line` is `@`. Used to restrict completions to annotation/class kinds only.
src/resolver/complete.rs:268
↓ 2 callersFunctionis_call_callee
(node: Node<'_>)
src/semantic_tokens/helpers.rs:387
↓ 2 callersFunctionis_declaration_site
(node: Node<'_>)
src/semantic_tokens/helpers.rs:236
↓ 2 callersMethodis_declared_in
(&self, uri: &Url, name: &str)
src/features/traits_impl.rs:107
↓ 2 callersFunctionis_declared_type_param
Check whether `name` is a declared type parameter of the given function.
src/indexer/infer/type_subst.rs:153
↓ 2 callersFunctionis_enum_class
(indexer: &Indexer, class_name: &str)
src/indexer.rs:408
↓ 2 callersMethodis_in_progress
Returns `true` if a scan is currently running.
src/workspace/scan_queue.rs:63
↓ 2 callersFunctionis_inside_class_body
True when this node is a direct child of a class/interface/enum body.
src/semantic_tokens/helpers.rs:199
↓ 2 callersFunctionis_inside_receiver_lambda
( lines: &[String], pos: CursorPos, idx: &crate::indexer::Indexer, uri: &Url, )
src/indexer/infer/cst_lambda.rs:184
↓ 2 callersFunctionis_java_field_declaration_at
Returns `true` if the match at byte-column `col` in `content` looks like a Java **field or local-variable declaration**: the name is followed (after o
src/rg.rs:1343
↓ 2 callersFunctionis_keyword_for_file
Returns `true` when `name` is a reserved keyword for the given file path — i.e. not a valid rename target. Java files check both `KOTLIN_KEYWORDS` and
src/features/text_utils.rs:270
↓ 2 callersFunctionis_library_extension
Whether an extension entry comes from a library (JAR/sources-JAR or a path registered in `library_uris`) rather than workspace source. Library symbol
src/resolver/complete.rs:529
↓ 2 callersMethodis_library_uri
(&self, uri: &Url)
src/features/traits_impl.rs:87
↓ 2 callersFunctionis_member_symbol
(kind: SymbolKind)
src/semantic_tokens/resolve.rs:384
↓ 2 callersFunctionis_subcommand
(value: &str)
src/cli/args.rs:385
↓ 2 callersFunctionis_top_level
True when `node` is a direct child of the file root (top-level declaration).
src/semantic_tokens/helpers.rs:177
↓ 2 callersFunctionis_type_symbol
(kind: SymbolKind)
src/semantic_tokens/resolve.rs:380
↓ 2 callersFunctionjar_loading_hint
Return a brief "JAR index loading" hover hint when the phase is `Pending` or `InProgress`. Returns `None` for `Unavailable`, `Ready`, and `Failed` (i
src/features/hover.rs:219
↓ 2 callersFunctionjar_request
Build a newline-terminated JSON request for a single JAR path. Uses `serde_json` so paths with backslashes, quotes, or other special characters are a
src/sidecar.rs:28
↓ 2 callersMethodjava_first_type_name
(self, bytes: &[u8])
src/indexer/node_ext.rs:416
↓ 2 callersMethodjava_type_list
(self, bytes: &[u8])
src/indexer/node_ext.rs:536
↓ 2 callersFunctionlang_str
(path: &str)
src/indexer/lookup.rs:207
↓ 2 callersFunctionlibrary_cache_is_fresh
Returns `true` if the library cache is likely still valid. Two-tier check: 1. Manifest mtime — catches additions/deletions in source directories (fas
src/indexer/cache.rs:426
↓ 2 callersFunctionline_has_deprecated
(line: &str)
src/parser.rs:1811
↓ 2 callersFunctionline_has_lambda_param
Returns true if `line` contains a lambda declaration that names `param_name` as one of its parameters (handles single and multi-param patterns): `{ pa
src/indexer/infer/it_this.rs:477
↓ 2 callersFunctionline_reference_locations
(uri: &Url, name: &str, line_number: u32, line: &str)
src/features/references.rs:403
↓ 2 callersFunctionload_configured_source_paths
Reads the `sourcePaths` key from `<workspace_root>/workspace.json`. Returns `Some(paths)` when the key is present (even if the list is empty — an emp
src/workspace_json.rs:111
↓ 2 callersFunctionlocal_binding_names
(node: Node<'_>, params: &[String], bytes: &[u8])
src/semantic_tokens/params.rs:147
↓ 2 callersFunctionlocate_and_extract
Stage 1 — LOCATE + EXTRACT. Given a `lambda_literal` node, walks parent nodes to find the enclosing call_expression, looks up the function signature,
src/indexer/infer/cst_lambda.rs:488
↓ 2 callersMethodlocations
(&self)
src/rg.rs:516
↓ 2 callersFunctionmake_indexer_with
(src: &str, uri: &tower_lsp::lsp_types::Url)
src/backend/helpers_tests.rs:175
↓ 2 callersFunctionmake_item_ex
( name: &'static str, kind: tower_lsp::lsp_types::CompletionItemKind, signature: &'static str,
src/stdlib.rs:716
↓ 2 callersFunctionmap_def_captures
Extract def/name captures from a single `QueryMatch` into a `MatchEntry`. Handles the common case shared by both Kotlin and Swift definition queries:
src/parser.rs:291
↓ 2 callersFunctionmark_deprecated
Tag a completion item as deprecated and push it to the bottom of the list. Sets the LSP `Deprecated` tag (clients render it struck-through) and rewri
src/resolver/complete.rs:539
↓ 2 callersMethodmatches
(&self, symbol: &SymbolEntry)
src/features/workspace_symbols.rs:155
↓ 2 callersMethodmem_lines_for
(&self, uri: &str)
src/indexer/resolution.rs:160
↓ 2 callersFunctionmember_return_type
( indexer: &Indexer, receiver_type: &str, member_name: &str, from_uri: &Url, )
src/semantic_tokens/resolve.rs:499
↓ 2 callersFunctionmember_token_type
(kind: SymbolKind)
src/semantic_tokens/resolve.rs:397
↓ 2 callersFunctionmerge_decl_files
(candidate_files: &mut Vec<String>, decl_files: &[String])
src/rg.rs:775
↓ 2 callersFunctionnames_has_param
(names_str: &str, param_name: &str)
src/indexer/infer/it_this.rs:456
↓ 2 callersFunctionnavigation_member_ident
(node: Node<'_>)
src/semantic_tokens/helpers.rs:367
↓ 2 callersFunctionnormalizeToolArgs
(rawToolArgs)
contrib/copilot-extension/extension.mjs:49
↓ 2 callersFunctionnormalize_parameter_base_type
(parameter_type: &str)
src/indexer/infer/args.rs:198
↓ 2 callersMethodnotify
(self, method: str, params: dict)
contrib/kotlin-cli.py:169
↓ 2 callersMethodnotify
Send a JSON-RPC notification (no id, no response expected).
tests/lsp_smoke.rs:121
↓ 2 callersFunctionopts
(spaces: bool, tab_size: u32)
src/features/on_type_formatting.rs:206
↓ 2 callersFunctionpackage_dir_in_source_roots
Returns `true` if the package directory derived from `import_path` exists as a subdirectory of at least one search root. `android.os.Bundle` → pkg_di
src/resolver/resolve.rs:974
↓ 2 callersFunctionparam_index_in
(names_str: &str, param_name: &str)
src/indexer/infer/it_this.rs:463
↓ 2 callersMethodparse
Parse the text before a `.` completion trigger. `"productFlow(trigger.isRefresh())."` → `Some(ReceiverExpr { chain: "productFlow", is_call: true })`
src/resolver/complete.rs:149
↓ 2 callersFunctionparse_fd_hits
Parse a list of newline-separated absolute file paths from fd output, parse each file with the appropriate parser, and return locations for `symbol_na
src/resolver/fd.rs:165
↓ 2 callersFunctionparse_jar_entries
Pure: parse a batch of (URI, content) pairs in parallel. Returns a [`ParsedJarEntries`] whose `complete` flag is `false` when any worker thread panic
src/indexer/jar.rs:373
↓ 2 callersFunctionparse_swift
(code: &str)
tests/swift_grammar.rs:3
↓ 2 callersFunctionprint_help
()
src/cli/args.rs:406
↓ 2 callersFunctionprint_results
(results: &[CliResult], json: bool)
src/cli/output.rs:45
↓ 2 callersFunctionprint_version
()
src/cli/args.rs:402
↓ 2 callersFunctionpush_def_symbols
Convert a deduplicated match map into `SymbolEntry` values and append them to `symbols`. `pattern_meta` maps a pattern index to `(SymbolKind, label)`
src/parser.rs:348
↓ 2 callersFunctionpush_interface_symbol
( name: &str, node: &Node, sel_node_range: tree_sitter::Range, bytes: &[u8], data: &mut Fi
src/parser.rs:820
↓ 2 callersFunctionrange_tokens_cst_only
( doc: &LiveDoc, language: Language, range: &Range, )
src/semantic_tokens/mod.rs:279
↓ 2 callersMethodreadKdocMap
Find and parse the sources JAR for a given main JAR path. */
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/SourcesKdocReader.kt:19
↓ 2 callersFunctionread_git_commit
Resolves the current git commit SHA from `git_dir/HEAD`. For a symbolic ref (`ref: refs/heads/main`), reads the pointed-to ref file from the refs roo
src/backend/git_watcher.rs:65
↓ 2 callersMethodremove_live_lines
(&self, uri: &Url)
src/indexer.rs:820
↓ 2 callersMethodremove_stale_for_uri
Remove all per-file index entries contributed by `uri`. Used by the sources-JAR auto-mount path before re-inserting: the parallel `apply_contribution
src/indexer/apply.rs:516
↓ 2 callersFunctionrenderFunction
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:232
↓ 2 callersFunctionrenderProperty
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:252
↓ 2 callersMethodreport
(&self, _: &NumberOrString, _: usize, _: usize)
src/indexer/scan.rs:72
↓ 2 callersFunctionresolve_call_expr_type
Resolve the return type of a call_expression node used as a root in a nav chain. Handles both simple calls (`foo()`) and method calls (`receiver.meth
src/indexer/infer/chain.rs:392
↓ 2 callersFunctionresolve_dot_receiver_type
( indexer: &Indexer, expr: &ReceiverExpr, from_uri: &Url, cursor_line: Option<u32>, )
src/resolver/complete.rs:662
↓ 2 callersMethodresolve_locations
( &self, name: &str, qualifier: Option<&str>, from_uri: &Url, allow_rg
src/indexer/resolution.rs:682
↓ 2 callersFunctionresolve_package_from_path
Derive the Kotlin/Java package string from an absolute file path. Searches for the rightmost (most specific) source-set root marker using path-segmen
src/features/code_actions.rs:92
↓ 2 callersFunctionresolve_qualified
Step 0 — dot-qualified access. Handles two families of chains: Uppercase root** (`Outer.Inner`, `A.B.C.D`): all segments are class/object names; the
src/resolver/resolve.rs:503
↓ 2 callersFunctionresolve_scope_with_qualifier
Like [`resolve_scope`] but accepts a dot-qualifier (the segment immediately preceding `name` at the cursor, e.g. `"ReducerA"` for `ReducerA.Factory`).
src/features/references.rs:120
↓ 2 callersFunctionresolve_star_imports
Step 4 — star imports: `import com.example.*`. For each star import: a. Check indexed files in that package (fast, O(files_in_package)). b. If nothin
src/resolver/resolve.rs:826
↓ 2 callersFunctionresolve_symbol_inner
Internal resolver. When `with_hierarchy` is false step 4.5 is skipped to avoid infinite recursion inside `resolve_from_class_hierarchy` (which calls
src/resolver/resolve.rs:127
↓ 2 callersFunctionresolve_type_index_only_simple
Inner helper: resolves a simple (non-dotted) type name using the index-only chain.
src/resolver/resolve.rs:320
↓ 2 callersFunctionrg_resolve
(index: &impl SearchAccess, uri: &Url, name: &str)
src/features/definition.rs:35
↓ 2 callersFunctionrunCommand
Run a command with an explicit argument array — no shell interpolation.
contrib/copilot-extension/extension.mjs:78
↓ 2 callersFunctionrunRg
(args, cwd, timeout = 10000)
contrib/copilot-extension/extension.mjs:156
↓ 2 callersFunctionrun_rg_search
(request: &RgSearchRequest<'_>, patterns: &[String])
src/rg.rs:742
↓ 2 callersMethodsave_cache_to_disk
Serialize the current index to `~/.cache/kmp-lsp/<root-hash>/index.bin`. Safe to call from a background thread. Logs warnings on error; never panics.
src/indexer/scan.rs:1052
↓ 2 callersFunctionsave_library_cache
Save the library cache for the given source paths. Splits entries into `LIBRARY_CHUNK_SIZE`-file chunks and writes them to a dedicated directory. Th
src/indexer/cache.rs:507
↓ 2 callersFunctionscan_gradle_jars
Scan for compiled (non-sources) JARs only — backwards-compatible wrapper.
src/indexer/jar.rs:102
↓ 2 callersFunctionscope_decl_files
When `source_paths` is non-empty, filter `decl_files` to only those within the configured source roots so declaration files outside the scope don't by
src/rg.rs:786
↓ 2 callersFunctionsplit_rg_fields
Parse `<path>:<line>:<col>:<content>` from a single rg output line. Windows-aware: a leading `X:` drive prefix on the path is not treated as a field
src/rg.rs:1548
↓ 2 callersFunctionstarts_with_ignore_ascii_case
Returns `true` if `haystack` starts with `prefix` case-insensitively. `prefix` **must already be lowercased** by the caller (via `to_lowercase()`). Z
src/features/text_utils.rs:35
↓ 2 callersMethodstore_live_document_state
(&self, uri: &Url, content: &str)
src/workspace/document_handler.rs:128
← previousnext →601–700 of 3,021, ranked by callers