MCPcopy Create free account

hub / github.com/JRMurr/tix / functions

Functions2,574 in github.com/JRMurr/tix

↓ 3 callersMethodnormalize_replacing_unknown
Like `normalize_vars`, but displays `?` when the entire type is a bare type variable (meaning "unconstrained / unknown").
crates/lang_ty/src/arena.rs:173
↓ 3 callersMethodnormalize_vars
Clone the arena, normalize type variable numbering to 1..n.
crates/lang_check/src/tests.rs:62
↓ 3 callersMethodoffset_free_vars
Offset all free type variables by `num_free_vars`, updating the counter.
crates/lang_ty/src/arbitrary.rs:213
↓ 3 callersFunctionoptions_to_attrset_ty_with_docs
Like `options_to_attrset_ty` but with doc comment emission control and optional `@source` annotation emission.
crates/cli/src/gen_stubs.rs:351
↓ 3 callersFunctionparam_labels
Extract parameter labels from a SignatureHelp result.
crates/lsp/src/signature_help.rs:351
↓ 3 callersFunctionparse_and_collect
TODO: might be worth caching this
crates/comment_parser/src/lib.rs:131
↓ 3 callersFunctionparse_check_json
Parse the JSON output from `tix --format json check` and extract stats + diagnostics.
crates/repo_check/src/results.rs:156
↓ 3 callersFunctionparse_source_loc
Parse a source location string like `nixpkgs:lib/trivial.nix:61:8`. Splits from the right on `:` to extract line/column, then splits the remaining pre
crates/comment_parser/src/tix_collect.rs:84
↓ 3 callersFunctionpkg_alias
Helper to build an alias entry pointing at another package set.
crates/cli/src/gen_stubs.rs:2795
↓ 3 callersFunctionpkg_functor
Helper to build a callable attrset (has __functor).
crates/cli/src/gen_stubs.rs:2808
↓ 3 callersFunctionpkg_lambda_with_args
Helper to build a lambda with known parameter names.
crates/cli/src/gen_stubs.rs:2821
↓ 3 callersFunctionprepare_rename
Verify that the cursor is on a renameable name and return its range.
crates/lsp/src/rename.rs:22
↓ 3 callersMethodpropagate_annotation_bounds
Walk an interned annotation type and the corresponding expression in parallel, adding the annotation's param types as lower bounds on the inferred par
crates/lang_check/src/lib.rs:1376
↓ 3 callersFunctionread_json_file
Read a pre-computed option tree JSON file.
crates/cli/src/gen_stubs.rs:834
↓ 3 callersFunctionregistry_with_stub
Helper: create a registry with a stub file on disk, returning the registry and the stub file path.
crates/lsp/src/type_def.rs:169
↓ 3 callersFunctionremove_subsumed
Remove patterns subsumed by a broader recursive glob in the same set.
crates/cli/src/init.rs:549
↓ 3 callersFunctionrename_at_marker
Helper for single-file rename tests (no cross-file context).
crates/lsp/src/rename.rs:314
↓ 3 callersFunctionresolve_decl_locations
Given an optional alias name, look up all source locations and convert each to an LSP Location. Reads each `.tix` file from disk to build a LineIndex
crates/lsp/src/type_def.rs:97
↓ 3 callersFunctionresolve_directory_path
Resolve a path that may point to a directory, applying Nix's convention of loading `default.nix` from directories. Returns `None` if the path is a di
crates/lang_check/src/imports.rs:269
↓ 3 callersFunctionresolve_export_typeof
Substitute `TypeOf(name)` nodes in exported `ParsedTy` trees with the actual inferred types from `binding_types`. Unresolved `TypeOf` nodes (name not
crates/lang_check/src/lib.rs:186
↓ 3 callersFunctionresolve_through_segments
Walk a type through a series of field names, resolving each one.
crates/lsp/src/ty_nav.rs:33
↓ 3 callersMethodrestore_narrow_overrides
Restore narrowing overrides from saved state. Handles nested narrowing correctly by restoring in reverse order.
crates/lang_check/src/infer_expr.rs:840
↓ 3 callersMethodroot
(&self)
crates/lsp/src/test_util.rs:257
↓ 3 callersFunctionrss_mb
Read current process RSS from /proc/self/statm (Linux). Returns MB, or 0 on non-Linux platforms.
crates/lang_check/src/infer.rs:43
↓ 3 callersFunctionrun_inference
Run type inference using precomputed syntax data. Does not need the analysis mutex. Returns the check result and timing. Delegates to `lang_check::ru
crates/lsp/src/state.rs:128
↓ 3 callersMethodscope_for_expr
(&self, expr_id: ExprId)
crates/lang_ast/src/nameres.rs:147
↓ 3 callersFunctionselection_ranges
( analysis: &FileSnapshot, positions: Vec<Position>, root: &rnix::Root, )
crates/lsp/src/selection_range.rs:13
↓ 3 callersFunctionunknown_type_diagnostics
Generate LSP diagnostics for bindings whose inferred type is `?` (bare type variable). Skips params/pat-fields (genuinely polymorphic) and names that
crates/lsp/src/diagnostics.rs:109
↓ 3 callersMethodwith_deadline
(mut self, deadline: Instant)
crates/lang_check/src/collect.rs:179
↓ 3 callersMethodwith_imported_type_exports
Set imported type exports for cross-file type import resolution.
crates/lang_check/src/lib.rs:999
↓ 3 callersMethodwith_typeof_import_types
Set inferred file types for resolving `typeof import("path")`.
crates/lang_check/src/lib.rs:1014
↓ 3 callersMethodwrite_truncated
( &self, ty: TyRef, buf: &mut String, state: &mut TruncState<'_>, dept
crates/lang_ty/src/arena.rs:505
↓ 2 callersMethodall_doc_strings
Iterate over all doc comment strings stored in this map (from both expressions and names).
crates/lang_ast/src/lib.rs:273
↓ 2 callersMethodall_files
Flat list of all files in this layer (convenience for eviction logic).
crates/lang_check/src/file_graph.rs:38
↓ 2 callersMethodalloc_empty_open_attrset
Allocate an empty open attrset type `{ ... }`.
crates/lang_check/src/infer_expr.rs:45
↓ 2 callersMethodapply_subs
(&self, subs: &std::collections::HashMap<u32, u32>)
crates/lang_ty/src/arbitrary.rs:227
↓ 2 callersFunctionarb_frozen_attrset
Generate a random attrset with 1-4 fields of primitive types. Returns (RawTy::AttrSet, nix_text, field_names).
crates/lang_check/src/pbt/frozen.rs:181
↓ 2 callersFunctionarb_raw_ty
(args: RecursiveParams)
crates/lang_ty/src/arbitrary.rs:326
↓ 2 callersFunctionare_output_types_disjoint
Check whether two OutputTy values are provably disjoint (their intersection is uninhabited). Delegates to the shared `are_shapes_disjoint` logic in `l
crates/lang_check/src/collect.rs:1171
↓ 2 callersFunctionare_shapes_disjoint
Check whether two constructor shapes are provably disjoint (their intersection is uninhabited). Disjointness rules: - **Different constructor kinds**
crates/lang_ty/src/disjoint.rs:55
↓ 2 callersFunctionarg_for_param
Generate a concrete argument for a parameter type.
crates/lang_check/src/pbt/stub_compose.rs:523
↓ 2 callersFunctionattr_strat
( inner: impl Strategy<Value = (RawTy, NixTextStr)>, )
crates/lang_check/src/pbt/mod.rs:252
↓ 2 callersFunctionbool_
()
crates/lang_check/src/tests.rs:125
↓ 2 callersMethodbuild_registry
Build a fresh TypeAliasRegistry from editor-provided stubs. Built-in nixpkgs stubs are always loaded. Additional stubs from editor settings (`nix.ser
crates/lsp/src/server.rs:207
↓ 2 callersFunctioncanonicalize_standalone_with_deadline
( table: &TypeStorage, ty_id: TyId, polarity: Polarity, deadline: Option<Instant>, )
crates/lang_check/src/collect.rs:741
↓ 2 callersFunctioncheck_multifile
(files: &[(&str, &str)])
crates/lang_check/src/tests.rs:313
↓ 2 callersFunctioncheck_multifile_fixpoint
Multi-file inference with fixpoint iteration for cyclic imports. Unlike `check_multifile` which processes deps in a single pass, this iterates all fi
crates/lang_check/src/tests.rs:332
↓ 2 callersFunctioncheck_source_with_aliases
Type-check Nix source with a pre-loaded type alias registry.
crates/lang_check/src/lib.rs:336
↓ 2 callersMethodclose
Close a file.
crates/lsp/tests/common/mod.rs:242
↓ 2 callersFunctioncode_actions
Compute code actions for the given range in the document. The LSP client sends the cursor range and any diagnostics the editor shows at that range. W
crates/lsp/src/code_actions.rs:29
↓ 2 callersMethodcode_actions
Code actions for a range in a file.
crates/lsp/tests/common/mod.rs:644
↓ 2 callersFunctioncollect_applied_type
Collect an applied type: `type_func "(" type_expr ")"`.
crates/comment_parser/src/tix_collect.rs:451
↓ 2 callersFunctioncollect_applied_type
Collect an applied type: `type_func "(" type_expr ")"`.
crates/comment_parser/src/collect.rs:262
↓ 2 callersFunctioncollect_attrpath_segments
Collect attrpath segments from an Attrpath node, relative to a boundary position. When `inclusive` is true (hover), includes the segment whose end >=
crates/lsp/src/ty_nav.rs:366
↓ 2 callersFunctioncollect_attrset
(pairs: Pairs<Rule>, ctx: &mut CollectCtx)
crates/comment_parser/src/tix_collect.rs:503
↓ 2 callersFunctioncollect_attrset
Collect an attrset type from its children: `named_field*`, optional `dyn_field`, optional `open_marker`.
crates/comment_parser/src/collect.rs:314
↓ 2 callersFunctioncollect_binding_symbols
( analysis: &FileSnapshot, root: &rnix::Root, statics: &[(NameId, BindingValue)], is_attrset:
crates/lsp/src/document_symbol.rs:53
↓ 2 callersFunctioncollect_body_references
Collect reference names and select-chain leaf names from a body expression. Stops at nested Lambda boundaries to avoid inner-scope pollution.
crates/lang_ast/src/classify.rs:355
↓ 2 callersFunctioncollect_import_paths_from_parsed_ty
(ty: &ParsedTy, out: &mut HashSet<String>)
crates/lang_check/src/imports.rs:605
↓ 2 callersFunctioncollect_import_type
Collect a cross-file type import: `import_kw "(" string_literal ")" "." user_type`.
crates/comment_parser/src/tix_collect.rs:431
↓ 2 callersFunctioncollect_import_type
Collect a cross-file type import: `import_kw "(" string_literal ")" "." user_type`.
crates/comment_parser/src/collect.rs:242
↓ 2 callersFunctioncollect_intersection
( pairs: Pairs<Rule>, ctx: &mut CollectCtx, )
crates/comment_parser/src/tix_collect.rs:493
↓ 2 callersFunctioncollect_intersection
Collect an intersection type from its children: `atom_type ("&" atom_type)*`. If only one member, returns it directly.
crates/comment_parser/src/collect.rs:305
↓ 2 callersFunctioncollect_parent_attrpath_context
Walk up through nested AttrSet → AttrpathValue chains to collect parent path context. For `{ services.openssh = { enable. } }`, when called on the in
crates/lsp/src/ty_nav.rs:168
↓ 2 callersFunctioncollect_postfix
Collect a postfix field access chain: `atom_type ("." field_access_key)*`.
crates/comment_parser/src/tix_collect.rs:392
↓ 2 callersFunctioncollect_postfix
Collect a postfix field access chain: `atom_type ("." field_access_key)*`. Wraps the base type in FieldAccess for each `.key` suffix.
crates/comment_parser/src/collect.rs:203
↓ 2 callersFunctioncollect_symbols
Recursively collect symbols from an expression.
crates/lsp/src/document_symbol.rs:27
↓ 2 callersFunctioncollect_typeof
Collect a typeof expression: `typeof_kw (import_path | identifier)`.
crates/comment_parser/src/tix_collect.rs:408
↓ 2 callersFunctioncollect_typeof
Collect a typeof expression: `typeof_kw (import_path | identifier)`.
crates/comment_parser/src/collect.rs:219
↓ 2 callersFunctioncollect_visible_names
Collect all names visible at a given scope, walking the scope chain from inner to outer. Inner definitions shadow outer ones (first insertion wins).
crates/lsp/src/completion.rs:1294
↓ 2 callersFunctioncombined_context_stubs
Build the combined context stubs for ContextSetup mode. Concatenates all stub files and adds `val lib :: Lib;` for context arg typing.
crates/lsp/src/pbt_stubs.rs:242
↓ 2 callersMethodcompact
Deep-copy a type and its reachable subtree into a new compact arena.
crates/lang_ty/src/arena.rs:494
↓ 2 callersFunctioncompile_glob_set
(patterns: &[String])
crates/cli/src/config.rs:170
↓ 2 callersFunctioncomplete_at
Analyze source and get completions at a given byte offset.
crates/lsp/src/completion.rs:1477
↓ 2 callersFunctioncomplete_fixture_markers
Run completions at marker positions in a fixture file.
crates/lsp/src/completion.rs:4257
↓ 2 callersFunctioncount_kinds
(highlights: &[DocumentHighlight])
crates/lsp/src/document_highlight.rs:65
↓ 2 callersFunctioncursor_is_in_attrset_value
Check if a token offset falls inside the value expression of any `AttrpathValue` entry in the given attrset. Used to distinguish cursor-in-key-positio
crates/lsp/src/completion.rs:707
↓ 2 callersFunctioncustom_stubs_cache_dir
Return the merged custom-stubs cache directory (`~/.cache/tix/custom-stubs/`). Each entry under this path is a `<hash>/` subdirectory containing the m
crates/lsp/src/store_stubs.rs:230
↓ 2 callersMethoddecl_doc
Look up the doc comment for a top-level declaration by name.
crates/lang_check/src/aliases.rs:47
↓ 2 callersFunctiondecl_location_to_lsp
Convert a `DeclLocation` from the registry into an LSP `Location`. When the declaration has an `@source` annotation and the corresponding source root
crates/lsp/src/goto_def.rs:161
↓ 2 callersMethoddedup_bounds
Sort and deduplicate the bounds vectors of a variable. No-op for concrete entries. Reduces memory and speeds up subsequent bounds walks (extrusion, co
crates/lang_check/src/storage.rs:188
↓ 2 callersFunctiondetect_apply_narrowing
Parse Nix source with a curried conditional call (`f cond body`) and run detect_conditional_apply_narrowing on the inner Apply. In curried `f cond bo
crates/lang_ast/src/narrow.rs:1289
↓ 2 callersFunctiondetect_conditional_fn
Check whether an expression refers to a known conditional library function (e.g. `lib.optionalString`, `optionalString`, `lib.strings.optionalString`)
crates/lang_ast/src/narrow.rs:361
↓ 2 callersFunctiondetect_panic
Detect a panic in stderr output.
crates/repo_check/src/results.rs:225
↓ 2 callersFunctiondiagnostics_to_json
Convert diagnostics for a single file into JSON format. Returns `(file_result, error_count, warning_count)`.
crates/cli/src/json_output.rs:99
↓ 2 callersMethoddisplay_truncated
Render with truncation for human-facing messages.
crates/lang_check/src/diagnostic.rs:43
↓ 2 callersMethoddocs
(&self)
crates/lsp/src/test_util.rs:253
↓ 2 callersMethoddocs_for_name
(&self, name_id: NameId)
crates/lang_ast/src/lib.rs:263
↓ 2 callersFunctiondocument_highlight
( analysis: &FileSnapshot, pos: Position, root: &rnix::Root, )
crates/lsp/src/document_highlight.rs:13
↓ 2 callersMethoddocument_symbols
Document symbols for a file.
crates/lsp/tests/common/mod.rs:521
↓ 2 callersFunctionemit_function_args
Format function parameter names from `builtins.functionArgs` into a .tix attrset pattern. Each param gets a unique generic type variable. Params with
crates/cli/src/gen_stubs.rs:1288
↓ 2 callersFunctionerrors_to_diagnostics
Convert a batch of `LocatedError`s into `TixDiagnostic`s.
crates/lang_check/src/diagnostic.rs:670
↓ 2 callersFunctionexpect_module
(decls: &[TixDeclaration], idx: usize)
crates/comment_parser/src/tix_collect.rs:617
↓ 2 callersFunctionexpected_at
Get all expected field names for a module path.
crates/lsp/src/pbt_stubs.rs:233
↓ 2 callersMethodexpr_for_ty
Reverse of `ty_for_expr`: given a TyId, return the ExprId it was pre-allocated for, or None if the TyId is outside the expression range (i.e. it's a n
crates/lang_check/src/lib.rs:1105
↓ 2 callersFunctionextract_description
Extract a short description from noogle content. Takes the first paragraph (before # Inputs, # Type, # Examples, etc.).
scripts/gen_lib_stubs.py:568
↓ 2 callersFunctionextract_source_loc
Extract a @source location string from a noogle entry. Prefers lambda_position (points to function body) over attr_position (points to the at
scripts/gen_lib_stubs.py:646
↓ 2 callersMethodextrude_reuse
(&mut self, ty_id: TyId, cache: &mut FxHashMap<TyId, TyId>)
crates/lang_check/src/infer.rs:987
↓ 2 callersMethodfield_source_location
Look up the `@source` location for a field within a type alias. `alias` is the type alias name (e.g. "NixosConfig"). `path` is the dotted field path (
crates/lang_check/src/aliases.rs:318
↓ 2 callersFunctionfind_binding_expr
Find the value ExprId for a name's binding via the pre-built module index.
crates/lsp/src/inlay_hint.rs:111
← previousnext →401–500 of 2,574, ranked by callers