Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JRMurr/tix
/ functions
Functions
2,574 in github.com/JRMurr/tix
⨍
Functions
2,574
◇
Types & classes
237
↓ 7 callers
Function
stale_completion_at_markers
Analyze stale source, then run the unified completion() with a fresh parse of different source. Simulates the pending_text scenario: the analysis is f
crates/lsp/src/completion.rs:2356
↓ 7 callers
Function
union
Helper: create an OutputTy::Union with arena-interned members.
crates/lang_check/src/collect.rs:1712
↓ 6 callers
Function
canonicalize_ty_structural
Canonicalize a `Ty<TyId>` into an arena-interned `TyRef`. Compound types (Lambda, List, AttrSet, etc.) require their child `TyId`s to be canonicalize
crates/lang_check/src/diagnostic.rs:425
↓ 6 callers
Function
collect_type_expr
(mut pairs: Pairs<Rule>)
crates/comment_parser/src/collect.rs:73
↓ 6 callers
Function
collect_union_all_fields
Collect attrset fields from ALL union variants (not just common ones). Unlike `collect_attrset_fields` which intersects union members (only keeping f
crates/lsp/src/ty_nav.rs:303
↓ 6 callers
Function
content_modified_error
LSP error indicating the document has been modified and the request should be retried. Editors like VS Code and Neovim handle this gracefully by autom
crates/lsp/src/server.rs:1472
↓ 6 callers
Method
context_vals
(&self)
crates/cli/src/gen_stubs.rs:518
↓ 6 callers
Function
cross_file_rename
Helper: set up a multi-file project, analyze all files, then rename at a marker in the first file. Returns the RenameResult.
crates/lsp/src/rename.rs:404
↓ 6 callers
Function
edit_count
(edit: &WorkspaceEdit)
crates/lsp/src/rename.rs:324
↓ 6 callers
Function
edit_for_title
Extract the workspace edit from the first code action with the given title.
crates/lsp/src/code_actions.rs:830
↓ 6 callers
Method
field_doc
Look up the doc comment for a field within a type alias. `alias` is the type alias name (e.g. "NixosConfig"). `path` is the dotted path to the field (
crates/lang_check/src/aliases.rs:59
↓ 6 callers
Function
filter_ignored_diagnostics
Filter out diagnostics on lines suppressed by `# tix-ignore`. For each diagnostic, resolves its source location to a 0-indexed line number and remove
crates/lang_check/src/diagnostic.rs:696
↓ 6 callers
Function
find_typeof_targets
For exported type aliases that contain `typeof varname`, return the set of binding names whose types need to be inferred.
crates/lang_check/src/lib.rs:54
↓ 6 callers
Function
gather_ignore_lines
Collect 0-indexed line numbers whose diagnostics should be suppressed. For each `# tix-ignore` comment on line N, the *next* line (N+1) is added to t
crates/lang_ast/src/comment.rs:156
↓ 6 callers
Function
goto_type_definition
Try to find the type definition locations for the symbol at the given cursor position. Returns LSP `Location`s pointing to the `.tix` file(s) where t
crates/lsp/src/type_def.rs:24
↓ 6 callers
Method
hash
(&self, state: &mut H)
crates/lang_ty/src/arena.rs:820
↓ 6 callers
Function
hint_labels
(hints: &[InlayHint])
crates/lsp/src/inlay_hint.rs:134
↓ 6 callers
Method
is_var
Check if a TyId refers to a type variable (not a concrete type).
crates/lang_check/src/type_table.rs:191
↓ 6 callers
Function
make_diag_ty
Wrap a `TyRef` and the arena it lives in as a self-contained `DiagTy`.
crates/lang_check/src/diagnostic.rs:500
↓ 6 callers
Function
make_lambda
(arena: &mut TypeArena, param: TyRef, body: TyRef)
crates/lsp/src/ty_nav.rs:507
↓ 6 callers
Function
name_at_position
Find the NameId under the cursor. Works on both definition sites (where a name is bound) and reference sites (where a name is used). When the cursor
crates/lsp/src/references.rs:24
↓ 6 callers
Function
negate_output_ty
Negate an OutputTy, applying normalization rules: 1. `¬(¬A)` → `A` (double negation) 2. `¬(A ∨ B ∨ …)` → `¬A ∧ ¬B
crates/lang_check/src/collect.rs:787
↓ 6 callers
Function
null
()
crates/lang_check/src/tests.rs:131
↓ 6 callers
Method
open_abs
Open a file by absolute path (for use with `from_existing` workspaces).
crates/lsp/tests/common/mod.rs:179
↓ 6 callers
Function
oty_string
()
crates/cli/src/main.rs:1644
↓ 6 callers
Function
owned_ty_to_parsed_ty
Convert an `OwnedTy` (OutputTy in a TypeArena) to a `ParsedTy`. This conversion is lossy: `Named` wrappers are discarded, `Neg` types become `Top`, a
crates/lang_check/src/lib.rs:119
↓ 6 callers
Function
parse_inline_type_alias
Try to parse a doc comment string as an inline type alias declaration. Returns `Some((name, body))` if the string matches `type Name = ...;`. Returns
crates/comment_parser/src/lib.rs:240
↓ 6 callers
Function
pick_field
Pick a field name from a module path in the expected fields map. Falls back to "id" if the path doesn't exist.
crates/lsp/src/pbt_stubs.rs:221
↓ 6 callers
Function
ranges_overlap
Check if two LSP ranges overlap (share at least one character position).
crates/lsp/src/code_actions.rs:783
↓ 6 callers
Method
record_import_deps
Record the import dependencies for a file via the coordinator.
crates/lsp/src/state.rs:801
↓ 6 callers
Method
references
Find references at a given line/character position.
crates/lsp/tests/common/mod.rs:397
↓ 6 callers
Function
run_batch_warmup
Run batch warmup for a set of files using layered parallel inference. Results are returned for the caller to merge into LSP state. Results are return
crates/lsp/src/warmup.rs:53
↓ 6 callers
Method
send_notification
Low-level: send a JSON-RPC notification (no response expected).
crates/lsp/tests/common/mod.rs:170
↓ 6 callers
Method
should_bail
Check whether inference should bail out due to memory pressure. Caches a positive result in `bailed_out` so subsequent checks are O(1).
crates/lang_check/src/lib.rs:1033
↓ 6 callers
Function
simplify_union_neg_intersection
Simplify `(A | B) & ~T` by removing union members that are subtypes of `T`. Distributes the negation constraint into the union: (A | B) & ~C = (A &
crates/lang_check/src/collect.rs:1290
↓ 6 callers
Function
string
()
crates/lang_check/src/tests.rs:122
↓ 6 callers
Function
try_nixpkgs_src
Attempt to resolve the pinned nixpkgs path via `nix eval --raw .#nixpkgs-src`. Returns `None` if nix is not installed or the flake eval fails, allowi
crates/lsp/tests/e2e_nixpkgs.rs:46
↓ 6 callers
Method
wait_for_diagnostics_abs
Wait for `publishDiagnostics` for a file given by absolute path.
crates/lsp/tests/common/mod.rs:690
↓ 6 callers
Method
walk_child_exprs
(&self, mut f: impl FnMut(ExprId))
crates/lang_ast/src/lib.rs:529
↓ 5 callers
Method
any_inference
Get inference even if stale (for graceful degradation).
crates/lsp/src/state.rs:77
↓ 5 callers
Method
any_node
Generic tree traversal: returns true if any node matches `pred`.
crates/lang_ty/src/arbitrary.rs:47
↓ 5 callers
Function
canonicalize_standalone
Canonicalize a TyId into an OutputTy using only a TypeStorage reference. This captures the type's canonical form at the current moment — before use-si
crates/lang_check/src/collect.rs:733
↓ 5 callers
Function
capitalize
Capitalize the first character of a string (e.g. "lib" -> "Lib").
crates/lang_check/src/aliases.rs:781
↓ 5 callers
Method
code
Stable error code for this diagnostic kind.
crates/lang_check/src/diagnostic.rs:169
↓ 5 callers
Function
collect_type_decls
(pairs: Pairs<Rule>)
crates/comment_parser/src/collect.rs:26
↓ 5 callers
Function
config_with_includes
(patterns: Vec<&str>)
crates/lsp/src/project_config.rs:464
↓ 5 callers
Method
demand_type_exports
Demand resolved type exports for a file. Returns the fully resolved exports where `TypeOf(name)` has been substituted with the actual inferred type vi
crates/lang_check/src/coordinator.rs:273
↓ 5 callers
Function
detect_fn
Find the expression to pass to detect_conditional_fn. Navigates through Lambda wrappers to find the inner expression.
crates/lang_ast/src/narrow.rs:1236
↓ 5 callers
Function
diff_snapshots
Compare two snapshots and produce a diff report.
crates/repo_check/src/diff.rs:25
↓ 5 callers
Function
discriminant_matches
Check if two types have the same top-level constructor (discriminant).
crates/lang_check/src/constrain.rs:880
↓ 5 callers
Method
expand_bounds
Expand bounds of a variable into a union (positive) or intersection (negative). Shared logic for both polarities: 1. Canonicalize each bound at the g
crates/lang_check/src/collect.rs:390
↓ 5 callers
Function
expect_val_decl
(decls: &[TixDeclaration], idx: usize)
crates/comment_parser/src/tix_collect.rs:608
↓ 5 callers
Function
expr_as_local_name
If the expression is a Reference that resolves to a local Definition, return its NameId. Returns None for builtins, with-exprs, or unresolved names —
crates/lang_ast/src/narrow.rs:468
↓ 5 callers
Function
extract_type_exports
Extract type alias declarations from a Module's doc comments. Returns a map of alias name → ParsedTy body. These are the types that other files can im
crates/lang_check/src/lib.rs:42
↓ 5 callers
Function
fields_to_completion_items
Build completion items from attrset fields, optionally enriching each item with doc comments from the DocIndex. `doc_ctx` is `Some((docs, alias_name,
crates/lsp/src/completion.rs:1421
↓ 5 callers
Method
find_concrete
Walk lower bounds of a variable to find a concrete type, if one exists. Delegates to `resolve_to_concrete_id` to avoid duplicating the traversal and c
crates/lang_check/src/type_table.rs:404
↓ 5 callers
Function
flatten_union
(arena: &TypeArena, members: Vec<OutputTy>)
crates/lang_check/src/collect.rs:1425
↓ 5 callers
Method
flip
(self)
crates/lang_check/src/lib.rs:367
↓ 5 callers
Function
get_inferred_root_with_context
( src: &str, context_args: HashMap<SmolStr, ParsedTy>, )
crates/lang_check/src/tests.rs:3641
↓ 5 callers
Function
get_name_type_with_aliases
Look up the type of a named binding by text name, with aliases loaded. When the same name has multiple NameIds (e.g. definition + inherit reference),
crates/lang_check/src/tests.rs:933
↓ 5 callers
Function
get_symbols
(src: &str)
crates/lsp/src/document_symbol.rs:149
↓ 5 callers
Method
goto_def
Go-to-definition at a given line/character position.
crates/lsp/tests/common/mod.rs:373
↓ 5 callers
Method
infer_with_narrowing
Infer a branch body with type narrowing overrides applied. If `narrow_info` contains narrowings for the relevant branch, creates branch-local type va
crates/lang_check/src/infer_expr.rs:795
↓ 5 callers
Function
int
()
crates/lang_check/src/tests.rs:119
↓ 5 callers
Method
is_definition
(self)
crates/lang_ast/src/lib.rs:177
↓ 5 callers
Function
lower_src
Helper: parse Nix source and lower to Module.
crates/lang_ast/src/lower.rs:686
↓ 5 callers
Method
name_for_node
(&self, node: AstPtr)
crates/lang_ast/src/lib.rs:306
↓ 5 callers
Function
name_of_ident
(ident: &ast::Ident)
crates/lang_ast/src/ast_utils.rs:14
↓ 5 callers
Function
next_fixture_id
()
crates/lsp/src/completion.rs:3321
↓ 5 callers
Function
nixos_context_args
()
crates/lang_check/src/tests.rs:3668
↓ 5 callers
Function
parse_comment_text
(source: &str)
crates/comment_parser/src/lib.rs:126
↓ 5 callers
Method
paths
Get the list of stub file/directory paths.
crates/lsp/src/project_config.rs:76
↓ 5 callers
Function
refs_at_marker
(src: &str, marker: u32, include_declaration: bool)
crates/lsp/src/references.rs:261
↓ 5 callers
Method
refs_to
All reference ExprIds that resolve to the given NameId.
crates/lang_ast/src/nameres.rs:334
↓ 5 callers
Function
rename
Rename a name at the given position to `new_name`, producing a workspace edit. When `state` and `current_path` are provided, also scans other open fi
crates/lsp/src/rename.rs:64
↓ 5 callers
Function
scan_type_import_paths
Scan a Module for file paths referenced in type-level annotations (`import("path").TypeName` and `typeof import("path")`). Returns the set of relative
crates/lang_check/src/imports.rs:583
↓ 5 callers
Method
set_source_root
Register a source root for resolving `@source` annotations. e.g. `set_source_root("nixpkgs", "/nix/store/...-source")`.
crates/lang_check/src/aliases.rs:324
↓ 5 callers
Method
set_var_level
Update the level of a variable. Used to lift pre-allocated vars to the SCC group level so they are correctly generalizable.
crates/lang_check/src/storage.rs:156
↓ 5 callers
Method
source_roots
Source roots for resolving `@source` annotations in `DeclLocation`s.
crates/lang_check/src/aliases.rs:329
↓ 5 callers
Function
tix_cli
()
crates/cli/tests/env_stubs.rs:20
↓ 5 callers
Function
to_lsp_diagnostics
Convert collected TixDiagnostics into LSP diagnostics. Each diagnostic is mapped to the source range of its associated expression, falling back to the
crates/lsp/src/diagnostics.rs:23
↓ 5 callers
Method
with_file_base_dir
Set the base directory for resolving relative paths in type imports.
crates/lang_check/src/lib.rs:1008
↓ 5 callers
Function
write_flake_lock
Helper to write a minimal flake.lock with the given root inputs. Each input is (input_name, node_key, owner, repo).
crates/cli/src/init.rs:1546
↓ 4 callers
Method
alloc_name
( &mut self, text: SmolStr, kind: NameKind, ptr: AstPtr, doc_comments:
crates/lang_ast/src/lower.rs:89
↓ 4 callers
Function
are_types_disjoint
Check whether two concrete types are provably disjoint (their intersection is uninhabited). Delegates to the shared `are_shapes_disjoint` logic in `la
crates/lang_check/src/constrain.rs:889
↓ 4 callers
Method
at_depth_limit
(&self, depth: usize)
crates/lang_ty/src/arena.rs:1068
↓ 4 callers
Function
build_name_to_import
Build a name→import-path mapping from grouped definitions and import targets. For each let-binding or attrset field whose value expression is a resol
crates/lsp/src/state.rs:838
↓ 4 callers
Function
build_registry
Build a TypeAliasRegistry from CLI flags, loading stubs and validating. This consolidates the repeated registry setup across run_check, run_gen_stub,
crates/cli/src/main.rs:1566
↓ 4 callers
Function
cache_dir
Return the cache directory path (`~/.cache/tix/store-stubs/`). Returns `None` if the platform has no standard cache dir.
crates/lsp/src/store_stubs.rs:401
↓ 4 callers
Method
child
Create a RootTy for a child TyRef (shares the same arena).
crates/lang_check/src/tests.rs:54
↓ 4 callers
Function
clear_entries
Delete entries of the given `kind` from `dir`. Returns the number removed. Entries of the opposite kind are skipped. Missing `dir` is a no-op (returns
crates/lsp/src/store_stubs.rs:417
↓ 4 callers
Method
contains_union_or_intersection
Returns true if this type or any child contains a Union or Intersection.
crates/lang_ty/src/arena.rs:266
↓ 4 callers
Method
contains_union_or_intersection
Delegate to the arena's contains_union_or_intersection.
crates/lang_check/src/tests.rs:76
↓ 4 callers
Function
detect_flake_inputs
Parse `flake.lock` in the project root and detect nixpkgs/home-manager inputs. Returns `None` if there is no `flake.lock` or it doesn't contain a nix
crates/cli/src/init.rs:790
↓ 4 callers
Function
digest_systems_config
Produce a deterministic string fingerprint of the custom-systems config. Systems are emitted in sorted-name order so hash stability doesn't depend on
crates/lsp/src/store_stubs.rs:513
↓ 4 callers
Function
document_links
(analysis: &FileSnapshot, root: &rnix::Root)
crates/lsp/src/document_link.rs:14
↓ 4 callers
Function
dummy_classification
()
crates/cli/src/init.rs:1778
↓ 4 callers
Method
emit_warning
Record a warning at the current expression.
crates/lang_check/src/lib.rs:1747
↓ 4 callers
Function
err_at_pair
Helper to build a CollectError with span information from a pest Pair.
crates/comment_parser/src/tix_collect.rs:107
↓ 4 callers
Method
expect_concrete
Get the concrete type for a TyId, panicking if it's a variable.
crates/lang_check/src/type_table.rs:196
← previous
next →
201–300 of 2,574, ranked by callers