MCPcopy Create free account

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

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

↓ 3 callersMethoddeclared_package_of
(&self, name: &str, preferred_uri: &Url)
src/features/traits_impl.rs:103
↓ 3 callersFunctiondecode_tokens
(tokens: &tower_lsp::lsp_types::SemanticTokens)
src/semantic_tokens_tests.rs:24
↓ 3 callersFunctiondedup_matches
Deduplicate a list of `MatchEntry` values by `@name` start position. Multiple patterns can fire on the same node (e.g. an enum class matches both the
src/parser.rs:327
↓ 3 callersFunctionderive_supertypes
Extract supertype relationships (for `goToImplementation`) from a parsed file.
src/indexer/apply.rs:115
↓ 3 callersFunctioneffective_mode
(requested: Mode, root: &Path, subcommand: &str, verbose: bool)
src/cli/run.rs:745
↓ 3 callersFunctionenrich_symbol
Enrich symbol with signature, substitution, and docs.
src/indexer/resolution.rs:370
↓ 3 callersFunctionexpression_type
( node: Node<'_>, doc: &LiveDoc, starts: &[usize], indexer: &Indexer, uri: &Url, )
src/semantic_tokens/resolve.rs:347
↓ 3 callersFunctionextract_detail
(lines: &[String], start_line: u32, end_line: u32)
src/parser.rs:1441
↓ 3 callersFunctionextract_detail_from_node
Extract detail from a tree-sitter node by taking text up to (but not including) the function/class body. Falls back to line-based extraction if no bod
src/parser.rs:1447
↓ 3 callersFunctionextract_full_type_name
Extract the full type name from a user_type node (e.g. "TipsResult", "Effect"). For dotted types like `Outer.Inner`, concatenates with dots.
src/features/fill_when.rs:451
↓ 3 callersFunctionextract_inner_text
Handles annotated nodes like `@JvmOverloads constructor(...)` where the node does not start directly with `(`. Uses depth-tracked matching to find the
src/parser.rs:1334
↓ 3 callersMethodextract_type_name
(self, bytes: &[u8])
src/indexer/node_ext.rs:361
↓ 3 callersFunctionfile_url
(path: &str)
src/indexer/workspace_read_tests.rs:54
↓ 3 callersFunctionfilter_inaccessible_completion_items
(items: &mut Vec<CompletionItem>)
src/resolver/complete.rs:852
↓ 3 callersFunctionfinalize_parse
(data: &mut FileData, root: Node, bytes: &[u8])
src/parser.rs:139
↓ 3 callersFunctionfind_ancestor_decl
Walk up from a node to find the enclosing declaration (function/class/object).
src/parser.rs:1418
↓ 3 callersFunctionfind_extension_fn_return_type
Find the return type of an extension function `method_name` declared with receiver `ReceiverType` where `ReceiverType`'s base name == `receiver_base`.
src/resolver/infer.rs:721
↓ 3 callersFunctionfind_files_for_types
Use `rg` to find the source files that declare any of the given type names. Returns an empty vec when `names` is empty or `rg` fails.
src/indexer/scan.rs:119
↓ 3 callersMethodfind_fun_callable_info
(&self, fn_name: &str, _uri: &Url)
src/indexer/infer/deps.rs:314
↓ 3 callersMethodfind_fun_return_type
(&self, fn_name: &str)
src/indexer/infer/deps.rs:291
↓ 3 callersFunctionfind_git_root
Walk up from `start` looking for a `.git` directory.
src/cli/run.rs:51
↓ 3 callersFunctionfind_lambda_brace_for_param
Returns `(brace_pos, param_index)` for the lambda on `line` that declares `param_name`, combining `lambda_brace_pos_for_param` + `lambda_param_positio
src/indexer/infer/it_this.rs:492
↓ 3 callersFunctionfind_node_scope
(node: tree_sitter::Node<'a>, kind: &str)
src/indexer/scope_tests.rs:681
↓ 3 callersFunctionfind_node_text
( node: tree_sitter::Node<'a>, kind: &str, text: &str, bytes: &[u8], )
src/indexer/node_ext_tests.rs:29
↓ 3 callersMethodfind_value_arguments
(self)
src/indexer/node_ext.rs:214
↓ 3 callersMethodfinish
(self)
src/resolver/complete.rs:519
↓ 3 callersFunctionfirst_type_arg
Return the first type argument in a comma-separated generic parameter list, respecting nested `<>` brackets.
src/resolver/infer_lines.rs:79
↓ 3 callersFunctionfirst_type_arg_raw
Like `first_concrete_type_arg_str` but **preserves** the full generic type args on the result (e.g. `"Optional<FamilyAccount>"` instead of `"Optional"
src/indexer/infer/type_subst.rs:184
↓ 3 callersMethodfor_each_indexed_file
(&self, f: &mut dyn FnMut(&str, &Arc<FileData>) -> bool)
src/features/traits_impl.rs:47
↓ 3 callersFunctionfull_tokens_cst_only
(doc: &LiveDoc, language: Language)
src/semantic_tokens/mod.rs:271
↓ 3 callersFunctionfun_interface_name_from_fn_decl
Returns the interface name if this `function_declaration` is actually a misparse of `[modifiers] fun interface Foo { ... }`. When a visibility/annota
src/parser.rs:781
↓ 3 callersFunctionhas_java_deprecated
(node: Node<'_>, src: &[u8])
src/semantic_tokens/java.rs:217
↓ 3 callersFunctionhas_named_params_not_it
Returns `true` if `after_open_brace` looks like the opening of an explicitly named parameter lambda — single-param `{ name ->` or multi-param `{ a, b
src/indexer/infer/args.rs:297
↓ 3 callersFunctionimport_file_candidates
(import_path: &str)
src/resolver/tests.rs:11
↓ 3 callersFunctionimport_file_stems
Uppercase segment stems in priority order — outer class first. `com.example.OuterClass.InnerClass` → `["OuterClass", "InnerClass"]` `com.example.Foo`
src/resolver/fd.rs:29
↓ 3 callersFunctionindexed_with_live
(path: &str, src: &str)
src/indexer/infer/args_tests.rs:252
↓ 3 callersFunctioninfer_callable_param_return_type
Scan lines for `name: (...) -> ReturnType` and return `ReturnType`. Handles callable parameters like: `productFlow: (isRefresh: Boolean) -> Flow<Resu
src/resolver/infer_lines.rs:841
↓ 3 callersFunctioninline_doc_markup
Apply inline markup substitutions.
src/indexer/doc.rs:321
↓ 3 callersFunctionis_fun_interface_error
Returns true if this ERROR node is actually a valid `fun interface` declaration that tree-sitter-kotlin just doesn't parse correctly. Structure: ERROR
src/parser.rs:619
↓ 3 callersFunctionis_in_companion_body
(node: Node<'_>)
src/semantic_tokens/helpers.rs:181
↓ 3 callersFunctionis_java_method_declaration_at
Returns `true` if the match at byte-column `col` in `content` looks like a Java **method** declaration: `name(…) {` or `name(…) throws` or `name(…) de
src/rg.rs:1275
↓ 3 callersFunctionis_screaming_snake
Returns true if `name` is SCREAMING_SNAKE_CASE (all letters are uppercase). Used to suppress constants/enum variants when the user types a CamelCase p
src/resolver/complete.rs:40
↓ 3 callersMethodis_stale
(&self)
src/indexer/scan.rs:171
↓ 3 callersFunctionkind_sort_rank
Sort rank for completion item kinds: lower = appears earlier.
src/resolver/complete.rs:1033
↓ 3 callersFunctionlambda_before_brace_context
( lambda: tree_sitter::Node<'_>, doc: &crate::indexer::live_tree::LiveDoc, )
src/indexer/infer/cst_lambda.rs:273
↓ 3 callersMethodlambda_param_names
(self, bytes: &[u8])
src/indexer/node_ext.rs:257
↓ 3 callersMethodlambda_params_at
Lambda parameter names that are **in scope** at `(cursor_line, cursor_col)`. Uses the same brace-depth backward-scan algorithm as `find_it_element_ty
src/indexer/scope.rs:290
↓ 3 callersFunctionlambda_type_first_input
Given a Kotlin function/lambda type `(A, B, ...) -> R`, return the base name of the first input type `A`. Returns `None` for `() -> Unit` (no `it`).
src/indexer/infer/lambda.rs:128
↓ 3 callersFunctionlines
Split by `\n` (not str::lines) so trailing empty lines are preserved, matching what the indexer sees after a newline is inserted.
src/features/on_type_formatting.rs:216
↓ 3 callersMethodlines_for
Returns a clone of the live (possibly unsaved) lines for a URI.
src/indexer/scope.rs:97
↓ 3 callersFunctionlines_of
(src: &str)
src/indexer/infer/args_tests.rs:261
↓ 3 callersFunctionloan_reducer_src
Mirrors the real structure: flow.lazyLoadProductBottomSheet( state = state(), reloadAction = { reloadAction(...) }, map = { mapSheet(it) },
src/indexer_tests.rs:952
↓ 3 callersFunctionmake_result
(uri_str: &str, pkg: &str, _sym_name: &str, content: &str)
src/indexer_tests.rs:1586
↓ 3 callersMethodnamed_arg_label
(self, bytes: &[u8])
src/indexer/node_ext.rs:175
↓ 3 callersFunctionnavigation_receiver_node
(node: Node<'_>)
src/semantic_tokens/helpers.rs:361
↓ 3 callersMethodneeds_import
(&self, fqn: &str, is_same_file: bool)
src/resolver/complete.rs:499
↓ 3 callersFunctionpackage_of_fqn
(fqn: &str)
src/resolver/complete.rs:557
↓ 3 callersFunctionparam_names_from_sig
Extract parameter names from a flattened signature string like `"name: String, age: Int"` or `"@Ann vararg items: T"`. Skips `this` (extension receiv
src/features/completion.rs:416
↓ 3 callersFunctionparse_jar_meta
Return (group, artifact, version) parsed from the Gradle cache path, or None.
contrib/extract-sources.py:71
↓ 3 callersFunctionparse_kotlin_scope
(src: &str)
src/indexer/scope_tests.rs:673
↓ 3 callersFunctionprune_deleted_jars
Drop entries whose JAR no longer exists on disk. Returns true if anything was removed. Keeps cross-workspace sharing intact: live JARs in `~/.gradle
src/indexer/sources_jar_cache.rs:105
↓ 3 callersFunctionpush_import
Push a single import entry, computing `local_name` from alias or last path segment.
src/parser.rs:1630
↓ 3 callersFunctionresolve_call_params
Resolve function params with receiver awareness: if the call has a dot-receiver (e.g. `factory.create(...)`), resolve the receiver's type and look up
src/indexer/infer/receiver.rs:439
↓ 3 callersFunctionresolve_callee_chain
Resolve the callee navigation chain left-to-right, returning the type of the expression before the final method call, and the final method name. For
src/indexer/infer/chain.rs:217
↓ 3 callersFunctionresolve_chain_receiver
( indexer: &Indexer, chain: &str, from_uri: &Url, )
src/resolver/complete.rs:780
↓ 3 callersFunctionresolve_dotted_receiver_type
Iteratively resolve the type of a dot-separated receiver chain. e.g. "MaterialTheme.colorScheme" -> "ColorScheme"
src/resolver/complete.rs:721
↓ 3 callersFunctionresolve_hover_markdown
( workspace: &W, word: &str, qualifier: Option<&str>, uri: &Url, line: u32, )
src/features/hover.rs:139
↓ 3 callersFunctionresolve_max_files
Pure: resolve the maximum number of files to eagerly index. Reads `KMP_LSP_MAX_FILES` from the environment on each call. Returns `default` when the v
src/indexer/scan.rs:108
↓ 3 callersFunctionresolve_scope
Determine `(parent_class, declared_pkg)` scope for a `findReferences` request. Uppercase symbols are narrowed via import analysis or declaration-site
src/features/references.rs:105
↓ 3 callersFunctionresolve_via_imports
Step 2 — explicit single-symbol imports. Handles three cases: a. Top-level class: `import com.example.Foo` b. Nested class: `import com.exampl
src/resolver/resolve.rs:666
↓ 3 callersFunctionresponse_files
(resp: Option<GotoDefinitionResponse>)
src/features/implementation_tests.rs:31
↓ 3 callersFunctionrun_fd
Run `fd` (or `fdfind` on Debian/Ubuntu) with `args` and return stdout on success. Returns `None` when neither binary is available or both fail.
src/indexer/discover.rs:72
↓ 3 callersFunctionsample_entries_fresh
Sample up to `limit` entries from `chunk` and verify each file's mtime and size match.
src/indexer/cache.rs:475
↓ 3 callersFunctionscan_gradle_jars_split
Walk the Gradle module cache and collect all JAR/AAR paths, separated by kind. Deduplication: for each `(group, artifact)` pair keep only the highest
src/indexer/jar.rs:43
↓ 3 callersMethodspawn
(cmd: &mut Command)
src/sidecar.rs:128
↓ 3 callersFunctionsplit_first_word
Split `"word rest of string"` → `("word", "rest of string")`.
src/indexer/doc.rs:381
↓ 3 callersFunctionsplit_prefix
Splits `before` into the trailing identifier fragment (`prefix`) and everything that precedes it (`before_prefix`).
src/features/completion.rs:454
↓ 3 callersMethodstate_stream
(&self)
src/workspace/actor.rs:77
↓ 3 callersFunctionstrip_completion_snippets
(items: &mut [CompletionItem], snippets: bool)
src/resolver/complete.rs:868
↓ 3 callersFunctionstrip_generics
Strip generic parameters and nullability markers from a type string. `"List<Product>"` → `"List"`, `"String?"` → `"String"`, `"Outer.Inner<T>"` → `"O
src/resolver/infer.rs:79
↓ 3 callersFunctionsymbol_kw
(kind: SymbolKind)
src/indexer/lookup.rs:180
↓ 3 callersFunctionsymbols_from_uri_as_completions
Collect all symbols from a file URI as completion items. Results are cached in `indexer.completion_cache` so the file is only parsed (or converted) on
src/resolver/complete.rs:1720
↓ 3 callersFunctiontrigger_parameter_hints
LSP `Command` that tells the editor to open the parameter-hints (signature help) popup immediately after a function completion is accepted. Mirrors VS
src/resolver/complete.rs:1853
↓ 3 callersFunctiontry_load_library_manifest
Load the library cache manifest. Returns `(chunks_dir, chunk_count)` or `None` if the manifest is absent, corrupt, or version-mismatched. Deliberate
src/indexer/cache.rs:374
↓ 3 callersFunctiontwo_file_idx
(a_path: &str, a_src: &str, b_path: &str, b_src: &str)
src/indexer_tests.rs:1763
↓ 3 callersFunctiontxt_uri
()
src/indexer/live_tree_tests.rs:12
↓ 3 callersFunctionuri
(path: &str)
src/features/signature_help_tests.rs:9
↓ 3 callersMethoduser_type_name
(self, bytes: &[u8])
src/indexer/node_ext.rs:406
↓ 3 callersMethodvalue_arg_position
(self)
src/indexer/node_ext.rs:195
↓ 3 callersMethodvisitEnd
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:26
↓ 3 callersFunctionvisit_tree
(node: Node<'_>, f: &mut impl FnMut(Node<'_>))
src/semantic_tokens/helpers.rs:262
↓ 3 callersFunctionwarm_discover_files
Discover source files using a warm-start optimisation when a cache exists. Cold start** (no cache): full `fd`/walkdir scan — same as `find_source_fil
src/indexer/discover.rs:265
↓ 3 callersFunctionwith_parsed_tree
( content: &str, parser_key: &'static LocalKey<RefCell<Parser>>, visit: impl FnOnce(&mut FileData,
src/parser.rs:126
↓ 3 callersMethodword_regexp
(mut self)
src/rg.rs:435
↓ 3 callersFunctionwrite_fixture
(dir: &Path, rel_path: &str, content: &str)
tests/cli_refs.rs:8
↓ 3 callersFunctionwrite_manifest
(dir: &std::path::Path, chunk_count: u32)
src/indexer/cache_tests.rs:310
↓ 2 callersFunction_apply_text_edits
Apply LSP TextEdits to a file. Edits are applied in reverse order (bottom-to-top) to preserve line/column positions of earlier edits. LSP po
contrib/kotlin-cli.py:1073
↓ 2 callersFunction_apply_workspace_edit
Apply (or preview) a WorkspaceEdit. Returns number of files affected.
contrib/kotlin-cli.py:1102
↓ 2 callersFunction_document_symbols
Return DocumentSymbol list for a file, with _uri injected for tracking.
contrib/kotlin-cli.py:772
↓ 2 callersFunction_expand_vars
Substitute ${VAR_NAME} placeholders using variables dict. Unknown placeholders are left as-is so the caller can see what's missing.
contrib/kotlin-cli.py:217
← previousnext →401–500 of 3,021, ranked by callers