Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hessesian/kmp-lsp
/ functions
Functions
3,021 in github.com/Hessesian/kmp-lsp
⨍
Functions
3,021
◇
Types & classes
179
↓ 2 callers
Function
_parse_template_settings
Parse file.template.settings.xml → {template_filename: file-name_pattern}. The file-name pattern is the IDEA-style relative path (without .kt ext
contrib/kotlin-cli.py:236
↓ 2 callers
Function
_pascal_to_snake
GoldConversion → gold_conversion
contrib/kotlin-cli.py:211
↓ 2 callers
Method
_send
(self, msg: dict)
contrib/kotlin-cli.py:150
↓ 2 callers
Function
aborted_scan_result
(root: &Path)
src/indexer/scan.rs:255
↓ 2 callers
Function
already_imported
True if `fqn` is already usable in the file without an additional import: - exact non-alias import: `import pkg.Name` where local_name == last segment
src/resolver/import_edit.rs:11
↓ 2 callers
Function
analyze_when
Analyze a single when expression for missing branches.
src/features/fill_when.rs:38
↓ 2 callers
Function
any_local_var_decl_in_scope
Return `true` when the file index (within `scope`) contains a `val`/`var` declaration of `name` that is itself a local variable. Complements `cst_cur
src/features/rename.rs:39
↓ 2 callers
Function
appendFunctionParams
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:205
↓ 2 callers
Function
appendRegularFunctionType
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:192
↓ 2 callers
Method
apply_contributions
Primitive: drain a [`FileContributions`] into the DashMaps. Deduplicates before inserting (same behaviour as before).
src/indexer/apply.rs:896
↓ 2 callers
Function
apply_sources_contributions
Apply a batch of sources-JAR contributions to the indexer. Removes stale per-file index entries for every URI in `contributions`, inserts new contrib
src/indexer/jar.rs:429
↓ 2 callers
Function
apply_subst
Apply type-parameter substitution to a signature string.
src/indexer/resolution.rs:337
↓ 2 callers
Function
branches_fit_members
(existing_branches: &[String], members: &[WhenMember])
src/features/fill_when.rs:582
↓ 2 callers
Function
build_bare_completions
(snippets: bool)
src/stdlib.rs:539
↓ 2 callers
Function
build_completion_items
Build completion items for a file, from index or on-demand disk parse. Always builds with snippet fields set; callers strip them if the client doesn't
src/resolver/complete.rs:1736
↓ 2 callers
Method
build_item_from_entry
( &self, entry: &crate::types::ExtensionEntry, is_same_file: bool, )
src/resolver/complete.rs:437
↓ 2 callers
Function
build_signature_help
( fn_name: &str, params_text: &str, active_param: u32, )
src/features/signature_help.rs:46
↓ 2 callers
Function
build_type_param_subst_impl
Build type-parameter substitution for cross-file lookup.
src/indexer/resolution.rs:480
↓ 2 callers
Method
bump_generation
Bump the generation without changing the path. Use when a new scan request supersedes an in-flight scan — the root has not changed but any running ta
src/indexer/workspace_root.rs:58
↓ 2 callers
Function
byte_col_to_utf16
Convert a tree-sitter byte-offset column to a UTF-16 column index.
src/features/code_actions.rs:556
↓ 2 callers
Function
cache_exists
(root: &Path)
src/cli/run.rs:148
↓ 2 callers
Function
cache_file_path
Cache file location. `cache_dir` overrides the default `~/.cache/kmp-lsp/` base — used by tests for isolation.
src/indexer/sources_jar_cache.rs:113
↓ 2 callers
Function
cache_path
()
src/indexer/jar_cache.rs:50
↓ 2 callers
Function
check_lambda_in_children
(node: &tree_sitter::Node)
src/features/call_arg_diagnostics.rs:314
↓ 2 callers
Function
collect_all_fun_params_texts
Like `collect_fun_params_text` but returns ALL params texts for every symbol named `fn_name` in the file (a file may have multiple same-named nested c
src/indexer/infer/sig.rs:287
↓ 2 callers
Function
collect_nav_segments
Collect navigation segments from a navigation_expression tree, left to right. The structure is nested: `(a.b).c` is nav_expr(nav_expr(a, .b), .c)
src/indexer/infer/chain.rs:34
↓ 2 callers
Function
collect_user_type_segments
(node: Node<'_>, bytes: &[u8], segments: &mut Vec<String>)
src/indexer/node_ext.rs:629
↓ 2 callers
Function
complete_dot_expr
( indexer: &Indexer, expr: &ReceiverExpr, from_uri: &Url, snippets: bool, cursor_line: Opt
src/resolver/complete.rs:603
↓ 2 callers
Function
complete_super
(indexer: &Indexer, from_uri: &Url, snippets: bool)
src/resolver/complete.rs:561
↓ 2 callers
Function
completion_item_for_nested_symbol
Build a `CompletionItem` for a symbol found inside a nested type body. Functions/methods get a snippet `name($1)`; all other kinds are plain-text. Th
src/resolver/complete.rs:913
↓ 2 callers
Method
completions
( &self, uri: &Url, position: Position, snippets: bool, )
src/features/traits_impl.rs:132
↓ 2 callers
Function
config
(root: &Path)
src/workspace/config_tests.rs:10
↓ 2 callers
Function
contains_deprecated_annotation
(node: Node<'_>, src: &[u8])
src/semantic_tokens/helpers.rs:123
↓ 2 callers
Function
contains_lambda
Recursively check if a node contains a lambda_literal (up to 3 levels deep).
src/features/call_arg_diagnostics.rs:334
↓ 2 callers
Function
contributions_from_data
Pure: compute what a pre-parsed file contributes to each index map. Accepts an `Arc<FileData>` to avoid a deep clone on cache-hit paths. Call [`Indexe
src/indexer/apply.rs:143
↓ 2 callers
Method
covers
Does this import make `symbol_name` accessible when defined in `def_pkg`? Handles: - Star import: `import com.example.*` covers any symbol in package
src/types.rs:247
↓ 2 callers
Function
cst_call_info_skip
(pos: Position, indexer: &Indexer, uri: &Url, skip: u32)
src/indexer/infer/cst_cursor.rs:31
↓ 2 callers
Function
cst_hints
Preorder-walk the tree and emit inlay hints for nodes within `range`.
src/inlay_hints.rs:80
↓ 2 callers
Function
cst_lambda_param_type_via_call
CST structural fallback for lambda params: given a `lambda_literal` node, walk up the call tree to find the enclosing function call and the lambda's p
src/indexer/infer/cst_lambda.rs:697
↓ 2 callers
Function
cst_named_lambda_param_type
( pos: CursorPos, param_name: &str, doc: &crate::indexer::live_tree::LiveDoc, idx: &Indexer,
src/indexer/infer/cst_lambda.rs:290
↓ 2 callers
Function
cst_with_receiver_ctx
( call_expr: tree_sitter::Node<'_>, bytes: &[u8], deps: &impl InferDeps, uri: &Url, )
src/indexer/infer/cst_lambda.rs:320
↓ 2 callers
Method
current_root
(&self)
src/workspace/document_handler.rs:361
↓ 2 callers
Method
declared_parent_class_of
(&self, name: &str, preferred_uri: &Url)
src/features/traits_impl.rs:99
↓ 2 callers
Function
decode_modifiers
(bits: u32)
src/cli/tokens.rs:222
↓ 2 callers
Function
diagnostic_range
Build the diagnostic range — prefer the `value_arguments` span, fall back to the callee name span within the call expression.
src/features/call_arg_diagnostics.rs:400
↓ 2 callers
Function
drain_sidecar
( mut child: std::process::Child, mut stdin: std::io::BufWriter<std::process::ChildStdin>,
src/sidecar_ipc_tests.rs:62
↓ 2 callers
Function
dump_tree
Parse `file` and print the tree-sitter CST to stdout.
src/cli/tokens.rs:252
↓ 2 callers
Function
effective_rg_root
Return the best search root for rg/fd fallbacks given: - `workspace_root` — the globally configured root (may point to a different project) - `open_fi
src/rg.rs:257
↓ 2 callers
Function
emit_kotlin_param_uses
Emit PARAMETER tokens for every use of a function parameter within its body.
src/semantic_tokens/params.rs:19
↓ 2 callers
Method
end
(&self, _: &NumberOrString, _: &str)
src/indexer/scan.rs:73
↓ 2 callers
Method
ensure_bare_names_fresh
Lazy gate: rebuild bare_name_cache only if definitions were modified since the last rebuild. Call this before reading `bare_name_cache` on hot paths.
src/indexer/apply.rs:985
↓ 2 callers
Method
ensure_indexed_on_demand
(&self, uri: &str)
src/indexer/resolution.rs:717
↓ 2 callers
Function
entriesFromPackage
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:332
↓ 2 callers
Method
execute_scan
Spawn the tokio task for a single scan. Bails out early if the scan has been superseded (generation mismatch) before or after indexing.
src/workspace/scan_handler.rs:237
↓ 2 callers
Function
exit_if_empty
(results: &[CliResult], json: bool, message: &str)
src/cli/run.rs:734
↓ 2 callers
Function
expand_selection_to_call
Expand `range` (a single-line selection) to cover the enclosing `call_expression` node in the CST. Parses the file with tree-sitter, finds the leaf n
src/features/code_actions.rs:480
↓ 2 callers
Function
extensionReceiverRendered
* Render the extension receiver type of a function, substituting any class/fun type params. * Returns empty string for non-extension functions. * e.
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:273
↓ 2 callers
Function
extensionReceiverRenderedForProp
* Render the extension receiver type of a property, e.g. * `val ViewModel.viewModelScope: CoroutineScope` → `"ViewModel"`. * Returns empty string fo
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:283
↓ 2 callers
Function
extension_is_in_scope
Returns true when an extension function declared in `entry_package` is accessible from the calling file, either via same-package visibility or an expl
src/resolver/infer.rs:686
↓ 2 callers
Function
extension_symbol_fqn
(package_name: &str, symbol_name: &str)
src/resolver/complete.rs:550
↓ 2 callers
Function
extract_class_decl_name
If `line` is a class/interface/object/sealed declaration, return the type name.
src/indexer/scope.rs:500
↓ 2 callers
Function
extract_detail_from_lines
Line-based detail extraction (fallback when CST node is unavailable). Uses depth-aware parsing to avoid truncating at `=` inside default parameter val
src/parser.rs:1487
↓ 2 callers
Function
extract_first_arg
Extract the first argument from a call expression string. `"with(user)"` → `Some("user")` `"fn()"` → `None`
src/indexer/infer/args.rs:348
↓ 2 callers
Function
extract_if_is_type
Extract type from `if (var_name is Type)` or `else if (var_name is Type)`
src/resolver/infer_lines.rs:784
↓ 2 callers
Function
extract_is_type_from_when_branch
Extract `Type` from a when-branch line like `is Event.OnClick ->` or `is Event.OnClick ->`
src/resolver/infer_lines.rs:731
↓ 2 callers
Function
extract_param_type
Extract type from a `parameter` or `class_parameter` node. CST: parameter → simple_identifier + ":" + user_type | nullable_type
src/features/fill_when.rs:421
↓ 2 callers
Function
extract_user_type_from_nullable
Extract user_type from a nullable_type node (nullable_type → user_type + "?").
src/features/fill_when.rs:440
↓ 2 callers
Method
file_extensions
(&self)
src/language/java.rs:16
↓ 2 callers
Method
file_symbols
All symbols declared in the given file (for `documentSymbol`).
src/indexer/lookup.rs:45
↓ 2 callers
Method
file_symbols
(&self, uri: &Url)
src/features/traits_impl.rs:43
↓ 2 callers
Function
finalize_resolution
Stage 2 — QUALIFY + RETURN. Takes the typed `LambdaParamResolution` from stage 1: - `Concrete` types are returned directly. - `GenericParam` types ar
src/indexer/infer/cst_lambda.rs:556
↓ 2 callers
Function
find_annotation_ident
(annotation_node: Node<'_>)
src/semantic_tokens/helpers.rs:16
↓ 2 callers
Function
find_body_equals_pos
Find position of ` = ` that is at paren depth 0 (expression body assignment). Ignores `=` inside parentheses (default parameter values).
src/parser.rs:1539
↓ 2 callers
Function
find_brace_at_depth_zero
Find `{` at paren/bracket depth 0 (body opener, not inside generics/params).
src/parser.rs:1524
↓ 2 callers
Function
find_extension_property_type
Look up the declared type of an extension property named `prop_name` that is available on any class declared in the file at `uri`. This is the fallba
src/resolver/infer.rs:449
↓ 2 callers
Function
find_in_star_imports
Returns the first Location found by scanning star-import packages.
src/resolver/resolve.rs:231
↓ 2 callers
Function
find_local_declaration
Returns the location of `name:` in the current file. This catches function parameters that lack `val`/`var` and are therefore absent from the symbol
src/resolver/find.rs:122
↓ 2 callers
Method
find_method_return_type_for_type
( &self, class_name: &str, method_name: &str, )
src/indexer.rs:320
↓ 2 callers
Function
find_name_in_uri_after_line
Like `find_name_in_uri` but prefers declarations at or after `after_line`. Used when we already know the qualifier class lives at `after_line` — we w
src/resolver/find.rs:47
↓ 2 callers
Function
find_outer_arrow
Find the byte offset of ` -> ` at parenthesis depth zero. Handles nested function types such as `((Foo) -> Bar) -> Baz`, where a naive `str::find(" -
src/resolver/infer_lines.rs:882
↓ 2 callers
Function
find_package_insert_line
Find the line number where `package <pkg>` should be inserted. In Kotlin, `@file:` annotations **must** precede the package declaration. This functio
src/features/code_actions.rs:149
↓ 2 callers
Function
find_rhs_str
Extract the right-hand side expression of `var_name = <expr>` from `line`. Handles flexible whitespace (`var_name=expr` and `var_name = expr`), whole
src/resolver/infer_lines.rs:232
↓ 2 callers
Function
find_source_files_unconstrained
Discover source files under `root` without hardcoded directory exclusions. Used for explicit `sourcePaths` entries — the user chose the directory del
src/indexer/discover.rs:151
↓ 2 callers
Function
find_symbol_in_package
Scan all indexed files in `pkg` for the first symbol named `name`.
src/resolver/resolve.rs:785
↓ 2 callers
Function
first_concrete_type_arg_str
Extract the first type argument from `type_name` and return it only if it is a concrete class name (i.e. not a generic type parameter like `T`, `R`, `
src/indexer/infer/type_subst.rs:168
↓ 2 callers
Function
first_identifier
(node: &Node, bytes: &[u8])
src/parser.rs:566
↓ 2 callers
Function
flush_doc_tag
(current_tag: Option<&str>, current_body: &[String], parsed: &mut ParsedDocTags)
src/indexer/doc.rs:208
↓ 2 callers
Function
format_contextual_hover
Format a contextual hover for an `it` / named lambda parameter: ```text ```kotlin val it: AccountType ``` --- <optional type-symbol hover> ``` `ty
src/backend/format.rs:57
↓ 2 callers
Function
format_doc_tags
Convert KDoc/Javadoc tags to readable Markdown. - `@param name desc` → `**Parameters**\n- \`name\` desc` - `@return desc` → `**Returns**\n de
src/indexer/doc.rs:175
↓ 2 callers
Function
format_symbol_hover
Format a standard symbol hover: optional KDoc block + fenced code block. ```text /** KDoc comment */ --- ```kotlin fun foo(x: Int): String ``` ```
src/backend/format.rs:21
↓ 2 callers
Function
forward_resolve_segments
Forward-resolve a chain of segments to get (receiver_type_before_last, last_method_name).
src/indexer/infer/chain.rs:97
↓ 2 callers
Function
full_tokens
( indexer: &Indexer, uri: &Url, doc: &LiveDoc, language: Language, )
src/semantic_tokens/mod.rs:243
↓ 2 callers
Function
functionTypeParamNames
Extract the list of type parameter names declared on a function, e.g. `["T", "R"]`. */
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/KotlinClassIndexer.kt:265
↓ 2 callers
Method
glob_set
Clone the Arc-wrapped glob set for use in `filter_entry` closures.
src/rg.rs:159
↓ 2 callers
Method
goto_definition_impl
( &self, params: GotoDefinitionParams, )
src/backend/nav.rs:8
↓ 2 callers
Function
goto_super_class
( index: &(impl SymbolIndex + DocumentAccess + SearchAccess), uri: &Url, row: u32, )
src/features/definition.rs:91
↓ 2 callers
Function
has_any_marker
(directory: &Path, markers: &[&str])
src/workspace/document_handler.rs:370
↓ 2 callers
Function
has_reference_start
(locations: &[Location], candidate: &Location)
src/features/references.rs:427
↓ 2 callers
Method
has_trailing_lambda
Returns true if the last parameter of this function is a lambda, meaning it should be called with trailing `{ }` syntax instead of `()`.
src/stdlib.rs:21
↓ 2 callers
Function
has_wrong_qualifier_at_col
Returns `true` if the `.<name>` occurrence whose name starts at **byte** offset `name_byte_col` has a qualifier that doesn't match `expected_parent`.
src/rg.rs:827
← previous
next →
501–600 of 3,021, ranked by callers