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
find_symbol_at
( file_data: &crate::types::FileData, location: &Location, )
src/features/fill_when.rs:594
↓ 1 callers
Function
find_symbol_entry
Find SymbolEntry in FileData by range or name.
src/indexer/resolution.rs:358
↓ 1 callers
Function
find_this_context_text
Text-scan fallback for [`find_this_context_in_lines`] when no live CST is available.
src/indexer/infer/it_this.rs:148
↓ 1 callers
Function
find_type_implementations
BFS over the subtype graph to find all classes that implement/extend `type_name`. rg fallback when the index is cold (no subtypes indexed yet).
src/features/implementation.rs:43
↓ 1 callers
Function
find_type_in_constructor
Search class constructor parameters
src/features/fill_when.rs:366
↓ 1 callers
Function
find_type_in_parameters
Search function parameters for `<var_name>: Type`
src/features/fill_when.rs:344
↓ 1 callers
Function
find_type_in_sibling_declarations
Search sibling property_declarations for `val <var_name> : Type`
src/features/fill_when.rs:327
↓ 1 callers
Method
first_value_argument_text
(self, bytes: &[u8])
src/indexer/node_ext.rs:315
↓ 1 callers
Method
flush_into
Bulk-extend the Indexer's DashMaps — one lock acquisition per unique key. All fields are consumed here. Adding a new index map to `LibraryBatch` will
src/indexer/apply.rs:426
↓ 1 callers
Method
folding_range_impl
( &self, params: FoldingRangeParams, )
src/backend/handlers.rs:111
↓ 1 callers
Method
folding_ranges_for
(&self, uri: &Url)
src/features/traits_impl.rs:190
↓ 1 callers
Function
format_param_section
(params: &[(String, String)])
src/indexer/doc.rs:255
↓ 1 callers
Function
format_param_tag
(name: &str, body: &str)
src/indexer/doc.rs:268
↓ 1 callers
Function
format_raw_tok
(tok: &crate::semantic_tokens::RawToken, lines: &[&str])
src/cli/tokens.rs:141
↓ 1 callers
Function
format_see_section
(see: &[String])
src/indexer/doc.rs:303
↓ 1 callers
Function
format_throws_section
(throws: &[(String, String)])
src/indexer/doc.rs:281
↓ 1 callers
Function
format_throws_tag
(type_name: &str, body: &str)
src/indexer/doc.rs:294
↓ 1 callers
Function
fqns_for_name
Return all importable FQNs for a simple symbol name (e.g. "Composable").
src/resolver/resolve.rs:63
↓ 1 callers
Function
fun_body_expr_node
(src: &str)
src/indexer/infer/expr_type_tests.rs:12
↓ 1 callers
Function
fun_trailing_lambda_it_type
Look up a function by name, find its last parameter's type, and return the first input type if that parameter is a lambda/function type. Example: `fu
src/indexer/infer/receiver.rs:341
↓ 1 callers
Function
fun_trailing_lambda_this_type
Like `fun_trailing_lambda_it_type` but for `this`: only returns a type when the trailing lambda parameter is a **receiver lambda** `T.() -> R`.
src/indexer/infer/receiver.rs:353
↓ 1 callers
Method
goto_implementation_impl
( &self, params: GotoDefinitionParams, )
src/backend/nav.rs:23
↓ 1 callers
Function
goto_super_method
( index: &(impl SymbolIndex + DocumentAccess + SearchAccess), uri: &Url, row: u32, method: &st
src/features/definition.rs:109
↓ 1 callers
Function
gradle_cache_jars
()
src/sidecar_ipc_tests.rs:8
↓ 1 callers
Function
gradle_cache_root
(gradle_home: Option<&Path>)
src/indexer/jar.rs:31
↓ 1 callers
Function
gradle_home
()
contrib/extract-sources.py:45
↓ 1 callers
Method
handle_change_root
(&self, root: std::path::PathBuf)
src/workspace/actor.rs:171
↓ 1 callers
Method
handle_file_changed
( &mut self, uri: Url, changes: Vec<tower_lsp::lsp_types::TextDocumentContentChangeEve
src/workspace/actor.rs:183
↓ 1 callers
Method
handle_file_closed
( &self, file_change_handler: &mut FileChangeHandler, uri: Url, )
src/workspace/document_handler.rs:106
↓ 1 callers
Method
handle_file_closed
(&mut self, uri: Url)
src/workspace/actor.rs:197
↓ 1 callers
Method
handle_file_deleted
(&mut self, uri: Url)
src/workspace/actor.rs:205
↓ 1 callers
Method
handle_file_opened
(&mut self, uri: Url, language_id: String, content: String)
src/workspace/actor.rs:175
↓ 1 callers
Method
handle_file_saved
(&self, uri: Url)
src/workspace/actor.rs:193
↓ 1 callers
Method
handle_initialize
(&self, config: Config, completion_tx: Option<oneshot::Sender<()>>)
src/workspace/actor.rs:161
↓ 1 callers
Method
handle_initialize
( &self, config: Config, completion_tx: Option<oneshot::Sender<()>>, )
src/workspace/scan_handler.rs:70
↓ 1 callers
Method
handle_reindex
(&self)
src/workspace/actor.rs:167
↓ 1 callers
Function
has_declaration_keyword
(trimmed: &str)
src/indexer/infer/sig.rs:398
↓ 1 callers
Function
has_dot_after_first_call
Returns `true` when the first function call in `rhs` (opening paren at `paren_pos`) is followed by a dot at depth 0, indicating a method chain. `"get
src/resolver/infer_lines.rs:366
↓ 1 callers
Function
has_fun_interface_descendant
(root: &Node, bytes: &[u8])
src/parser.rs:968
↓ 1 callers
Function
has_reference_line
(locations: &[Location], uri: &Url, line_number: u32)
src/features/references.rs:397
↓ 1 callers
Function
has_trailing_lambda
Check if the call has a trailing lambda (lambda as last argument outside parens). CST patterns: - `foo { }` → call_suffix → annotated_lambda → lambda_
src/features/call_arg_diagnostics.rs:280
↓ 1 callers
Function
has_type_definition
(indexer: &Indexer, name: &str)
src/semantic_tokens/resolve.rs:416
↓ 1 callers
Function
has_unclosed_paren
Returns true when `s` contains more `(` than `)` — indicating the lambda sits inside a function's argument list (inline lambda, not trailing).
src/indexer/infer/receiver.rs:64
↓ 1 callers
Function
hint_expr_body_return_type
Add an inlay hint showing the inferred return type of a single-expression function. Only emits a hint when: - the function body uses `=` (not a block
src/inlay_hints.rs:376
↓ 1 callers
Function
hint_lambda
Emit `: Type` hints for named parameters in a `lambda_literal`. Structure confirmed from tree-sitter-kotlin probe: `lambda_literal { lambda_parameter
src/inlay_hints.rs:189
↓ 1 callers
Function
hint_property
Emit `: Type` hint for `val name = expr` / `var name = expr` without explicit type.
src/inlay_hints.rs:265
↓ 1 callers
Function
hover_at
Return a hover string for `file:line:col` using the pre-built index. Line and col are 1-based (human-friendly) and converted internally to 0-based.
src/cli/hover.rs:13
↓ 1 callers
Method
hover_impl
(&self, params: HoverParams)
src/backend/handlers.rs:8
↓ 1 callers
Function
identifier_type
( node: Node<'_>, doc: &LiveDoc, starts: &[usize], indexer: &Indexer, uri: &Url, )
src/semantic_tokens/resolve.rs:285
↓ 1 callers
Function
if_is_smart_cast
Check if cursor is inside an `if (var is Type)` or `else if (var is Type)` block.
src/resolver/infer_lines.rs:688
↓ 1 callers
Function
import_insertion_line
Find the line number after which to insert a new import statement. Returns the 0-based line index of the *new* import line (the line we'll insert befo
src/resolver/import_edit.rs:30
↓ 1 callers
Method
import_insertion_line
(&self)
src/lines_ext.rs:92
↓ 1 callers
Function
import_package_absent_from_source_roots
Returns `true` when `name` has an explicit non-star import in `uri` AND that import's package directory is absent from every source root. When both c
src/resolver/resolve.rs:1003
↓ 1 callers
Function
indexAar
java-sidecar/src/main/kotlin/io/github/hessesian/jarindexer/JarIndexer.kt:34
↓ 1 callers
Method
index_jars
Send multiple JAR paths sequentially: write one request, flush, read one response, repeat. This never deadlocks because we alternate write/read on ea
src/sidecar.rs:177
↓ 1 callers
Method
index_source_paths
Index all configured `sourcePaths` additively — without clearing the workspace index. Files outside the workspace root are marked as library sources
src/indexer/apply.rs:638
↓ 1 callers
Method
index_workspace_prioritized
Prioritized indexing: parse `initial_paths` first (high-priority files such as the currently-open document and its supertypes), then continue with nor
src/indexer/scan.rs:725
↓ 1 callers
Function
indexed
(path: &str, src: &str)
src/inlay_hints_tests.rs:8
↓ 1 callers
Function
indexed
Convenience: create an Indexer and call `index_content` once.
src/indexer/apply_tests.rs:25
↓ 1 callers
Function
infer_call_expr_type
Resolve the type of a `call_expression` node by delegating to the chain resolution path used by hover and semantic tokens.
src/indexer/infer/expr_type.rs:89
↓ 1 callers
Function
infer_field_type_raw
Like `infer_field_type` but preserves generic parameters in the result. Returns `"MutableList<MbAccount>"` rather than `"MutableList"`, which is need
src/resolver/infer.rs:375
↓ 1 callers
Function
infer_if_expr_type
For `if (cond) <then> else <else>`: emit a type hint only when both branches infer to the same type. No hint is emitted for bare `if` without `else`,
src/indexer/infer/expr_type.rs:113
↓ 1 callers
Function
infer_prefix_expr_type
`!expr` → `Boolean`; other prefix operators (`-`, `+`) are arithmetic and not inferable without knowing the operand type.
src/indexer/infer/expr_type.rs:100
↓ 1 callers
Function
infer_range_expr_type
`a..b` or `a..<b`: infer `IntRange` only when both operands are integer literals. Any other operand type requires the compiler.
src/indexer/infer/expr_type.rs:138
↓ 1 callers
Function
infer_real_literal
`3.14f` / `3.14F` → `Float`; `3.14` → `Double`.
src/indexer/infer/expr_type.rs:78
↓ 1 callers
Function
infer_type_from_init
Infer a display type name from the CST initializer node. Returns `Some(name)` when the type can be determined from the node kind or from the index (c
src/inlay_hints.rs:361
↓ 1 callers
Function
infer_type_in_lines_raw
Like `infer_type_in_lines` but preserves generic parameters in the result. `val items: List<Product>` → `"List<Product>"` `val state: StateFlow<UiSta
src/resolver/infer_lines.rs:165
↓ 1 callers
Method
infer_variable_type
(&self, var_name: &str, uri: &Url)
src/resolver/infer.rs:43
↓ 1 callers
Method
infer_variable_type_for
(&self, name: &str, uri: &Url)
src/indexer/resolution.rs:713
↓ 1 callers
Function
infer_variable_type_raw_impl
( indexer: &Indexer, var_name: &str, uri: &Url, depth: u8, )
src/resolver/infer.rs:230
↓ 1 callers
Function
init_logging
Initialise logging. If `KMP_LSP_LOG_FILE` is set, or `/tmp/kmp-lsp.log` exists, log at DEBUG level to that file (useful for diagnosing editors that c
src/main.rs:145
↓ 1 callers
Method
initialize
(self)
contrib/kotlin-cli.py:173
↓ 1 callers
Method
inlay_hint_impl
( &self, params: InlayHintParams, )
src/backend/handlers.rs:68
↓ 1 callers
Function
innermost_open_paren
Returns the byte index of the innermost unmatched `(` in `text`.
src/indexer/infer/cst_cursor.rs:153
↓ 1 callers
Function
install_panic_hook
()
src/main.rs:79
↓ 1 callers
Method
into_option
Convert to `Option<String>`, treating both `None`-like variants as `None`. Use at call sites that do not distinguish the two failure modes (e.g. the
src/indexer/infer/cst_lambda.rs:58
↓ 1 callers
Method
invalidate_completion_cache
Bust the completion cache so the next request recomputes with the latest index state. Called when JAR indexing finishes to surface new symbols (e.g. `
src/indexer.rs:831
↓ 1 callers
Function
is_annotation_reference
(node: Node<'_>)
src/semantic_tokens/helpers.rs:310
↓ 1 callers
Function
is_chained_call_assignment_error
Returns true if this ERROR node is an orphaned assignment RHS from a chained-call setter. Tree-sitter-kotlin 0.3 fails to parse `a.method().property
src/parser.rs:669
↓ 1 callers
Function
is_class_like
(kind: SymbolKind)
src/indexer/infer/sig.rs:668
↓ 1 callers
Function
is_container_kind
Classify container-like symbol kinds (class, interface, object, enum).
src/parser.rs:514
↓ 1 callers
Function
is_declaration_occurrence_at
Returns `true` if the match at byte offset `col` in `content` is the name token of a declaration (immediately preceded by a declaration keyword such a
src/rg.rs:722
↓ 1 callers
Function
is_deprecated_annotation
(node: Node<'_>, src: &[u8])
src/semantic_tokens/helpers.rs:116
↓ 1 callers
Function
is_file_annotation_comma_error
Returns true if this ERROR node is a lone `,` inside a `@file:[...]` annotation. tree-sitter-kotlin 0.3 uses `repeat1` without comma separators inside
src/parser.rs:710
↓ 1 callers
Function
is_import_reachable
Check whether symbols from `def_uri` are reachable from `caller_uri`. A definition file is reachable when any of the following hold: - Both files sha
src/indexer/infer/sig.rs:78
↓ 1 callers
Function
is_in_string_context
Heuristic: returns true if the `{` at end of the line is inside a string literal (odd number of unescaped `"` before it).
src/features/on_type_formatting.rs:166
↓ 1 callers
Method
is_indexing_in_progress
(&self)
src/features/traits_impl.rs:141
↓ 1 callers
Function
is_inside_any_lambda
(call_node: &tree_sitter::Node)
src/features/call_arg_diagnostics.rs:255
↓ 1 callers
Function
is_inside_lambda_parameters
(node: Node<'_>)
src/semantic_tokens/helpers.rs:296
↓ 1 callers
Function
is_inside_same_named_function
Return `true` if `node` is nested inside a `function_declaration` whose name matches `fn_name`. This catches the "delegation override" pattern where
src/features/call_arg_diagnostics.rs:380
↓ 1 callers
Function
is_inside_scope_function_lambda
Check if the call is inside a lambda that belongs to a scope function (apply, run, with, let, also). Unqualified calls inside these lambdas have an im
src/features/call_arg_diagnostics.rs:212
↓ 1 callers
Function
is_kotlin_keyword_node
(node: Node<'_>)
src/semantic_tokens/resolve.rs:76
↓ 1 callers
Function
is_lambda_param
Check whether `recv` looks like an explicitly-named lambda parameter in the current editing context (same line or recent lines). Used to avoid trigge
src/indexer/infer/it_this.rs:333
↓ 1 callers
Method
is_loading
True while JAR symbols have not yet been requested. Once indexing starts (`InProgress`), symbols are progressively available and hover/completion shou
src/indexer/jar_phase.rs:34
↓ 1 callers
Function
is_modifier_line
Returns `true` for lines that contain only Kotlin/Java modifiers/keywords (e.g. `override`, `public final`) — we skip these when hunting for docs.
src/indexer/doc.rs:104
↓ 1 callers
Function
is_named_argument_label
(node: Node<'_>)
src/semantic_tokens/helpers.rs:286
↓ 1 callers
Function
is_navigation_receiver
(node: Node<'_>)
src/semantic_tokens/helpers.rs:351
↓ 1 callers
Function
is_nullable_function_type_error
Returns true if this ERROR node is a false positive caused by tree-sitter-kotlin not supporting nullable extension function types like `T?.() -> R`. T
src/parser.rs:737
↓ 1 callers
Method
is_outside_pinned_workspace_root
( &self, workspace_pinned: bool, opened_file_path: Option<&Path>, )
src/workspace/document_handler.rs:341
↓ 1 callers
Method
is_override_declaration
Returns true if `line` looks like an override declaration of `method_name` in this language. - **Kotlin**: requires `override` and `fun` on the same
src/types.rs:62
← previous
next →
1,001–1,100 of 3,021, ranked by callers