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
↓ 1 callers
Function
cmd_extract_interface
Generate a Kotlin interface skeleton from a class's public members. Signatures come from DocumentSymbol.detail (the truncated declaration stored
contrib/kotlin-cli.py:972
↓ 1 callers
Function
cmd_find_dead_code
Find symbols with zero external references. NOTE: results are candidates — reflection, XML manifests, DI wiring, and framework entry-points m
contrib/kotlin-cli.py:887
↓ 1 callers
Function
cmd_find_declaration
(client: LspClient, name: str, as_json: bool)
contrib/kotlin-cli.py:811
↓ 1 callers
Function
cmd_find_implementors
List all classes/objects that implement an interface or extend a class.
contrib/kotlin-cli.py:945
↓ 1 callers
Function
cmd_find_references
(client: LspClient, name: str, as_json: bool)
contrib/kotlin-cli.py:838
↓ 1 callers
Function
cmd_generate_template
Generate IDEA file templates from an existing class and its feature siblings. Finds all workspace symbols that share the feature identifier prefi
contrib/kotlin-cli.py:567
↓ 1 callers
Function
cmd_hover
(client: LspClient, file: str, line: int, col: int, as_json: bool)
contrib/kotlin-cli.py:864
↓ 1 callers
Function
cmd_list_symbols
(client: LspClient, query: str, as_json: bool)
contrib/kotlin-cli.py:827
↓ 1 callers
Function
cmd_list_templates
List IDEA file templates available in the project's .idea/fileTemplates.
contrib/kotlin-cli.py:414
↓ 1 callers
Function
cmd_rename
Rename a symbol across the entire workspace using LSP textDocument/rename.
contrib/kotlin-cli.py:1134
↓ 1 callers
Function
cmd_scaffold_feature
Expand an IDEA file template family and write the resulting Kotlin files. File paths are derived from the file-name patterns in .idea/file.te
contrib/kotlin-cli.py:462
↓ 1 callers
Method
code_action_impl
( &self, params: CodeActionParams, )
src/backend/actions.rs:47
↓ 1 callers
Method
code_fence
(self)
src/types.rs:47
↓ 1 callers
Function
col_after_last_dot
Return 1-based UTF-16 column just after the last `.` in `text`, or `None` if there is no dot.
src/cli/run.rs:126
↓ 1 callers
Function
col_after_last_nonws
Return 1-based UTF-16 column just after the last non-whitespace character, or `None` if the line is blank.
src/cli/run.rs:137
↓ 1 callers
Function
collect_all_jars
(dir: &Path, out: &mut Vec<PathBuf>)
src/indexer/jar.rs:111
↓ 1 callers
Function
collect_call_nodes
( node: tree_sitter::Node, bytes: &[u8], indexer: &Indexer, uri: &Url, diagnostics: &mut V
src/features/call_arg_diagnostics.rs:63
↓ 1 callers
Function
collect_cli_source_paths
Collect source paths for CLI indexing: workspace.json + default extract dir. When `workspace.json` declares no JetBrains module source roots, Gradle/
src/cli/run.rs:199
↓ 1 callers
Method
collect_cross_package
(&mut self)
src/resolver/complete.rs:1410
↓ 1 callers
Function
collect_cst_lambda_params
(node: tree_sitter::Node<'_>, bytes: &[u8])
src/indexer/scope.rs:584
↓ 1 callers
Method
collect_entry
Populate one cache entry into the batch. `path` is the filesystem path used to determine whether the file is outside `workspace_root` (library) or in
src/indexer/apply.rs:319
↓ 1 callers
Function
collect_enum_members
( file_data: &crate::types::FileData, enum_symbol: &crate::types::SymbolEntry, )
src/features/fill_when.rs:612
↓ 1 callers
Function
collect_existing_branches
(when_node: &tree_sitter::Node, source: &[u8])
src/features/fill_when.rs:712
↓ 1 callers
Function
collect_files
Expand file/directory paths to individual source files. Directories are walked recursively; only `.kt`, `.kts`, `.java`, `.swift` are included.
src/cli/check.rs:93
↓ 1 callers
Function
collect_folds
(node: tree_sitter::Node, out: &mut Vec<FoldingRange>)
src/indexer/cst_folding.rs:47
↓ 1 callers
Function
collect_fun_param_names
(fn_node: Node<'_>, bytes: &[u8])
src/semantic_tokens/params.rs:27
↓ 1 callers
Function
collect_index_symbols
Returns `(matching_symbols, index_populated)`. `index_populated` is `true` when at least one file has been indexed, regardless of whether any symbol
src/features/workspace_symbols.rs:52
↓ 1 callers
Function
collect_inherited_dot_completion_items
( indexer: &Indexer, context: &DotCompletionContext, from_uri: &Url, snippets: bool, curso
src/resolver/complete.rs:823
↓ 1 callers
Function
collect_lambda_scopes
( lines: &[String], cursor_line: usize, cursor_col: usize, index: &Indexer, uri: &Url,
src/features/completion_context.rs:202
↓ 1 callers
Function
collect_library_entries
Collect all library files into a flat vec of (path, cache-entry) pairs. Strips runtime-unneeded fields to minimise serialised size.
src/indexer/cache.rs:537
↓ 1 callers
Method
collect_local_file
(&mut self)
src/resolver/complete.rs:1255
↓ 1 callers
Function
collect_nav_segments_recursive
( node: tree_sitter::Node<'a>, bytes: &[u8], segments: &mut Vec<NavSegment<'a>>, )
src/indexer/infer/chain.rs:43
↓ 1 callers
Method
collect_param_names
(&mut self, after_brace: &str)
src/indexer/scope.rs:662
↓ 1 callers
Function
collect_reference_locations
( indexer: &Arc<Indexer>, uri: &Url, rename_target: &RenameCursorSymbol, )
src/features/rename.rs:335
↓ 1 callers
Method
collect_same_package
(&mut self)
src/resolver/complete.rs:1285
↓ 1 callers
Function
collect_sealed_members
( indexer: &Indexer, sealed_name: &str, parent_uri: &Url, parent_range: &Range, sealed_cac
src/features/fill_when.rs:633
↓ 1 callers
Method
collect_star_imported_functions
Wave 2: functions and properties from star-imported packages (`import pkg.*`). Fills the gap between project-source symbols (wave 1) and the cross-pa
src/resolver/complete.rs:1336
↓ 1 callers
Method
collect_stdlib
(&mut self)
src/resolver/complete.rs:1526
↓ 1 callers
Function
collect_syntax_errors
(root: Node, bytes: &[u8])
src/parser.rs:985
↓ 1 callers
Method
collect_this_extensions
Collect bare-word extension members available on `this` — i.e., extension functions/properties whose receiver is a supertype of the enclosing class.
src/resolver/complete.rs:1560
↓ 1 callers
Function
collect_tokens_phases
Like `collect_tokens` but returns each phase's tokens separately for debug.
src/semantic_tokens/mod.rs:140
↓ 1 callers
Function
collect_when_nodes
( node: tree_sitter::Node, source: &[u8], indexer: &Indexer, uri: &Url, diagnostics: &mut
src/features/fill_when.rs:187
↓ 1 callers
Function
comment_continuation_prefix
Returns the comment prefix to continue onto the next line, if the current (trimmed) line is inside a comment that should be continued.
src/features/on_type_formatting.rs:142
↓ 1 callers
Function
comment_newline
( lines: &[String], cursor_line: usize, indent: &str, prefix: &str, )
src/features/on_type_formatting.rs:119
↓ 1 callers
Function
commit_library_manifest
Write the manifest (commit point). No manifest → cache invalid.
src/indexer/cache.rs:641
↓ 1 callers
Function
complete_lambda_dot
Run dot-completion for a lambda receiver (`it.`, `this.`, `this@label.`, or named param). Returns a type-hint placeholder item when the type is known
src/features/completion.rs:249
↓ 1 callers
Function
completion_cache_key
Build the cache key for a completion request. The key always omits the prefix so that subsequent keystrokes (e.g. `l` → `la` → `lau`) hit the cache a
src/features/completion.rs:205
↓ 1 callers
Method
completion_impl
( &self, params: CompletionParams, )
src/backend/actions.rs:7
↓ 1 callers
Function
completions_at
Return completion labels for `file:line:col`. Line and col are 1-based (human-friendly) and converted internally to 0-based.
src/cli/complete.rs:12
↓ 1 callers
Function
compute_code_actions
Compute all applicable code actions for the cursor position / selection. `line_text` — text of the line at `range.start.line` `all_lines` — all lin
src/features/code_actions.rs:24
↓ 1 callers
Function
compute_completions
Compute completions at `position` in `uri`. Returns the LSP `CompletionResponse` (possibly incomplete), or `None` when there are no items and the wor
src/features/completion.rs:40
↓ 1 callers
Function
compute_document_highlight
Compute all highlight ranges for the symbol under `pos` in `uri`. Definition sites are marked as `Write`; all other occurrences as `Read`. Returns `N
src/features/highlight.rs:12
↓ 1 callers
Function
compute_document_symbols
Build the LSP document symbols response from a pre-fetched symbol list. Returns `None` when `symbols` is empty. On-demand indexing (disk fallback) an
src/features/symbols.rs:12
↓ 1 callers
Function
compute_folding_ranges
Compute folding ranges for `uri` from the live parse tree. Returns `None` when no live tree exists for the file (not yet opened/edited).
src/features/folding.rs:15
↓ 1 callers
Function
compute_hover
Compute a hover response for the cursor at `position` in `uri`. Returns `None` when no useful hover information is available (unknown symbol, cursor
src/features/hover.rs:23
↓ 1 callers
Function
compute_workspace_symbols
Search workspace symbols by `query`, returning up to `WORKSPACE_SYMBOL_CAP` results. Index-first: scans all indexed files for matching symbols. rg fa
src/features/workspace_symbols.rs:34
↓ 1 callers
Method
configure_initialized_workspace
( &self, params: &InitializeParams, workspace_root: &Path, workspace_pinned: b
src/backend/init.rs:82
↓ 1 callers
Function
contains_function_type
Returns `true` if `node` or any of its descendants has kind `function_type`.
src/parser.rs:1313
↓ 1 callers
Function
contextual_hover_type_name
( workspace: &W, receiver_type: &ReceiverType, uri: &Url, line: u32, )
src/features/hover.rs:63
↓ 1 callers
Function
contextual_lambda_hover
( workspace: &W, ctx: &CursorContext, uri: &Url, position: Position, )
src/features/hover.rs:41
↓ 1 callers
Function
contextual_receiver_hover
( workspace: &W, ctx: &CursorContext, uri: &Url, position: Position, )
src/features/hover.rs:76
↓ 1 callers
Function
copy_params_from_cst
Extract `copy()` parameter text from the CST primary constructor for `cls`. Walks `class_declaration → primary_constructor → class_parameter*`, joini
src/parser.rs:455
↓ 1 callers
Function
count_active_param
(value_arguments: &tree_sitter::Node, cursor_byte: usize)
src/indexer/infer/cst_cursor.rs:120
↓ 1 callers
Function
count_depth0_commas
Count commas at paren/bracket depth 0 in `text` (for active_param). Ignores commas inside string literals, nested parens, and brackets.
src/indexer/infer/cst_cursor.rs:206
↓ 1 callers
Function
count_provided_args
Count `value_argument` children inside a `value_arguments` node.
src/features/call_arg_diagnostics.rs:364
↓ 1 callers
Function
cross_file_type_subst
Apply cross-file type-parameter substitution to a signature string. Equivalent to the old `Indexer::type_subst_sig` but works over `IndexRead` so it
src/indexer/resolution.rs:261
↓ 1 callers
Method
cross_package_score
(&self, bare_name: &str)
src/resolver/complete.rs:1461
↓ 1 callers
Function
cst_before_open_text
Extract the text before the opening `(` of a call expression from the CST. Used to provide the `before_open` argument for `try_substitute_ext_fn_type_
src/indexer/infer/cst_lambda.rs:786
↓ 1 callers
Function
cst_call_arg_type
CST fast path: walk from cursor up to `value_argument`, then to `call_expression`, and look up the expected parameter type. Returns `None` when: - no
src/indexer/infer/args.rs:391
↓ 1 callers
Function
cst_call_info
(pos: Position, indexer: &Indexer, uri: &Url)
src/indexer/infer/cst_cursor.rs:20
↓ 1 callers
Function
cst_folding_ranges
Compute folding ranges for `uri` using the live parse tree. Returns `None` when no live tree exists for the file.
src/indexer/cst_folding.rs:33
↓ 1 callers
Function
cst_it_or_this_type
Walk ancestors from `start_node` looking for a `lambda_literal` without named params, then infer the `it`/`this` type for that lambda. This is the ex
src/indexer/infer/cst_lambda.rs:387
↓ 1 callers
Function
cst_lambda_call_param_type
( doc: &crate::indexer::live_tree::LiveDoc, lambda: &tree_sitter::Node<'_>, deps: &impl InferDeps,
src/indexer/infer/cst_lambda.rs:750
↓ 1 callers
Method
cst_lambda_params_at_col
( &self, uri: &Url, cursor_line: usize, cursor_col: usize, )
src/indexer/scope.rs:317
↓ 1 callers
Function
cst_outer_call_info
Like `cst_call_info` but skips the innermost `skip` call_expressions. `skip = 1` finds the call_expression *containing* the one the cursor is in. Stop
src/indexer/infer/cst_cursor.rs:27
↓ 1 callers
Function
cst_this_context
Walk ancestors from `start_node` and return a [`ThisContext`] that distinguishes resolved types, unresolvable receiver lambdas, and "not inside any re
src/indexer/infer/cst_lambda.rs:346
↓ 1 callers
Method
current_package_name
(&self)
src/resolver/complete.rs:1322
↓ 1 callers
Method
current_root
(&self)
src/workspace/scan_handler.rs:174
↓ 1 callers
Method
decl_prefix
(&self)
src/str_ext.rs:67
↓ 1 callers
Function
declaration_files_for
( index: &(impl SymbolIndex + ScopeQuery), name: &str, parent_class: Option<&str>, declared_pk
src/features/references.rs:183
↓ 1 callers
Function
declaring_class_of_method
If `word` is a function/method declared inside a class or interface at `uri`, returns the name of the declaring class. Returns `None` for top-level f
src/features/implementation.rs:109
↓ 1 callers
Function
decode_token_rows
( tokens: &[tower_lsp::lsp_types::SemanticToken], content: &str, )
src/cli/tokens.rs:170
↓ 1 callers
Function
dedup_completion_labels
(items: &mut Vec<CompletionItem>)
src/resolver/complete.rs:861
↓ 1 callers
Function
definition_files_for_rename
( indexer: &Indexer, name: &str, parent_class: Option<&str>, )
src/features/rename.rs:314
↓ 1 callers
Function
delta_encode
(sorted: Vec<RawToken>)
src/semantic_tokens/mod.rs:216
↓ 1 callers
Function
derive_var_name
Derive a short local variable name from an expression. `refreshDashboardInteractor.isRefreshing()` → `isRefreshing` `user.getName()` → `name` (strip
src/features/code_actions.rs:572
↓ 1 callers
Method
detail_is_override
Returns true if `detail` (the indexed declaration signature) indicates this symbol overrides a supertype member.
src/types.rs:77
↓ 1 callers
Function
detect_indent
Detect indentation for new branches. Uses the first existing `when_entry`'s column, or falls back to when_expression column + 4.
src/features/fill_when.rs:842
↓ 1 callers
Method
detect_workspace_root_switch
( &self, workspace_pinned: bool, opened_file_path: Option<&Path>, )
src/workspace/document_handler.rs:280
↓ 1 callers
Function
direct_dot_completion_items
( indexer: &Indexer, context: &DotCompletionContext, from_uri: &Url, cursor_line: Option<u32>,
src/resolver/complete.rs:806
↓ 1 callers
Function
direct_receiver_lambda_type
( receiver_var: &str, method: &str, deps: &impl InferDeps, uri: &Url, )
src/indexer/infer/receiver.rs:102
↓ 1 callers
Function
discover
Collect all resolved source roots for the given workspace root.
src/cli/sources.rs:23
↓ 1 callers
Function
discover_workspace_paths
( root: &Path, max: usize, cache: &Option<super::cache::IndexCache>, matcher_ref: Option<&Igno
src/indexer/scan.rs:295
↓ 1 callers
Method
document_highlight_impl
( &self, params: DocumentHighlightParams, )
src/backend/handlers.rs:124
↓ 1 callers
Method
document_symbol_impl
( &self, params: DocumentSymbolParams, )
src/backend/handlers.rs:51
↓ 1 callers
Function
dot_completions_for_lang
Language-aware dot completions. Returns Kotlin stdlib completions for Kotlin and `.kts` files, Swift-specific templates for `.swift` files, and nothin
src/stdlib_tail.rs:7
↓ 1 callers
Method
drain_and_apply_file_changes
TODO: rename — "and" in fn name signals missing struct (rule 6)
src/workspace/file_change_handler.rs:43
↓ 1 callers
Method
drain_file_changed_batch
( &mut self, changes: Vec<TextDocumentContentChangeEvent>, )
src/workspace/file_change_handler.rs:66
↓ 1 callers
Method
drop
(&mut self)
src/rg.rs:37
↓ 1 callers
Function
emit_param_refs_in_scope
( node: Node<'_>, params: &[String], shadowed: &[String], src: &Source<'_>, out: &mut Vec<
src/semantic_tokens/params.rs:62
← previous
next →
801–900 of 3,021, ranked by callers