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
Function
collect_references
Collect all `TypeVarValue::Reference` names from a ParsedTy.
crates/lang_check/src/aliases.rs:890
↓ 1 callers
Function
collect_references_inner
(ty: &ParsedTy, refs: &mut Vec<SmolStr>)
crates/lang_check/src/aliases.rs:896
↓ 1 callers
Function
collect_tix_file
(pairs: Pairs<Rule>)
crates/comment_parser/src/tix_collect.rs:116
↓ 1 callers
Function
collect_tix_file_inner
( pairs: Pairs<Rule>, declarations: &mut Vec<TixDeclaration>, ctx: &mut CollectCtx, )
crates/comment_parser/src/tix_collect.rs:129
↓ 1 callers
Function
collect_typed_segments
Collect the attrpath segments that have already been typed (i.e. that have a string literal in the lowered AST). The final segment (the one being comp
crates/lsp/src/completion.rs:421
↓ 1 callers
Function
collect_typeof_names
(ty: &ParsedTy, out: &mut HashSet<smol_str::SmolStr>)
crates/lang_check/src/lib.rs:64
↓ 1 callers
Function
collect_union
(pairs: Pairs<Rule>, ctx: &mut CollectCtx)
crates/comment_parser/src/tix_collect.rs:486
↓ 1 callers
Function
collect_union
Collect a union type from its children: `isect_type ("|" isect_type)*`. If only one member, returns it directly (no spurious Union wrapper).
crates/comment_parser/src/collect.rs:296
↓ 1 callers
Function
collect_unique_dirs
Collect unique parent directories from a list of classified files.
crates/cli/src/init.rs:139
↓ 1 callers
Function
collect_visible_names_no_inference
Like `collect_visible_names` but doesn't require inference results. Uses inference types opportunistically when available (from stale analysis), but
crates/lsp/src/completion.rs:1339
↓ 1 callers
Method
command
(&self)
crates/cli/src/gen_stubs.rs:492
↓ 1 callers
Function
compact_inner
( source: &TypeArena, ty: TyRef, target: &mut TypeArena, mapping: &mut FxHashMap<TyRef, TyRef>
crates/lang_ty/src/arena.rs:723
↓ 1 callers
Method
compact_scc_graph
Compact the bounds graph for an SCC group's type slots. Runs three passes over `[slots_before..len)`: 1. **Pin**: Replace fully-determined variables
crates/lang_check/src/infer.rs:1423
↓ 1 callers
Function
compatible_successors
Find pipeline functions whose input matches the given type. For Bare access, only return functions that have top-level global vals.
crates/lang_check/src/pbt/stub_compose.rs:698
↓ 1 callers
Method
complete_abs
Completions at a position in a file given by absolute path.
crates/lsp/tests/common/mod.rs:283
↓ 1 callers
Function
compress_excludes
Compress a set of other-kind files into exclude patterns. Groups files by their parent directory. When 2+ other-kind files share a subdirectory AND n
crates/cli/src/init.rs:575
↓ 1 callers
Method
compute_file
The core computation: extract syntax, scan imports, demand dependencies, build InferenceInputs, run inference, extract signature.
crates/lang_check/src/coordinator.rs:394
↓ 1 callers
Function
compute_group_def
( module: &Module, name_res: &NameResolution, indices: &ModuleIndices, )
crates/lang_ast/src/nameres.rs:580
↓ 1 callers
Function
compute_module_indices
(module: &Module)
crates/lang_ast/src/lib.rs:83
↓ 1 callers
Function
compute_name_resolution
(module: &Module, scopes: &ModuleScopes)
crates/lang_ast/src/nameres.rs:295
↓ 1 callers
Method
compute_narrow_override
Compute the override TyId for a single NarrowBinding. Given a predicate and the name it narrows, returns a TyId representing the narrowed type as `In
crates/lang_check/src/infer_expr.rs:689
↓ 1 callers
Function
compute_scopes
Build scopes for a module.
crates/lang_ast/src/nameres.rs:122
↓ 1 callers
Method
constrain_attrset_frozen
Lazy field-level materialization for `AttrSet <: Frozen(OutputTy)`. Mirror of `constrain_frozen_attrset`. For each field in the sub attrset, look it
crates/lang_check/src/constrain.rs:811
↓ 1 callers
Method
constrain_attrsets
Width subtyping for attribute sets: the sub-type must have every field the super-type has, and each field must be a subtype. The sub-type can have ext
crates/lang_check/src/constrain.rs:613
↓ 1 callers
Method
constrain_concrete
Structural subtyping between two concrete types. `sub_id`/`sup_id` are the original TyIds from `constrain()` — passed through so that Inter/Union dec
crates/lang_check/src/constrain.rs:178
↓ 1 callers
Method
constrain_frozen_attrset
Lazy field-level materialization for `Frozen(OutputTy) <: AttrSet`. Instead of interning the entire frozen OutputTy (which may have hundreds of field
crates/lang_check/src/constrain.rs:663
↓ 1 callers
Method
constrain_frozen_lambda
Lazy structural decomposition for `Frozen(OutputTy) <: Lambda`. For large imported types (e.g. hackage-packages.nix returning a 16K-field attrset), i
crates/lang_check/src/constrain.rs:725
↓ 1 callers
Method
constrain_lambda_frozen
Mirror of `constrain_frozen_lambda` for `Lambda <: Frozen(OwnedTy)`.
crates/lang_check/src/constrain.rs:766
↓ 1 callers
Method
constrain_lhs_inter
`Inter(a, b) <: sup` — the "annoying" case. Use variable isolation (MLstruct-style) when one member is a variable. Before applying variable isolation
crates/lang_check/src/constrain.rs:388
↓ 1 callers
Method
constrain_rhs_union
`sub <: Union(a, b)` — route the sub-type to the correct union member. Uses a two-phase approach: try concrete match first, fall to variable. This av
crates/lang_check/src/constrain.rs:544
↓ 1 callers
Method
contains_bare_tyvar
Returns true if this type is or contains a bare TyVar outside Lambda params.
crates/lang_ty/src/arena.rs:288
↓ 1 callers
Method
contains_bare_tyvar_inner
(&self, ty: TyRef, visited: &mut FxHashSet<TyRef>)
crates/lang_ty/src/arena.rs:293
↓ 1 callers
Method
contains_intersection
Returns true if this type or any child contains an Intersection.
crates/lang_ty/src/arena.rs:273
↓ 1 callers
Method
contains_named
Returns true if this type contains a Named wrapper.
crates/lang_ty/src/arena.rs:353
↓ 1 callers
Method
contains_neg
Returns true if this type or any child contains a Neg.
crates/lang_ty/src/arena.rs:278
↓ 1 callers
Method
contains_top_or_bottom
Returns true if this type is or contains Top or Bottom.
crates/lang_ty/src/arena.rs:283
↓ 1 callers
Method
contains_union_resolving
Like `contains_union`, but expands alias references via a lookup closure. This catches unions hidden behind type aliases (e.g. `Nullable = int | null`
crates/comment_parser/src/lib.rs:478
↓ 1 callers
Method
contains_union_resolving_inner
(&self, lookup: &F, depth: usize)
crates/comment_parser/src/lib.rs:485
↓ 1 callers
Method
context_key
(&self)
crates/cli/src/gen_stubs.rs:502
↓ 1 callers
Function
contexts_compatible
Check if two context names are compatible (allowing aliases).
crates/cli/src/check.rs:860
↓ 1 callers
Function
create_nixpkgs_like_workspace
Create a temp directory that mimics a nixpkgs checkout: tix.toml at root + a pkgs/ file. Returns the root PathBuf (caller is responsible for cleanup).
crates/lsp/tests/e2e_nixpkgs.rs:472
↓ 1 callers
Method
decompose_narrow_inter
Decompose a narrowing override `Inter(base, constraint)` into its parts. After this fix, overrides always have the shape `Inter(var, C)` where C may
crates/lang_check/src/infer_expr.rs:782
↓ 1 callers
Method
default
()
crates/lang_ty/src/arena.rs:707
↓ 1 callers
Function
default_cache_dir
()
crates/repo_check/src/manifest.rs:21
↓ 1 callers
Function
default_timeout
()
crates/repo_check/src/manifest.rs:25
↓ 1 callers
Method
demand_batch
Batch inference: infer all files in parallel with demand-driven import resolution. Returns results in the same order as the input files.
crates/lang_check/src/coordinator.rs:252
↓ 1 callers
Method
detect_conditional_apply_narrowing
Check if `fun_expr` is `Apply(conditional_fn, cond)` where `conditional_fn` is a known conditional library function. If so, analyze `cond` for narrowi
crates/lang_check/src/infer_expr.rs:655
↓ 1 callers
Function
detect_store_prefix
Auto-detect the common /nix/store/...-source/ prefix across all entries. Noogle data references a single nixpkgs store path for all positions.
scripts/gen_lib_stubs.py:630
↓ 1 callers
Method
detected_cooccurring
Extract the set of variables that were visited at both polarities during canonicalization. Used by the two-pass strategy.
crates/lang_check/src/collect.rs:191
↓ 1 callers
Method
document_highlight
Document highlight at a given position.
crates/lsp/tests/common/mod.rs:497
↓ 1 callers
Method
document_links
Document links for a file.
crates/lsp/tests/common/mod.rs:557
↓ 1 callers
Function
edit_distance
Standard Levenshtein edit distance between two strings.
crates/lang_check/src/diagnostic.rs:357
↓ 1 callers
Function
emit_pkg_tree
Recursively emit val/module declarations for a package tree at the given indentation level. Names that cannot be valid bare identifiers are emitted as
crates/cli/src/gen_stubs.rs:1192
↓ 1 callers
Method
enter_level
(&mut self)
crates/lang_check/src/storage.rs:165
↓ 1 callers
Method
eq
(&self, other: &Self)
crates/lang_ty/src/arena.rs:812
↓ 1 callers
Function
error_to_diagnostic
Convert a single `LocatedError` into a `TixDiagnostic`. Each error gets its own arena so that diagnostics are fully self-contained and can be stored,
crates/lang_check/src/diagnostic.rs:581
↓ 1 callers
Method
example_glob
(&self)
crates/cli/src/gen_stubs.rs:510
↓ 1 callers
Method
exit_level
(&mut self)
crates/lang_check/src/storage.rs:169
↓ 1 callers
Method
expand_bounds_empty_fallback
Fallback when a variable has no concrete bounds in the given polarity. - **Positive**: check for atom-only upper bounds (primitives, negations of pri
crates/lang_check/src/collect.rs:497
↓ 1 callers
Function
expected_context_name
Map NixFileKind to expected context name (if any).
crates/cli/src/check.rs:808
↓ 1 callers
Method
expr_lambda_arity
Count the number of visible nested lambda parameters in an expression. For `x: y: body`, this returns 2. For a non-lambda, returns 0.
crates/lang_check/src/lib.rs:1071
↓ 1 callers
Function
expr_literal_primitive
If the expression is a literal (or a keyword like null/true/false that is represented as a Reference in the AST), return the corresponding NarrowPrimi
crates/lang_ast/src/narrow.rs:433
↓ 1 callers
Function
extract_doc_block
(pair: &Pair<Rule>)
crates/comment_parser/src/tix_collect.rs:34
↓ 1 callers
Method
extract_field_ty
Extract a field's type from a TyId that should be an AttrSet.
crates/lang_check/src/lib.rs:1722
↓ 1 callers
Function
extract_import_path
Extract the path string from an import_path rule.
crates/comment_parser/src/tix_collect.rs:472
↓ 1 callers
Function
extract_import_path
Extract the path string from an import_path rule: `import_kw "(" string_literal ")"`.
crates/comment_parser/src/collect.rs:280
↓ 1 callers
Function
extract_lambda_param_fields
Walk an OutputTy function type to extract the AttrSet field types from the parameter position. Returns a map of field name → TyRef within the same are
crates/lang_check/src/infer.rs:65
↓ 1 callers
Function
extract_list_element_ty
Extract the element type from a list type, unwrapping Named and Union/Intersection wrappers as needed.
crates/lsp/src/ty_nav.rs:286
↓ 1 callers
Function
extract_main_signature
Extract the main 'name :: type' line from a possibly multi-line signature. Returns just the type part (after ::), or None if we can't parse it.
scripts/gen_lib_stubs.py:322
↓ 1 callers
Method
extract_param_ty
Extract the parameter type from a TyId that should be a Lambda. Follows Named wrappers and single-lower-bound variables.
crates/lang_check/src/lib.rs:1700
↓ 1 callers
Method
extract_return_ty
Extract the return type from a TyId that should be a Lambda.
crates/lang_check/src/lib.rs:1711
↓ 1 callers
Function
extract_return_type
Peel one Lambda layer from a type to get the return type. `callPackage` applies the dependency-injection argument (the first parameter of the package
crates/lang_check/src/imports.rs:187
↓ 1 callers
Function
extract_type_alias_from_source
Extract a named type alias from Nix source by scanning `/** ... */` blocks.
crates/lsp/src/completion.rs:1117
↓ 1 callers
Function
fields_of_root_attrset
Collect NameIds of fields in the root-level attrset, chasing through LetIn bodies (Nix files commonly have `let ... in { fields }` at the top).
crates/lsp/src/rename.rs:156
↓ 1 callers
Method
finalize_inference
(&mut self)
crates/lang_check/src/collect.rs:1534
↓ 1 callers
Function
find_and_load_config
Find and load tix.toml configuration. Returns the config and its directory.
crates/cli/src/check.rs:769
↓ 1 callers
Function
find_attrset_insert_point
Find the insertion point for a new field in an attrset definition. Given the `set` ExprId of a Select (the thing being accessed), chase through name
crates/lsp/src/code_actions.rs:178
↓ 1 callers
Function
find_cross_file_field_references_inner
( state: &AnalysisState, snapshots: &dashmap::DashMap<PathBuf, crate::state::FileSnapshot>, origin
crates/lsp/src/import_nav.rs:168
↓ 1 callers
Function
find_enclosing_select_set
Find the `set` ExprId of the Select expression that contains `attr_expr` in its attrpath. The MissingField diagnostic's `at_expr` points to the attrp
crates/lsp/src/code_actions.rs:152
↓ 1 callers
Function
find_field_in_expr
Try to find a static binding named `field_name` in the expression `expr_id`. Handles two cases: - Direct attrset literal: `{ field_name = ...; }` - O
crates/lsp/src/goto_def.rs:331
↓ 1 callers
Function
find_generate_nix
Find the generate-stubs-runtime.nix shipped with the tix package.
crates/lsp/src/store_stubs.rs:349
↓ 1 callers
Function
find_if_condition
Find the first `IfThenElse` expression and return its condition ExprId.
crates/lang_ast/src/tests.rs:30
↓ 1 callers
Function
find_outermost_apply
Walk up from a syntax node through ancestors, collecting the outermost Apply node that forms a contiguous application chain. For `f a b c` (parsed as
crates/lsp/src/signature_help.rs:87
↓ 1 callers
Function
find_path_literal_target
Scan an expression subtree for a single path literal that resolves to a Nix file. This is a heuristic fallback for patterns like `pkgs.callPackage ./
crates/lsp/src/state.rs:888
↓ 1 callers
Function
find_references_cross_file
Find all references to a name, including cross-file references via imports. Extends `find_references` with cross-file search: - If the cursor is on a
crates/lsp/src/references.rs:121
↓ 1 callers
Function
find_symbol
Look for "outer" with a child "inner".
crates/lsp/tests/e2e_document_symbols.rs:90
↓ 1 callers
Function
find_with_field
Walk the `with` chain (innermost first) and return the `AstPtr` for the first environment that statically contains `field_name` as a binding key.
crates/lsp/src/goto_def.rs:308
↓ 1 callers
Function
fixture_state
Set up an AnalysisState pointing at the test/nixos_fixture/ directory. Loads the fixture's tix.toml and configures the state so that context resoluti
crates/lsp/src/completion.rs:4239
↓ 1 callers
Function
fixup_tix_record
Post-process translated records to ensure .tix syntax compliance. - Remove trailing commas before `}` - Ensure open records have `...` before
scripts/gen_lib_stubs.py:456
↓ 1 callers
Function
flatten_and_filter
SymbolInformation.deprecated field
crates/lsp/src/workspace_symbols.rs:99
↓ 1 callers
Function
flatten_apply_chain
Flatten an Apply chain into a list of (function, argument) pairs in application order (first param first). For `Apply(Apply(Apply(f, a), b), c)`: - o
crates/lsp/src/signature_help.rs:112
↓ 1 callers
Function
flatten_union
Collect all leaf (non-Union) members from a possibly nested union tree.
crates/cli/src/gen_stubs.rs:156
↓ 1 callers
Method
for_each_child
Visit every direct child TyRef for read-only inspection.
crates/lang_ty/src/arc_ty.rs:302
↓ 1 callers
Function
format_description
Format a description for emission as `##` doc comment lines. By default, uses only the first paragraph (up to the first blank line).
crates/cli/src/gen_stubs.rs:434
↓ 1 callers
Function
format_field_name
Format a field name, quoting it if it contains characters not valid as bare identifiers (e.g. dots in `net.core.rmem_max`).
crates/cli/src/gen_stubs.rs:332
↓ 1 callers
Function
format_manual_module
Format a manually-maintained module block with optional submodules. Each entry is (val_name, type_signature, doc_comment_or_None).
scripts/gen_lib_stubs.py:792
↓ 1 callers
Function
format_param_doc
Get documentation for a parameter type (e.g. listing pattern fields).
crates/lsp/src/signature_help.rs:279
↓ 1 callers
Function
format_param_type
Format a single parameter type for the signature label. For attrset types (pattern parameters), shows a condensed field list. For other types, uses t
crates/lsp/src/signature_help.rs:248
↓ 1 callers
Function
format_signature
Format the signature label and parameter labels for display. For a function type `a -> b -> c`, the label is `a -> b -> c` and the parameter labels a
crates/lsp/src/signature_help.rs:219
↓ 1 callers
Function
format_source_annotation
Try to format a `NixPosition` as an `@source` annotation string. Strips the absolute path against configured source roots to produce a relative annot
crates/cli/src/gen_stubs.rs:24
← previous
next →
701–800 of 2,574, ranked by callers