MCPcopy Create free account

hub / github.com/JRMurr/tix / functions

Functions2,574 in github.com/JRMurr/tix

↓ 1 callersMethodpush_field_source
(&mut self, field_name: SmolStr, source: SourceLocation)
crates/comment_parser/src/tix_collect.rs:261
↓ 1 callersMethodread_file
Read a file's contents from the project directory.
crates/lsp/src/test_util.rs:122
↓ 1 callersMethodrecord_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 callersMethodrecord_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 callersFunctionreferences_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 callersMethodregister_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 callersMethodremove_signature
Remove a file's signature and return its dependents (for didClose).
crates/lang_check/src/coordinator.rs:617
↓ 1 callersMethodremove_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 callersFunctionremove_unused_binding_actions
( analysis: &FileSnapshot, params: &CodeActionParams, root: &rnix::Root, uri: &Url, action
crates/lsp/src/code_actions.rs:669
↓ 1 callersMethodrename_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 callersFunctionrepo_root
()
crates/lsp/tests/e2e_nixpkgs.rs:33
↓ 1 callersFunctionrepo_root
()
crates/cli/tests/custom_stubs.rs:18
↓ 1 callersFunctionrepo_root
()
crates/cli/tests/nixpkgs_lib.rs:14
↓ 1 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionresolve_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 callersMethodresolve_name
Resolve a name in the scope of an Expr.
crates/lang_ast/src/nameres.rs:156
↓ 1 callersMethodresolve_pending
(&mut self)
crates/lang_check/src/infer.rs:1043
↓ 1 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionresolve_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 callersMethodresolve_to_concrete_id_inner
( &self, ty_id: TyId, visited: &mut FxHashSet<TyId>, )
crates/lang_check/src/type_table.rs:323
↓ 1 callersMethodresolve_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 callersMethodresolve_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 callersFunctionresolve_token_to_name
Walk up from a token to find a NameId (definition or reference site).
crates/lsp/src/references.rs:47
↓ 1 callersMethodresolve_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 callersMethodresolve_type_operators_inner
(&self, ty: &ParsedTy, depth: usize)
crates/lang_check/src/lib.rs:1426
↓ 1 callersFunctionresolve_typeof_in_parsed_ty
( ty: &ParsedTy, binding_types: &HashMap<smol_str::SmolStr, OwnedTy>, )
crates/lang_check/src/lib.rs:201
↓ 1 callersMethodrss_limit
Set an RSS limit in MB for memory-pressure early exit.
crates/lang_check/src/lib.rs:762
↓ 1 callersFunctionrun_check
( file_path: PathBuf, stub_paths: Vec<PathBuf>, no_default_stubs: bool, config_path: Option<Pa
crates/cli/src/main.rs:1069
↓ 1 callersFunctionrun_check_project
Entry point for `tix check`.
crates/cli/src/check.rs:145
↓ 1 callersFunctionrun_gen_stubs
(source: GenStubsSource)
crates/cli/src/main.rs:586
↓ 1 callersFunctionrun_generate_stubs
( config_path: Option<PathBuf>, log_level: String, no_cache: bool, )
crates/cli/src/main.rs:511
↓ 1 callersFunctionrun_home_manager
Run the `gen-stubs home-manager` subcommand.
crates/cli/src/gen_stubs.rs:860
↓ 1 callersFunctionrun_inference
(inputs: &InferenceInputs)
crates/lang_check/src/lib.rs:608
↓ 1 callersFunctionrun_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 callersFunctionrun_module
Run the `stubs generate module` subcommand.
crates/cli/src/gen_stubs.rs:909
↓ 1 callersFunctionrun_nix_build
( generate_nix: &Path, nixpkgs_path: &Path, tix_path: &Path, hm_path: Option<&Path>, extra
crates/lsp/src/store_stubs.rs:571
↓ 1 callersFunctionrun_nixos
Run the `gen-stubs nixos` subcommand.
crates/cli/src/gen_stubs.rs:845
↓ 1 callersFunctionrun_pkgs
Run the `gen-stubs pkgs` subcommand.
crates/cli/src/gen_stubs.rs:1313
↓ 1 callersFunctionrun_repo
Run the full pipeline for a single repo.
crates/repo_check/src/runner.rs:10
↓ 1 callersFunctionrun_stubs_command
(command: StubsCommand)
crates/cli/src/main.rs:427
↓ 1 callersFunctionrun_stubs_refresh
()
crates/cli/src/main.rs:483
↓ 1 callersFunctionrun_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 callersFunctionscan_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 callersFunctionscore_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 callersMethodsemantic_tokens
Semantic tokens for a file.
crates/lsp/tests/common/mod.rs:539
↓ 1 callersFunctionshallow_clone
Shallow-clone a git repo. Returns the resolved commit SHA on success.
crates/repo_check/src/git.rs:5
↓ 1 callersFunctionsimple_options_tree
()
crates/cli/src/gen_stubs.rs:1371
↓ 1 callersFunctionsingle_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 callersFunctionskipped_result
(entry: &RepoEntry)
crates/repo_check/src/runner.rs:259
↓ 1 callersFunctionspawn_analysis_loop
( mut rx: mpsc::UnboundedReceiver<AnalysisEvent>, event_tx: mpsc::UnboundedSender<AnalysisEvent>,
crates/lsp/src/server.rs:252
↓ 1 callersFunctionstructurally_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 callersFunctionsuggest_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 callersFunctionsupports_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 callersMethodsyntax_for_file
(&self, path: &Path)
crates/cli/src/check.rs:49
↓ 1 callersMethodsynth_list_to_attrs
[{"name": string, "value": a}] -> {_ : a}
crates/lang_check/src/builtins.rs:341
↓ 1 callersMethodsynth_parse_drv_name
string -> {"name": string, "version": string}
crates/lang_check/src/builtins.rs:276
↓ 1 callersMethodsynth_partition
(a -> bool) -> [a] -> {"right": [a], "wrong": [a]}
crates/lang_check/src/builtins.rs:294
↓ 1 callersMethodsynth_try_eval
a -> {"success": bool, "value": a}
crates/lang_check/src/builtins.rs:322
↓ 1 callersFunctiontext_from_raw_ty
(ty: &RawTy)
crates/lang_check/src/pbt/mod.rs:178
↓ 1 callersFunctiontix_cli
()
crates/cli/tests/nixpkgs_lib.rs:23
↓ 1 callersFunctiontix_version
Get the tix version string.
crates/repo_check/src/tix.rs:55
↓ 1 callersMethodto_lsp_severity
Convert to an LSP DiagnosticSeverity. Returns `None` for `Off`.
crates/lsp/src/config.rs:41
↓ 1 callersMethodto_snapshot
(&self)
crates/lsp/src/warmup.rs:335
↓ 1 callersFunctiontotal_memory_mib
()
crates/lsp/src/lib.rs:149
↓ 1 callersFunctiontranslate_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 callersFunctiontranslate_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 callersFunctiontrim_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 callersFunctiontry_attrpath_key_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:475
↓ 1 callersFunctiontry_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 callersFunctiontry_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 callersFunctiontry_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 callersFunctiontry_callsite_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:568
↓ 1 callersFunctiontry_dot_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:271
↓ 1 callersFunctiontry_expected_type_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:840
↓ 1 callersFunctiontry_filename_merge_pass
One pass of filename-based merging. Returns true if any merge happened.
crates/cli/src/init.rs:479
↓ 1 callersFunctiontry_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 callersFunctiontry_identifier_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:1228
↓ 1 callersFunctiontry_inherit_completion
( analysis: &FileSnapshot, inference: &lang_check::InferenceResult, token: &rowan::SyntaxToken<rni
crates/lsp/src/completion.rs:1143
↓ 1 callersFunctiontry_merge_pass
One pass of sibling merging. Returns true if any merge happened.
crates/cli/src/init.rs:357
↓ 1 callersFunctiontry_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 callersFunctiontry_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 callersFunctiontry_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 callersMethodtry_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 callersMethodtry_resolve_merge
(&mut self, mg: &PendingMerge)
crates/lang_check/src/infer.rs:1365
↓ 1 callersMethodtry_resolve_overload
( &mut self, ov: &PendingOverload, )
crates/lang_check/src/infer.rs:1127
↓ 1 callersFunctiontry_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 callersMethodtry_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 callersFunctiontry_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 callersFunctiontry_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 callersFunctiontype_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 callersFunctiontype_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 callersFunctiontype_to_tix_prec
(ty: &NixosTypeInfo, ctx: Prec)
crates/cli/src/gen_stubs.rs:232
↓ 1 callersFunctiontyvar_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 callersFunctionunwrap_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
← previousnext →901–1,000 of 2,574, ranked by callers