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
↓ 1 callers
Method
push_field_source
(&mut self, field_name: SmolStr, source: SourceLocation)
crates/comment_parser/src/tix_collect.rs:261
↓ 1 callers
Method
read_file
Read a file's contents from the project directory.
crates/lsp/src/test_util.rs:122
↓ 1 callers
Method
record_decl_locations
Walk declarations and record `DeclLocation` entries for each `TypeAlias`, `Module` (using the capitalized alias name), and `ValDecl` (keyed by the val
crates/lang_check/src/aliases.rs:242
↓ 1 callers
Method
record_equiv
Record that `a` and `b` are considered equal by `constrain_equal`. Self-pairs are dropped (no-op for the DSU).
crates/lang_check/src/storage.rs:80
↓ 1 callers
Function
references_for_field_in_file
Find all references to a field defined in a specific file. Returns the declaration in the target file + cross-file usages.
crates/lsp/src/references.rs:216
↓ 1 callers
Method
register_nested_module_aliases
Register nested module declarations as top-level type aliases. This enables references like `val python3Packages :: Python313Packages;` inside `module
crates/lang_check/src/aliases.rs:476
↓ 1 callers
Method
remove_signature
Remove a file's signature and return its dependents (for didClose).
crates/lang_check/src/coordinator.rs:617
↓ 1 callers
Method
remove_signatures_batch
Remove signatures for a batch of files. Used by the CLI's reference-counted eviction to drop signatures whose importers have all been processed.
crates/lang_check/src/coordinator.rs:610
↓ 1 callers
Function
remove_unused_binding_actions
( analysis: &FileSnapshot, params: &CodeActionParams, root: &rnix::Root, uri: &Url, action
crates/lsp/src/code_actions.rs:669
↓ 1 callers
Method
rename_generics
Rename all `Generic` type variables by appending a suffix. Each `val` declaration in a `.tix` module should have independently scoped type variables —
crates/comment_parser/src/lib.rs:393
↓ 1 callers
Function
repo_root
()
crates/lsp/tests/e2e_nixpkgs.rs:33
↓ 1 callers
Function
repo_root
()
crates/cli/tests/custom_stubs.rs:18
↓ 1 callers
Function
repo_root
()
crates/cli/tests/nixpkgs_lib.rs:14
↓ 1 callers
Function
resolve_angle_bracket_type
Resolve a recognized angle bracket import path to a type using the stubs registry. Returns `None` for unrecognized paths. Known mappings: - `<nixpkgs
crates/lang_check/src/imports.rs:337
↓ 1 callers
Function
resolve_annotation_fields
Resolve annotation fields directly from doc comments when the inferred type doesn't have fields (e.g., annotation applied after early-canonical snapsh
crates/lsp/src/completion.rs:1041
↓ 1 callers
Function
resolve_base_type
Resolve the type of a base expression for dot completion. Tries expr_ty_map first. If that yields a bare type variable (common for lambda parameters
crates/lsp/src/completion.rs:342
↓ 1 callers
Function
resolve_expected_type
Resolve the expected type at the cursor by walking DOWN through the function's parameter type following the collected path steps.
crates/lsp/src/completion.rs:814
↓ 1 callers
Function
resolve_import_type_annotation
Resolve a `ParsedTy::ImportType(path, name)` by reading the target file from disk and extracting the named type alias. Returns `None` if the annotatio
crates/lsp/src/completion.rs:1100
↓ 1 callers
Function
resolve_imports_phase_b
Phase B import resolution with demand-driven inference for unopened files. Uses the coordinator cache first (fast path for already-analyzed files), t
crates/lsp/src/state.rs:249
↓ 1 callers
Method
resolve_name
Resolve a name in the scope of an Expr.
crates/lang_ast/src/nameres.rs:156
↓ 1 callers
Method
resolve_pending
(&mut self)
crates/lang_check/src/infer.rs:1043
↓ 1 callers
Function
resolve_result
Resolve the result type when a function is applied to a concrete argument. For `Any`/`ListAny` result types (polymorphic), the result depends on the i
crates/lang_check/src/pbt/stub_compose.rs:484
↓ 1 callers
Function
resolve_return_value_import
Check if a file's return value is a reference to an import (pass-through pattern). Unwraps through Lambda and LetIn to find the innermost body expres
crates/lsp/src/import_nav.rs:311
↓ 1 callers
Function
resolve_select_field_at_position
When the cursor is on a Select field literal (e.g. `helper` in `lib.helper`), resolve it to the target file path and field name. Uses the same import
crates/lsp/src/references.rs:168
↓ 1 callers
Function
resolve_tix
Resolve the tix binary path. Resolution order: 1. Explicit `--tix-path` flag 2. `TIX_PATH` env var 3. Auto `cargo build --bin tix` from repo root
crates/repo_check/src/tix.rs:12
↓ 1 callers
Method
resolve_to_concrete_id_inner
( &self, ty_id: TyId, visited: &mut FxHashSet<TyId>, )
crates/lang_check/src/type_table.rs:323
↓ 1 callers
Method
resolve_to_single_concrete_id
Like `resolve_to_concrete_id`, but returns `None` when lower bounds contain 2+ distinct type heads (indicating a genuine union like `int | string`). R
crates/lang_check/src/type_table.rs:353
↓ 1 callers
Method
resolve_to_single_concrete_id_inner
Returns `true` to continue searching, `false` when a second distinct type head is found (short-circuit).
crates/lang_check/src/type_table.rs:366
↓ 1 callers
Function
resolve_token_to_name
Walk up from a token to find a NameId (definition or reference site).
crates/lsp/src/references.rs:47
↓ 1 callers
Method
resolve_type_operators
Resolve type-level operators (Param, Return, FieldAccess) by expanding aliases and destructuring at the ParsedTy level. Depth-guarded to 20.
crates/lang_check/src/lib.rs:1422
↓ 1 callers
Method
resolve_type_operators_inner
(&self, ty: &ParsedTy, depth: usize)
crates/lang_check/src/lib.rs:1426
↓ 1 callers
Function
resolve_typeof_in_parsed_ty
( ty: &ParsedTy, binding_types: &HashMap<smol_str::SmolStr, OwnedTy>, )
crates/lang_check/src/lib.rs:201
↓ 1 callers
Method
rss_limit
Set an RSS limit in MB for memory-pressure early exit.
crates/lang_check/src/lib.rs:762
↓ 1 callers
Function
run_check
( file_path: PathBuf, stub_paths: Vec<PathBuf>, no_default_stubs: bool, config_path: Option<Pa
crates/cli/src/main.rs:1069
↓ 1 callers
Function
run_check_project
Entry point for `tix check`.
crates/cli/src/check.rs:145
↓ 1 callers
Function
run_gen_stubs
(source: GenStubsSource)
crates/cli/src/main.rs:586
↓ 1 callers
Function
run_generate_stubs
( config_path: Option<PathBuf>, log_level: String, no_cache: bool, )
crates/cli/src/main.rs:511
↓ 1 callers
Function
run_home_manager
Run the `gen-stubs home-manager` subcommand.
crates/cli/src/gen_stubs.rs:860
↓ 1 callers
Function
run_inference
(inputs: &InferenceInputs)
crates/lang_check/src/lib.rs:608
↓ 1 callers
Function
run_lsp
Run the Tix LSP server. Builds a tokio runtime with large stack sizes (16 MB per worker) to handle deep import trees, initializes logging, and serves
crates/lsp/src/lib.rs:85
↓ 1 callers
Function
run_module
Run the `stubs generate module` subcommand.
crates/cli/src/gen_stubs.rs:909
↓ 1 callers
Function
run_nix_build
( generate_nix: &Path, nixpkgs_path: &Path, tix_path: &Path, hm_path: Option<&Path>, extra
crates/lsp/src/store_stubs.rs:571
↓ 1 callers
Function
run_nixos
Run the `gen-stubs nixos` subcommand.
crates/cli/src/gen_stubs.rs:845
↓ 1 callers
Function
run_pkgs
Run the `gen-stubs pkgs` subcommand.
crates/cli/src/gen_stubs.rs:1313
↓ 1 callers
Function
run_repo
Run the full pipeline for a single repo.
crates/repo_check/src/runner.rs:10
↓ 1 callers
Function
run_stubs_command
(command: StubsCommand)
crates/cli/src/main.rs:427
↓ 1 callers
Function
run_stubs_refresh
()
crates/cli/src/main.rs:483
↓ 1 callers
Function
run_with_timeout
Run a command with a manual timeout (spawn + poll loop) since std::process::Command doesn't have a built-in timeout.
crates/cli/tests/nixpkgs_lib.rs:75
↓ 1 callers
Function
scan_file_for_field_references
Scan a single file's syntax data for Select expressions accessing `field_name` on a binding that imports `origin_path`.
crates/lsp/src/import_nav.rs:248
↓ 1 callers
Function
score_pattern_lambda
Score a pattern-lambda file based on parameter names, body references, and body attrset keys.
crates/lang_ast/src/classify.rs:193
↓ 1 callers
Method
semantic_tokens
Semantic tokens for a file.
crates/lsp/tests/common/mod.rs:539
↓ 1 callers
Function
shallow_clone
Shallow-clone a git repo. Returns the resolved commit SHA on success.
crates/repo_check/src/git.rs:5
↓ 1 callers
Function
simple_options_tree
()
crates/cli/src/gen_stubs.rs:1371
↓ 1 callers
Function
single_static_attrpath_key
Extract a single static string key from an attrpath. Returns `None` for multi-element paths or paths containing dynamic (interpolated) keys — we only
crates/lang_ast/src/narrow.rs:481
↓ 1 callers
Function
skipped_result
(entry: &RepoEntry)
crates/repo_check/src/runner.rs:259
↓ 1 callers
Function
spawn_analysis_loop
( mut rx: mpsc::UnboundedReceiver<AnalysisEvent>, event_tx: mpsc::UnboundedSender<AnalysisEvent>,
crates/lsp/src/server.rs:252
↓ 1 callers
Function
structurally_eq_inner
Recursive structural equality with cycle detection. The `visited` set tracks `(TyRef, TyRef)` pairs already compared to break cycles (e.g. recursive
crates/lang_ty/src/arena.rs:871
↓ 1 callers
Function
suggest_similar
Find the best match for `needle` among `candidates`, returning it only if the edit distance is within a reasonable threshold. The threshold is roughly
crates/lang_check/src/diagnostic.rs:392
↓ 1 callers
Function
supports_string_interpolation
Whether a type supports Nix's `"${expr}"` string interpolation. In Nix, interpolation works for strings, paths, and derivations (attrsets with `outPa
crates/lang_check/src/diagnostic.rs:564
↓ 1 callers
Method
syntax_for_file
(&self, path: &Path)
crates/cli/src/check.rs:49
↓ 1 callers
Method
synth_list_to_attrs
[{"name": string, "value": a}] -> {_ : a}
crates/lang_check/src/builtins.rs:341
↓ 1 callers
Method
synth_parse_drv_name
string -> {"name": string, "version": string}
crates/lang_check/src/builtins.rs:276
↓ 1 callers
Method
synth_partition
(a -> bool) -> [a] -> {"right": [a], "wrong": [a]}
crates/lang_check/src/builtins.rs:294
↓ 1 callers
Method
synth_try_eval
a -> {"success": bool, "value": a}
crates/lang_check/src/builtins.rs:322
↓ 1 callers
Function
text_from_raw_ty
(ty: &RawTy)
crates/lang_check/src/pbt/mod.rs:178
↓ 1 callers
Function
tix_cli
()
crates/cli/tests/nixpkgs_lib.rs:23
↓ 1 callers
Function
tix_version
Get the tix version string.
crates/repo_check/src/tix.rs:55
↓ 1 callers
Method
to_lsp_severity
Convert to an LSP DiagnosticSeverity. Returns `None` for `Off`.
crates/lsp/src/config.rs:41
↓ 1 callers
Method
to_snapshot
(&self)
crates/lsp/src/warmup.rs:335
↓ 1 callers
Function
total_memory_mib
()
crates/lsp/src/lib.rs:149
↓ 1 callers
Function
translate_record_fields
Translate noogle record field syntax to .tix syntax. Noogle: { foo :: Type; bar :: Type; } .tix: { foo: Type, bar: Type, ... }
scripts/gen_lib_stubs.py:422
↓ 1 callers
Function
translate_type_expr
Translate a single type expression from noogle notation to .tix syntax. This operates on the type part (after stripping the `name ::` prefix).
scripts/gen_lib_stubs.py:362
↓ 1 callers
Function
trim_to_header
If the span text contains a `{`, return the byte offset just past it (the header of a module declaration). Otherwise return the original end.
crates/lsp/src/type_def.rs:147
↓ 1 callers
Function
try_attrpath_key_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:475
↓ 1 callers
Function
try_attrpath_key_field_doc
Look up field-level docs for a token that's an attrpath key in an attrset definition (e.g. `steam` in `{ programs.steam.enable = true; }`).
crates/lsp/src/hover.rs:308
↓ 1 callers
Function
try_attrpath_key_hover
Hover on an attrpath key inside an attrset definition. For `{ programs.steam.enable = true; }` in a NixOS module, hovering on `steam` should show the
crates/lsp/src/hover.rs:274
↓ 1 callers
Function
try_binding_type_completion
When the cursor is inside an attrset `{ }` that is the value of a let binding with a type annotation, suggest the annotation's fields. Example: `let
crates/lsp/src/completion.rs:916
↓ 1 callers
Function
try_callsite_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:568
↓ 1 callers
Function
try_dot_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:271
↓ 1 callers
Function
try_expected_type_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:840
↓ 1 callers
Function
try_filename_merge_pass
One pass of filename-based merging. Returns true if any merge happened.
crates/cli/src/init.rs:479
↓ 1 callers
Function
try_hasattr_builtin_call
Check for the curried `builtins.hasAttr "field" x` call pattern. In the AST this is: Apply { fun: Apply { fun: hasAttr_ref, arg: string_literal }, ar
crates/lang_ast/src/narrow.rs:496
↓ 1 callers
Function
try_identifier_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:1228
↓ 1 callers
Function
try_inherit_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:1143
↓ 1 callers
Function
try_merge_pass
One pass of sibling merging. Returns true if any merge happened.
crates/cli/src/init.rs:357
↓ 1 callers
Function
try_promote_pass
Promote lone child globs to their parent directory when safe. If `dir/sub/**/*.nix` is the only pattern under `dir/` and no other-kind files exist un
crates/cli/src/init.rs:310
↓ 1 callers
Function
try_resolve_attrpath_field_source
Given a token inside an attrpath key (in an attrset definition, not a Select), resolve it to a field-level `@source` location from the stubs. This en
crates/lsp/src/goto_def.rs:289
↓ 1 callers
Function
try_resolve_attrpath_field_source
Given a token inside an attrpath key, resolve it to a field-level `@source` location from the stubs.
crates/lsp/src/type_def.rs:134
↓ 1 callers
Method
try_resolve_has_field
Try to resolve a deferred has-field constraint. Returns Ok(true) if resolved (field found, or type is non-attrset meaning a TypeMismatch was already
crates/lang_check/src/infer.rs:1253
↓ 1 callers
Method
try_resolve_merge
(&mut self, mg: &PendingMerge)
crates/lang_check/src/infer.rs:1365
↓ 1 callers
Method
try_resolve_overload
( &mut self, ov: &PendingOverload, )
crates/lang_check/src/infer.rs:1127
↓ 1 callers
Function
try_resolve_select_field
Given a field-name expression inside a Select, try to resolve it across files. Walks up the syntax tree from `field_node` to find the enclosing Selec
crates/lsp/src/goto_def.rs:224
↓ 1 callers
Method
try_resolve_with_fallback
Try to resolve a deferred multi-`with` fallback constraint. Nix tries `with` environments inner-to-outer at runtime. We walk the env list (inner firs
crates/lang_check/src/infer.rs:1298
↓ 1 callers
Function
try_select_chain_predicate
Check if `fun_expr` is a Select chain whose **leaf** segment matches a known type predicate name (e.g. `lib.types.isString x` → leaf "isString"), and
crates/lang_ast/src/narrow.rs:545
↓ 1 callers
Function
try_select_field_doc
Walk a Select expression chain to extract the field path and look up field-level docs from the DocIndex. For `config.services.openssh.enable`, the AS
crates/lsp/src/hover.rs:340
↓ 1 callers
Function
type_matches
Check if a type can be passed where `expected` is required. `ListAny` accepts any list type.
crates/lang_check/src/pbt/stub_compose.rs:682
↓ 1 callers
Function
type_mismatch_hint
Check whether a TypeMismatch deserves a contextual hint and, if so, return one. Currently recognised cases: 1. **expected=path, actual=string on a St
crates/lang_check/src/diagnostic.rs:511
↓ 1 callers
Function
type_to_tix_prec
(ty: &NixosTypeInfo, ctx: Prec)
crates/cli/src/gen_stubs.rs:232
↓ 1 callers
Function
tyvar_name
Convert a type variable index to a letter-based name: 0→a, 1→b, ..., 25→z, 26→a1, ...
crates/lang_ty/src/arc_ty.rs:142
↓ 1 callers
Function
unwrap_inter_concrete
If `ty` is `Inter(a, b)`, extract the "useful" concrete member for overload/merge/has_field resolution. Returns the non-Neg, non-variable member (prim
crates/lang_check/src/type_table.rs:466
← previous
next →
901–1,000 of 2,574, ranked by callers