MCPcopy Create free account

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

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

↓ 1 callersFunctionemit_param_uses_for_function
(fn_node: Node<'_>, src: &Source<'_>, out: &mut Vec<RawToken>)
src/semantic_tokens/params.rs:51
↓ 1 callersFunctionenclosing_class_name
Walk up from a node to find the enclosing class/object declaration name.
src/indexer/infer/chain.rs:333
↓ 1 callersFunctionenrich_at_location
Enrich a pre-resolved location without a locate step. Used when the caller already holds a `Location` (e.g., from `resolve_with_receiver_fallback`) a
src/indexer/resolution.rs:205
↓ 1 callersFunctionenrich_symbol
Run `rg_find_definition` for `symbol` and index any discovered files. Returns `true` if at least one new file was indexed.
src/indexer/enrich.rs:201
↓ 1 callersFunctionenrichment_loop
( indexer: Arc<Indexer>, client: tower_lsp::Client, mut rx: mpsc::UnboundedReceiver<EnrichRequest>
src/indexer/enrich.rs:121
↓ 1 callersFunctionentriesFromClass
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:288
↓ 1 callersFunctionentry_is_fresh
Check whether a cache entry still matches the JAR's current fingerprint.
src/indexer/sources_jar_cache.rs:96
↓ 1 callersFunctionenum_entry_reference_token
(node: Node<'_>, src: &[u8], indexer: &Indexer)
src/semantic_tokens/resolve.rs:508
↓ 1 callersMethodexecute_command_impl
( &self, params: ExecuteCommandParams, )
src/backend/commands.rs:11
↓ 1 callersFunctionexpand_selection_to_call_inner
( all_lines: &[String], range: Range, uri_path: &str, )
src/features/code_actions.rs:484
↓ 1 callersFunctionexplicit_import_path
(full_path: &str, local_name: &str)
src/indexer/infer/sig_tests.rs:644
↓ 1 callersFunctionextension_fn_completions
Scan the index for extension functions whose `extension_receiver` matches `receiver_type` or any of its supertypes, returning `CompletionItem`s with a
src/resolver/complete.rs:282
↓ 1 callersFunctionextension_member_token_type
( indexer: &Indexer, receiver_type: &str, member_name: &str, )
src/semantic_tokens/resolve.rs:465
↓ 1 callersMethodextractKdocFromSource
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/SourcesKdocReader.kt:71
↓ 1 callersFunctionextract_balanced_parens
Scan `lines[start..end]`, collecting the content between the outermost `(…)`. `{` encountered before any `(` on a keyword line signals a zero-arg cla
src/indexer/infer/sig.rs:414
↓ 1 callersFunctionextract_branch_name
Extract the type/value name from a when_condition. Handles: - `is Effect.ShowToast` → "ShowToast" - `Color.RED` → "RED" - `is ShowToast` → "ShowToast
src/features/fill_when.rs:742
↓ 1 callersFunctionextract_called_function_name
(chars: &[char], opening_paren_index: usize)
src/indexer/infer/args.rs:172
↓ 1 callersFunctionextract_callee
Extract `(fn_name, qualifier)` from the text immediately before a `(`. `" Foo.bar"` → `("bar", Some("Foo"))`, `" greet"` → `("greet", None)`.
src/indexer/infer/cst_cursor.rs:169
↓ 1 callersFunctionextract_canonical_signature
Extract canonical signature respecting caller intent. - `prefer_cached_detail = true` (completion): use `detail`-first — it's pre-computed, concise (
src/indexer/resolution.rs:316
↓ 1 callersFunctionextract_class_literal_arg_type
If the first value argument of `call` is a class literal (`X::class` or `X::class.java`), return the type name `X`. Handles Retrofit-style `create(Da
src/parser.rs:2041
↓ 1 callersFunctionextract_collection_element_type
Extract the element type from a known Kotlin/Java collection type. `"List<Product>"` → `Some("Product")` `"StateFlow<UiState>"` → `Some("UiState")`
src/resolver/infer_lines.rs:22
↓ 1 callersFunctionextract_container_from_import
Extract the container name from a nested class import path. E.g. `"cz.moneta.OverviewProductContract.Event"` → `Some("OverviewProductContract")` E.g.
src/resolver/resolve.rs:947
↓ 1 callersFunctionextract_extension_receiver_from_cst
Extract extension receiver name and full type from the CST. Walks the `function_declaration` children looking for a `user_type` node followed by `"."
src/parser.rs:1200
↓ 1 callersFunctionextract_extension_receiver_full
(detail: &str)
src/parser.rs:1121
↓ 1 callersFunctionextract_fn_type_return
Extract the return type from a Kotlin function-type string. `"(isRefresh: Boolean) -> Flow<ResultState<T>>"` → `"Flow<ResultState<T>>"` `"() -> Unit"
src/resolver/complete.rs:766
↓ 1 callersFunctionextract_fun_interfaces
Walk the parse tree and emit INTERFACE symbols for every `fun interface Foo` declaration. Tree-sitter produces two different misparsings depending on
src/parser.rs:858
↓ 1 callersMethodextract_fun_interfaces
(&mut self, root: tree_sitter::Node, bytes: &[u8])
src/parser.rs:2131
↓ 1 callersFunctionextract_jar
Extract .kt and .java files from jar into dest. Returns the number of files extracted (or that would be extracted).
contrib/extract-sources.py:127
↓ 1 callersFunctionextract_jar
Extract `.kt`/`.java` files from a JAR into `dest`. Returns the count of files extracted (or that would be, when `dry_run`).
src/cli/extract_sources.rs:130
↓ 1 callersMethodextract_java
(&mut self, node: &Node, bytes: &[u8])
src/parser.rs:2300
↓ 1 callersFunctionextract_last_type_from_user_type
(node: &tree_sitter::Node, source: &[u8])
src/features/fill_when.rs:779
↓ 1 callersFunctionextract_last_type_identifier
Extract the last type_identifier from a type_test node. e.g. `is Effect.ShowToast` → "ShowToast", `is ShowToast` → "ShowToast"
src/features/fill_when.rs:769
↓ 1 callersFunctionextract_lazy_type
If `delegate` is `by lazy { SingleConstructorCall() }`, return the constructor name. Only handles single-statement lambdas to avoid false positives.
src/parser.rs:2077
↓ 1 callersFunctionextract_named_arg_name
Detect the `IDENT =` named-arg pattern at the end of `before_brace`. Returns the identifier if found (must be lowercase-first, not `!=`, `<=`, `>=`).
src/indexer/infer/args.rs:216
↓ 1 callersFunctionextract_nav_last_ident
Extract the last identifier from a navigation_expression. e.g. `Color.RED` → "RED"
src/features/fill_when.rs:791
↓ 1 callersFunctionextract_package_and_imports
(root: tree_sitter::Node, bytes: &[u8], data: &mut FileData)
src/parser.rs:1578
↓ 1 callersMethodextract_package_and_imports
(&mut self, root: tree_sitter::Node, bytes: &[u8])
src/parser.rs:2128
↓ 1 callersFunctionextract_params_and_counts
Find the declaration node at `range` in the tree and extract the text inside its `function_value_parameters` or `formal_parameters` child (the content
src/parser.rs:1261
↓ 1 callersFunctionextract_property_type_from_detail
Parse the declared type from a property `SymbolEntry.detail` string. `"val ViewModel.viewModelScope: CoroutineScope get() = ..."` → `"CoroutineScope"
src/resolver/infer_lines.rs:394
↓ 1 callersFunctionextract_property_type_name
Extract the simple type name from a property detail string. E.g. `"private val foo: DashboardProductsReducer by lazy"` → `"DashboardProductsReducer"`
src/indexer/resolution.rs:288
↓ 1 callersMethodextract_rhs_types_kotlin
Walk all Kotlin `property_declaration` nodes and populate `rhs_types`, `method_call_rhs`, and `type_annotations` for property declarations. For **una
src/parser.rs:2232
↓ 1 callersFunctionextract_secondary_constructors
Walk the Kotlin AST and emit CONSTRUCTOR symbols for all `secondary_constructor` nodes, using the enclosing `class_declaration` name as the symbol nam
src/parser.rs:917
↓ 1 callersMethodextract_secondary_constructors
(&mut self, root: tree_sitter::Node, bytes: &[u8])
src/parser.rs:2134
↓ 1 callersFunctionextract_sources_jar_entries
Extract `.kt` / `.java` entries from a sources-JAR. Returns Vec of (synthetic_uri, content) pairs.
src/indexer/jar.rs:459
↓ 1 callersFunctionextract_subject_identifier
(subject_node: &tree_sitter::Node, source: &[u8])
src/features/fill_when.rs:467
↓ 1 callersMethodextract_supers_java
(&mut self, node: &Node, bytes: &[u8])
src/parser.rs:2159
↓ 1 callersMethodextract_supers_kotlin
(&mut self, root: Node, bytes: &[u8])
src/parser.rs:2141
↓ 1 callersMethodextract_supers_swift
(&mut self, root: Node, bytes: &[u8])
src/parser.rs:2186
↓ 1 callersFunctionextract_swift_imports
(root: tree_sitter::Node, bytes: &[u8], data: &mut FileData)
src/parser.rs:1714
↓ 1 callersMethodextract_swift_imports
(&mut self, root: tree_sitter::Node, bytes: &[u8])
src/parser.rs:2137
↓ 1 callersFunctionextract_type_arg_from_call_suffix
Extract the first type argument from `call_expression > call_suffix > type_arguments`.
src/parser.rs:2021
↓ 1 callersMethodextract_type_params_or_error_child
(self, bytes: &[u8])
src/indexer/node_ext.rs:483
↓ 1 callersFunctionextract_var_type_from_declaration
Extract type from `variable_declaration` inside a property_declaration. CST: property_declaration → variable_declaration → simple_identifier + ":" + u
src/features/fill_when.rs:390
↓ 1 callersFunctionfallback_local_binding_hover
( workspace: &W, ctx: &CursorContext, uri: &Url, line: u32, )
src/features/hover.rs:117
↓ 1 callersFunctionfast_find
(name: &str, root: &Path)
src/cli/run.rs:334
↓ 1 callersFunctionfast_refs
(name: &str, root: &Path)
src/cli/run.rs:342
↓ 1 callersFunctionfd_find_and_parse
Find and synchronously parse the file most likely to contain `symbol_name`. Search strategy (fastest-first): 1. fd `--full-path` regex derived from t
src/resolver/fd.rs:49
↓ 1 callersFunctionfd_search_by_full_path_pattern
fd `--full-path <regex>` — searches `root` for files whose absolute path matches `pattern`. Parses each hit and returns locations for `symbol_name`.
src/resolver/fd.rs:100
↓ 1 callersFunctionfd_search_file
( file_name: &str, symbol_name: &str, expected_pkg: Option<&str>, root: Option<&Path>, )
src/resolver/fd.rs:130
↓ 1 callersFunctionfield_owner_for_decl
Returns the declaring class of any class member (field or method) at `(uri, line)`. Unlike `outer_class_for_decl_site` (which only fires for doubly-n
src/features/references.rs:466
↓ 1 callersFunctionfield_scoped_reference_locations
Find references to a class member (field, property, or method) declared inside a class or interface. Scopes file discovery to files that mention the
src/rg.rs:1153
↓ 1 callersMethodfiles_importing_class
Returns absolute file paths of all indexed files that import `full_fqn` as a direct (non-nested, non-star) import. Used to build qualified-pass candi
src/features/traits.rs:106
↓ 1 callersMethodfiles_importing_nested
Returns absolute file paths of all indexed files that explicitly import `parent.name` or `parent.*` (star import of the parent). Used to discover can
src/features/traits.rs:70
↓ 1 callersMethodfiles_with_matches
(&self)
src/rg.rs:523
↓ 1 callersMethodfilter_file_strings
Remove file paths (absolute strings) that fall inside an ignored directory.
src/rg.rs:179
↓ 1 callersMethodfilter_paths
Remove `PathBuf` entries that fall inside an ignored directory.
src/rg.rs:191
↓ 1 callersMethodfinal_tokens
(&self)
src/semantic_tokens/mod.rs:129
↓ 1 callersFunctionfindServerBinary
(context)
contrib/vscode/extension.js:8
↓ 1 callersFunctionfind_as_call_arg_type
Type-directed inference for `it` or `this` used as a call argument. When `it`/`this` appears as an argument to a function — either as a **named arg (
src/indexer/infer/args.rs:36
↓ 1 callersFunctionfind_call_context
( lines: &[String], cursor_line: usize, cursor_column: usize, )
src/indexer/infer/args.rs:122
↓ 1 callersFunctionfind_class_type_params
(indexer: &Indexer, class_name: &str)
src/resolver/infer.rs:872
↓ 1 callersMethodfind_class_type_params
(&self, class_name: &str)
src/indexer/infer/deps.rs:294
↓ 1 callersMethodfind_contextual_type
Resolve an implicit lambda parameter (`it` / `this`) at a given line and column in the file. Returns the inferred type string if the position is insi
src/indexer/infer/deps.rs:128
↓ 1 callersMethodfind_declaration_range_after
(&self, name: &str, start_line: u32)
src/lines_ext.rs:112
↓ 1 callersFunctionfind_declaration_range_after_line
Like `find_declaration_range_in_lines` but only searches from `start_line`.
src/resolver/find.rs:97
↓ 1 callersFunctionfind_definition
Resolve goto-definition for the given cursor context. Handles `this`, `super`, `super.method`, contextual lambda receivers, direct qualified lookups,
src/features/definition.rs:130
↓ 1 callersFunctionfind_enclosing_call
(node: &tree_sitter::Node<'a>)
src/features/call_arg_diagnostics.rs:244
↓ 1 callersFunctionfind_enclosing_call_and_param
Walk parent nodes from a lambda to find the enclosing call_expression and the raw parameter type string for the lambda's position. Reuses the parent-
src/indexer/infer/cst_lambda.rs:643
↓ 1 callersFunctionfind_enclosing_when
( tree: &'a tree_sitter::Tree, _source: &[u8], cursor_byte: usize, )
src/features/fill_when.rs:273
↓ 1 callersFunctionfind_extension_fn_return_type_global
( indexer: &Indexer, receiver_base: &str, method_name: &str, )
src/resolver/infer.rs:784
↓ 1 callersFunctionfind_extension_fn_return_type_scoped
( indexer: &Indexer, receiver_base: &str, method_name: &str, from_uri: &Url, )
src/resolver/infer.rs:733
↓ 1 callersFunctionfind_fun_signature
Collect the full parameter-list text for a function named `fn_name`. Fast path only — no rg, no disk I/O, no index mutations. Used by signature help (
src/indexer/infer/sig.rs:179
↓ 1 callersFunctionfind_fun_signature_full_uncached
(fn_name: &str, idx: &Indexer, uri: &Url)
src/indexer/infer/sig.rs:244
↓ 1 callersFunctionfind_fun_signature_with_receiver
Signature lookup with optional dot-receiver context. When `receiver` is given (e.g. `"oneYearOlderInteractor"`), resolves its type, finds that type's
src/indexer/infer/sig.rs:568
↓ 1 callersFunctionfind_insert_position
Find the replace range for new branches. When the block is empty (no existing entries), replaces from line after `{` through `}` — cleaning up blank
src/features/fill_when.rs:860
↓ 1 callersFunctionfind_it_element_type_in_lines_impl
( lines: &[String], pos: CursorPos, idx: &Indexer, uri: &Url, kind: LambdaParamKind, )
src/indexer/infer/it_this.rs:365
↓ 1 callersFunctionfind_java
called only from #[cfg(not(test))] launch_jar path
src/sidecar.rs:228
↓ 1 callersFunctionfind_lambda_literal
Depth-first search for the first `lambda_literal` descendant.
src/parser.rs:2112
↓ 1 callersMethodfind_lambda_param_decl
Find the `{ name ->` declaration line for a lambda parameter in scope at `cursor_line`. Returns a `Location` pointing to the opening `{` of the enclo
src/indexer/scope.rs:348
↓ 1 callersFunctionfind_method_implementations
BFS the subtype graph of `declaring_class`, collecting `override fun method_name` locations from each implementor's FileData. rg fallback when the ind
src/features/implementation.rs:153
↓ 1 callersFunctionfind_method_params_in_class
Receiver-aware params lookup: find `method_name`'s parameter text inside the class `class_name`. Uses range containment to avoid picking a method fro
src/indexer/infer/sig.rs:619
↓ 1 callersMethodfind_method_params_text
(&self, class_name: &str, method_name: &str)
src/indexer/infer/deps.rs:309
↓ 1 callersFunctionfind_method_return_type_via_supertypes
Walk the class hierarchy to find an inherited method's return type. When `find_method_return_type(indexer, "BuildingSavingsReducer", "reduce")` retur
src/resolver/infer.rs:828
↓ 1 callersMethodfind_name_in_uri
(&self, name: &str, file_uri: &str)
src/resolver/find.rs:144
↓ 1 callersFunctionfind_named_call_arg_type
( lines: &[String], cursor_line: usize, cursor_column: usize, idx: &Indexer, uri: &Url,
src/indexer/infer/args.rs:69
↓ 1 callersFunctionfind_positional_call_arg_type
( lines: &[String], cursor_line: usize, cursor_column: usize, idx: &Indexer, uri: &Url, )
src/indexer/infer/args.rs:109
↓ 1 callersFunctionfind_rhs_node
Return the first named node that follows the `=` token in a `property_declaration`.
src/parser.rs:1923
↓ 1 callersFunctionfind_source_files_newer_than
Returns files created or modified within the last `elapsed_secs` seconds. Falls back to empty list if fd is unavailable (warm start still works via ca
src/indexer/discover.rs:197
↓ 1 callersFunctionfind_source_jars
Recursively find *-sources.jar files under search_root, excluding samples.
contrib/extract-sources.py:52
↓ 1 callersFunctionfind_source_jars
(root: &Path)
src/cli/extract_sources.rs:87
← previousnext →901–1,000 of 3,021, ranked by callers