MCPcopy Create free account

hub / github.com/JRMurr/tix / functions

Functions2,574 in github.com/JRMurr/tix

↓ 2 callersFunctionfind_cross_file_field_references
Find references to `field_name` across files that import `origin_path`. Scans all analyzed files that import `origin_path` for Select expressions lik
crates/lsp/src/import_nav.rs:149
↓ 2 callersFunctionfind_field_in_bindings
Scan static bindings for a field matching `field_name` and return its source location as an `AstPtr`.
crates/lsp/src/goto_def.rs:359
↓ 2 callersMethodfind_pinned_concrete
Slow path for pinning: check if the same primitive *value* appears as both a direct lower and upper bound across *different* TyIds. Different TyIds ma
crates/lang_check/src/type_table.rs:436
↓ 2 callersFunctionfind_references
Find all reference locations for the name under the cursor.
crates/lsp/src/references.rs:79
↓ 2 callersMethodfinish_expr
Convert this `MergingSet` into a single `ExprId` representing an attrset. Used for implicit nested attrsets created by multi-segment attribute paths.
crates/lang_ast/src/lower.rs:670
↓ 2 callersFunctionflatten_composite
Flatten a nested composite type (union or intersection) and deduplicate members. `extract_nested` returns the inner members if the OutputTy is the mat
crates/lang_check/src/collect.rs:1369
↓ 2 callersMethodflatten_set_op_cached
( &mut self, members: &[TyRef], out: &mut Vec<TyRef>, cache: &mut FxHashMap<Ty
crates/lang_ty/src/arena.rs:427
↓ 2 callersFunctionfn_ref
Choose a function reference string based on the access pattern. For `Bare`, returns the bare name. For `LambdaParam`/`PkgsLib`, picks nested "lib.stri
crates/lang_check/src/pbt/stub_compose.rs:346
↓ 2 callersFunctionformat_document
Format a Nix document by piping it through `nixfmt`. Returns None if nixfmt is not available or the file is already formatted.
crates/lsp/src/formatting.rs:15
↓ 2 callersFunctionformat_val_decl
Format a single val declaration with optional doc comment. Only emits entries that have a translatable signature. Functions without signature
scripts/gen_lib_stubs.py:772
↓ 2 callersFunctionformatted_file_sig
Inspect the formatted exported `file_sig_ty` for a source. Mirrors what `extract_file_signature` does for cross-file callers, falling back to the per-
crates/lang_check/src/tests.rs:9448
↓ 2 callersMethodfrom
(value: OverloadBinOp)
crates/lang_ast/src/lib.rs:412
↓ 2 callersFunctiongather_doc_comments
First pass: walk all tokens in the file, and figure out which doc comments should be attached to which node.
crates/lang_ast/src/comment.rs:67
↓ 2 callersFunctiongenerate_stubs
Generate stubs from `[stubs.generate]` config, using the Nix store as cache. Returns the stubs directory and source roots, or an error if generation
crates/lsp/src/store_stubs.rs:36
↓ 2 callersFunctiongenerate_stubs_with_options
Like [`generate_stubs`], but with additional control: - `tix_path_override`: use this path instead of auto-detecting the tix store path (useful for de
crates/lsp/src/store_stubs.rs:47
↓ 2 callersMethodget
(&self)
crates/lang_ty/src/arbitrary.rs:321
↓ 2 callersMethodget_docs
(&self, ptr: &AstPtr)
crates/lang_ast/src/comment.rs:55
↓ 2 callersMethodget_docs_for_syntax
(&self, node: &SyntaxNode)
crates/lang_ast/src/comment.rs:59
↓ 2 callersFunctionget_module_config_type
Find the module config type (e.g. NixosConfig) from the root lambda's pattern fields, based on the first attrpath segment. First checks explicitly de
crates/lsp/src/ty_nav.rs:66
↓ 2 callersFunctionget_multifile_root_with_aliases
( files: &[(&str, &str)], aliases: &TypeAliasRegistry, )
crates/lang_check/src/tests.rs:400
↓ 2 callersFunctionget_ranges_at_marker
(src: &str, marker: u32)
crates/lsp/src/selection_range.rs:98
↓ 2 callersFunctionget_str_literal
(s: &ast::Str)
crates/lang_ast/src/ast_utils.rs:18
↓ 2 callersFunctionimport_from_arena
Import a type and its reachable subtree from a source arena into a target arena. Used when canonicalizing Frozen types from imported file arenas.
crates/lang_ty/src/arena.rs:748
↓ 2 callersMethodinfer_bool_short_circuit
Infer `a && b` or `a || b` with short-circuit narrowing. `is_and = true` → `&&`: RHS gets then-branch narrowing (runs when LHS is true). `is_and = fa
crates/lang_check/src/infer_expr.rs:857
↓ 2 callersFunctioninfer_bundle
Infer a file from a pre-extracted SyntaxBundle and cache its signature. Shared by both the single-pass path and fixpoint iteration.
crates/cli/src/check.rs:98
↓ 2 callersMethodinfer_prog_up_to_group
Infer SCC groups 0..=`stop_after_group` only. Skips `infer_root` and expr-level canonicalization. Used by the coordinator to get binding types for `ty
crates/lang_check/src/infer.rs:229
↓ 2 callersMethodinsert_expr
(&mut self, expr_id: ExprId, comments: DocComments)
crates/lang_ast/src/lib.rs:259
↓ 2 callersMethodinsert_name
(&mut self, name_id: NameId, comments: DocComments)
crates/lang_ast/src/lib.rs:267
↓ 2 callersMethodinstall_narrow_overrides
Install narrowing overrides for a slice of NarrowBindings. Returns the saved state for restoration via `restore_narrow_overrides`. SAFETY INVARIANT:
crates/lang_check/src/infer_expr.rs:823
↓ 2 callersMethodinter_contains_var
Check if a TyId is or transitively contains a type variable (through Inter nesting). Used to find the variable side for MLstruct-style variable isolat
crates/lang_check/src/constrain.rs:485
↓ 2 callersFunctionintern_raw
Intern a RawTy tree into a TypeArena, returning the root TyRef.
crates/lang_ty/src/arbitrary.rs:272
↓ 2 callersFunctioninvoke_hm_nix_eval
Invoke `nix eval --json` for Home Manager and parse the result.
crates/cli/src/gen_stubs.rs:816
↓ 2 callersFunctioninvoke_nix_eval
Invoke `nix eval --json` for NixOS and parse the result.
crates/cli/src/gen_stubs.rs:823
↓ 2 callersMethodis_addable
(&self)
crates/lang_ty/src/primitive.rs:32
↓ 2 callersFunctionis_builtin_call
Check if `fun_expr` is a reference to a specific builtin function. Handles three cases: 1. Direct builtin reference: `isNull x` 2. Qualified access: `
crates/lang_ast/src/narrow.rs:576
↓ 2 callersFunctionis_concrete_compatible
Check if sub could be a subtype of target based on constructor shape. Read-only — no side effects. Used by `constrain_rhs_union` to decide which union
crates/lang_check/src/constrain.rs:855
↓ 2 callersFunctionis_covered_by_excludes
Check if a file path is already covered by an existing exclude pattern.
crates/cli/src/init.rs:448
↓ 2 callersMethodis_disjoint_from_sup
Check if a TyId (possibly a composed Inter from narrowing) is provably disjoint from a super-type. For `Inter(A, B)`, if EITHER member is disjoint fro
crates/lang_check/src/constrain.rs:466
↓ 2 callersMethodis_float
(&self)
crates/lang_ty/src/primitive.rs:28
↓ 2 callersFunctionis_freeform_value_union
Detect "freeform value" unions produced by NixOS format types (pkgs.formats.json/yaml/toml). These are oneOf unions that list every possible Nix value
crates/cli/src/gen_stubs.rs:182
↓ 2 callersMethodis_list
Is this a list type?
crates/lang_check/src/pbt/stub_compose.rs:187
↓ 2 callersFunctionis_output_subtype_or_equal
Check whether `sub` is a subtype of (or structurally equal to) `sup` in the OutputTy representation. This is a conservative approximation — it returns
crates/lang_check/src/collect.rs:1156
↓ 2 callersFunctionis_removable_var_member
( arena: &TypeArena, ty: &OutputTy, substitution: &FxHashMap<u32, u32>, removable: &FxHashSet<
crates/lang_ty/src/simplify.rs:194
↓ 2 callersMethodline_col
Returns `(line, column)`, both 1-indexed. Column counts UTF-8 characters from the start of the line.
crates/cli/src/json_output.rs:40
↓ 2 callersMethodload_declarations
Recursively load declarations. `val_target` controls where val declarations are routed: `GlobalVals` adds them to the registry's `global_vals` map; `C
crates/lang_check/src/aliases.rs:337
↓ 2 callersMethodload_field_docs
Load field-level doc comments from a parsed .tix file into the doc index.
crates/lang_check/src/aliases.rs:409
↓ 2 callersMethodload_field_sources
Load field-level `@source` annotations from a parsed .tix file.
crates/lang_check/src/aliases.rs:421
↓ 2 callersFunctionload_single_stub
( registry: &mut TypeAliasRegistry, path: &PathBuf, )
crates/cli/src/main.rs:1616
↓ 2 callersFunctionload_stub_entry
Load a single stub entry. `@`-prefixed entries resolve to built-in context stubs (returned as `Arc` for cheap sharing); all others are treated as file
crates/lsp/src/project_config.rs:232
↓ 2 callersFunctionload_stubs
Load .tix files from a path. If the path is a file, load it directly. If it's a directory, recursively find all .tix files and load them.
crates/lsp/src/lib.rs:40
↓ 2 callersFunctionlower
(root: rnix::Root, doc_comments: DocCommentCtx)
crates/lang_ast/src/lower.rs:25
↓ 2 callersMethodlower_attrpath_opt
(&mut self, attrpath: Option<ast::Attrpath>)
crates/lang_ast/src/lower.rs:236
↓ 2 callersMethodlower_expr
(&mut self, rnix_expr: ast::Expr)
crates/lang_ast/src/lower.rs:112
↓ 2 callersMethodlower_string
(&mut self, s: &rnix::ast::Str)
crates/lang_ast/src/lower.rs:254
↓ 2 callersFunctionmake_context_args
Build context args for patterns that need them.
crates/lang_check/src/pbt/stub_compose.rs:384
↓ 2 callersFunctionmaybe_generate_stubs
If `TIX_BUILTIN_STUBS` is not set and `[stubs.generate]` is configured, attempt runtime stub generation and set the registry's builtin stubs dir.
crates/cli/src/main.rs:1537
↓ 2 callersMethodmerge_bindings
(&mut self, ctx: &mut LowerCtx, node: &impl HasEntry)
crates/lang_ast/src/lower.rs:412
↓ 2 callersMethodmerge_static_value
( &mut self, ctx: &mut LowerCtx, key: SmolStr, attr_ptr: AstPtr, value
crates/lang_ast/src/lower.rs:557
↓ 2 callersFunctionname_kind_to_token_type
Map a NameKind to a semantic token type index.
crates/lsp/src/semantic_tokens.rs:227
↓ 2 callersFunctionnarrow_info_for_predicate
Look up a narrowing predicate by builtin leaf name and return the corresponding NarrowInfo for the given variable.
crates/lang_ast/src/narrow.rs:140
↓ 2 callersFunctionnarrow_prim_to_ty
Convert a narrowing-specific primitive to the type system's PrimitiveTy. NarrowPrimitive is defined in lang_ast (which can't depend on lang_ty), so t
crates/lang_check/src/narrow.rs:17
↓ 2 callersFunctionneeds_parens_in_intersection_member
Intersection members need parens if they are lambdas or unions.
crates/lang_ty/src/arc_ty.rs:169
↓ 2 callersFunctionneeds_parens_in_lambda_param
Lambda params need parens if they are themselves lambdas, unions, or intersections.
crates/lang_ty/src/arc_ty.rs:156
↓ 2 callersFunctionneeds_parens_in_neg
Negation operands need parens if they are unions, intersections, or lambdas.
crates/lang_ty/src/arc_ty.rs:174
↓ 2 callersFunctionneeds_parens_in_union_member
Union members need parens if they are lambdas.
crates/lang_ty/src/arc_ty.rs:164
↓ 2 callersFunctionneeds_quoting
Check whether a field name is a valid bare identifier in .tix syntax. If not, it needs to be quoted.
crates/cli/src/gen_stubs.rs:304
↓ 2 callersMethodnormalize_inner_cached
Memoized normalize_inner that caches by TyRef identity.
crates/lang_ty/src/arena.rs:136
↓ 2 callersMethodnormalize_inner_with_subs
Apply a substitution to normalize vars, using a pre-built substitution map.
crates/lang_ty/src/arbitrary.rs:463
↓ 2 callersFunctionnormalize_path
Normalize path components (`.`, `..`) without any syscalls. Safe when `base_dir` is already canonical — the joined path won't contain symlinks that w
crates/lang_check/src/imports.rs:206
↓ 2 callersMethodnormalize_set_ops_cached
( &mut self, ty: TyRef, cache: &mut FxHashMap<TyRef, TyRef>, )
crates/lang_ty/src/arena.rs:378
↓ 2 callersMethodnormalize_vars
Normalize all ty vars to start from 0 instead of the original indices.
crates/lang_ty/src/arena.rs:108
↓ 2 callersFunctionoptions_to_attrset_ty_inner
( options: &std::collections::BTreeMap<String, OptionNode>, indent: usize, emit_docs: bool, so
crates/cli/src/gen_stubs.rs:360
↓ 2 callersFunctionoutcome_severity
Lower is better. Used to classify changes as regressions vs improvements.
crates/repo_check/src/diff.rs:98
↓ 2 callersFunctionoutput_ty_field_count_arena
Count the total number of attrset fields reachable from an OutputTy. Used to decide whether a Frozen lambda body is "large" enough to warrant lazy dec
crates/lang_check/src/constrain.rs:937
↓ 2 callersFunctionoverload_spec
(op: OverloadBinOp)
crates/lang_check/src/operators.rs:30
↓ 2 callersFunctionpaths_equal
Compare two paths for equality, using canonicalization when possible.
crates/lsp/src/import_nav.rs:361
↓ 2 callersMethodpre_apply_entry_lambda_annotations
Pre-apply type annotations and context args on the entry expression's Lambda pattern fields. This runs before SCC groups so that parameter types (e.g.
crates/lang_check/src/infer.rs:295
↓ 2 callersMethodpreload_module_stubs_for_context_args
Scan context args for type alias references and preload their module stubs from `builtin_stubs_dir`. Context files like `nixos.tix` declare `val pkgs
crates/lang_check/src/aliases.rs:713
↓ 2 callersFunctionprim_assert_builtin
(prim: PrimitiveTy)
crates/lang_check/src/pbt/mod.rs:300
↓ 2 callersFunctionraw_spread_free_vars
Spread free type variables across attrset fields (for PBT code generation). Each field gets unique type variable numbering.
crates/lang_ty/src/arbitrary.rs:258
↓ 2 callersMethodreload_registry
Replace the type alias registry and re-analyze all open files. Used when stubs configuration changes at runtime.
crates/lsp/src/state.rs:818
↓ 2 callersMethodremove_ephemeral_stub
Remove the file's signature from the coordinator (called on `didClose`). Returns the paths of files that depended on this stub.
crates/lsp/src/state.rs:812
↓ 2 callersFunctionrender_diagnostics
Render diagnostics for a single file. Returns `(error_count, warning_count)`.
crates/cli/src/main.rs:1435
↓ 2 callersMethodreplace_var_with_concrete
Replace a Variable entry with a Concrete entry in-place. The TyId remains valid — all existing references (bounds, caches) that point to this slot no
crates/lang_check/src/storage.rs:180
↓ 2 callersMethodresolve_context_args
Resolve context args for a file from the project's tix.toml config.
crates/lsp/src/state.rs:481
↓ 2 callersMethodresolve_doc_comment_context
Check whether a lambda expression has a `/** context: <name> */` doc comment annotation. If so, load the named context's stubs and return the arg→type
crates/lang_check/src/lib.rs:1761
↓ 2 callersFunctionresolve_field_transitively
Resolve a field name through barrel re-exports transitively. Starting from `target_path`, finds the name matching `field_name` and checks if it's bou
crates/lsp/src/import_nav.rs:34
↓ 2 callersFunctionresolve_head
Get the HEAD commit SHA for a repo.
crates/repo_check/src/git.rs:71
↓ 2 callersFunctionresolve_nix_path
Resolve a Nix path string to an actual `.nix` file on disk. Handles Nix's directory-import convention: if the path points to a directory, tries `<dir
crates/lsp/src/state.rs:932
↓ 2 callersFunctionresolve_nix_source
Resolve a NixSource to a concrete filesystem path.
crates/lsp/src/store_stubs.rs:284
↓ 2 callersFunctionresolve_numeric_result
Compute the result primitive for two numeric operands. Float wins over Int; Number stays Number unless a Float is present.
crates/lang_check/src/operators.rs:74
↓ 2 callersFunctionresolve_tix_store_path
Resolve the tix binary's Nix store path. If the binary is at `/nix/store/<hash>-tix/bin/tix`, returns `/nix/store/<hash>-tix`. Returns `None` if not
crates/lsp/src/store_stubs.rs:333
↓ 2 callersMethodresolve_to_concrete_id
Walk lower bounds transitively to find a Concrete entry and return its TyId. Used to resolve partial-application result variables (which point to a La
crates/lang_check/src/type_table.rs:318
↓ 2 callersFunctionresolve_to_name
Chase a set expression to the NameId it ultimately references. Handles the common patterns: - `lib.field` where `lib` is a Reference -> resolves to
crates/lsp/src/rename.rs:293
↓ 2 callersMethodroot_dir
Canonical root directory path (resolves symlinks).
crates/lsp/src/test_util.rs:108
↓ 2 callersFunctionrss_bytes
Returns the current RSS (Resident Set Size) in bytes, or None if unavailable.
crates/cli/src/timing.rs:35
↓ 2 callersFunctionrun_gen_stub
( file_path: PathBuf, stub_paths: Vec<PathBuf>, no_default_stubs: bool, output: Option<PathBuf
crates/cli/src/main.rs:634
↓ 2 callersFunctionrun_partial_inference
Run partial inference on SCC groups 0..=`stop_after_group` and return the inferred types for `target_names` as portable `OwnedTy` values. Used by the
crates/lang_check/src/lib.rs:278
↓ 2 callersFunctionrun_tix
Run a tix command with a timeout. Returns captured output.
crates/repo_check/src/tix.rs:79
↓ 2 callersFunctionsave_snapshot
(snapshot: &Snapshot, path: &Path)
crates/repo_check/src/results.rs:233
← previousnext →501–600 of 2,574, ranked by callers