MCPcopy Create free account

hub / github.com/JRMurr/tix / functions

Functions2,574 in github.com/JRMurr/tix

↓ 1 callersMethodupdate_config
Update the project config after `initialize()` discovers tix.toml.
crates/lsp/src/state.rs:195
↓ 1 callersMethodupdate_file_inner
( &mut self, path: PathBuf, contents: String, )
crates/lsp/src/state.rs:517
↓ 1 callersMethodupdate_syntax_phase_a
Phase A: Parse, lower, nameres, SCC grouping. Fast (~5-50ms). Returns a `SyntaxData` (with empty import fields) for immediate DashMap publication, pl
crates/lsp/src/state.rs:654
↓ 1 callersFunctionuppercase_primitive_alias
Nixpkgs doc comments conventionally use uppercase primitive names (`String`, `Bool`, `Int`, etc.) while Tix's grammar only recognizes lowercase. Map t
crates/lang_check/src/lib.rs:950
↓ 1 callersFunctionvalidate_classification
Validate that a file's classification matches its tix.toml context assignment.
crates/cli/src/check.rs:819
↓ 1 callersFunctionwalk_dir_matching
Recursively walk `dir`, matching files against `glob_set` using paths relative to `root`. Note: `walk_dir_matching` does not follow directory symlinks
crates/lsp/src/project_config.rs:413
↓ 1 callersFunctionwalk_nix_files
Walk `root` collecting `.nix` files, respecting `.gitignore` rules. Uses the `ignore` crate which handles `.gitignore`, `.git/info/exclude`, and glob
crates/cli/src/config.rs:87
↓ 1 callersFunctionwarn_empty_context_once
Returns `true` the first time `entry` is seen, `false` on subsequent calls. Used to log the empty-context warning at most once per entry.
crates/lsp/src/project_config.rs:273
↓ 1 callersMethodwith_cooccurring
(mut self, cooccurring: FxHashSet<TyId>)
crates/lang_check/src/collect.rs:184
↓ 1 callersMethodwith_rss_limit
Set an RSS limit in MB. When RSS exceeds this threshold, inference bails out with partial results. Used by the LSP to prevent OOM crashes from RLIMIT_
crates/lang_check/src/lib.rs:1022
↓ 1 callersMethodwrap_named_if_annotated
If `name_slot` (a variable) has a Named lower bound from a type annotation, wrap `poly_ty` in the same Named. This ensures extrusion preserves the ali
crates/lang_check/src/infer.rs:1627
↓ 1 callersFunctionwrite_attrset_display
( arena: &TypeArena, attr: &AttrSetTy<TyRef>, f: &mut fmt::Formatter<'_>, )
crates/lang_ty/src/arena.rs:1022
↓ 1 callersFunctionwrite_cache
Atomically write a cache entry.
crates/lsp/src/store_stubs.rs:545
↓ 1 callersMethodwrite_file
Write (or overwrite) a file within the project directory.
crates/lsp/src/test_util.rs:113
↓ 1 callersFunctionwrite_tix_toml
(entry: &RepoEntry, init_stdout: Option<&str>, tix_toml_path: &PathBuf)
crates/repo_check/src/runner.rs:157
↓ 1 callersFunctionwrite_ty
(arena: &TypeArena, ty: TyRef, f: &mut fmt::Formatter<'_>)
crates/lang_ty/src/arena.rs:967
Functionabsorb_closed_not_absorbed
()
crates/lang_check/src/collect.rs:2378
Functionabsorb_open_wildcard_absorbs_open_with_fields
()
crates/lang_check/src/collect.rs:2366
Functionabsorb_open_with_shared_fields
()
crates/lang_check/src/collect.rs:2402
Functionabsorb_partial_subsumption_keeps_both
()
crates/lang_check/src/collect.rs:2390
Functionabsorb_preserves_non_attrset_members
()
crates/lang_check/src/collect.rs:2414
Functionactive_param
Extract the active parameter index from a SignatureHelp result.
crates/lsp/src/signature_help.rs:343
Functionadd_missing_field_inserts_into_attrset
()
crates/lsp/src/code_actions.rs:864
Functionadd_missing_field_offers_quick_fix
()
crates/lsp/src/code_actions.rs:847
Functionadd_type_annotation_inserts_doc_comment
()
crates/lsp/src/code_actions.rs:923
Functionadd_type_annotation_offers_refactor
()
crates/lsp/src/code_actions.rs:908
Functionaggregates_across_files
()
crates/lsp/src/workspace_symbols.rs:196
Methodalias_count
Number of registered type aliases.
crates/lang_check/src/aliases.rs:508
Functionalias_location_tracked
()
crates/lang_check/src/aliases.rs:1833
Functionalias_named_flows_through_let
()
crates/lang_check/src/tests.rs:3586
Functionalias_named_from_global_val_return
()
crates/lang_check/src/tests.rs:3492
Functionalias_named_in_annotation
()
crates/lang_check/src/tests.rs:3361
Functionalias_provenance_survives_extrusion
()
crates/lang_check/src/tests.rs:3400
Functionalias_resolution_in_annotation
()
crates/lang_check/src/tests.rs:1803
Functionalias_with_union_in_param_skips_bidirectional_constraints
()
crates/lang_check/src/tests.rs:1909
Functionaliased_builtin_traces_through
()
crates/lang_ast/src/narrow.rs:1129
Functionalloc_concrete_double_negation_elimination
()
crates/lang_check/src/type_table.rs:510
Functionalloc_prim_deduplicates
()
crates/lang_check/src/type_table.rs:527
Functionand_combines_then_branches
()
crates/lang_ast/src/narrow.rs:883
Functionand_short_circuit_isstring
()
crates/lang_check/src/tests.rs:7308
Functionand_short_circuit_null_eq_then_field_access_fails
()
crates/lang_check/src/tests.rs:4772
Functionand_short_circuit_null_guard_field_access
()
crates/lang_check/src/tests.rs:7288
Functionand_with_unrecognized_drops_gracefully
()
crates/lang_ast/src/narrow.rs:909
Functionangle_bracket_import_display
()
crates/lang_check/src/diagnostic.rs:1035
Functionannotation_arity_mismatch_skipped_with_warning
()
crates/lang_check/src/tests.rs:5868
Functionannotation_unchecked_display
()
crates/lang_check/src/diagnostic.rs:896
Functionannotation_with_union_skipped
()
crates/lang_check/src/tests.rs:5939
Functionany_in_intersection_position
()
crates/comment_parser/src/tix_collect.rs:1026
Functionany_in_union_position
()
crates/comment_parser/src/tix_collect.rs:1011
Functionany_keyword_parses_to_top
()
crates/comment_parser/src/tix_collect.rs:987
Functionapply_op
(op: &FrozenOp, import_expr: &str)
crates/lang_check/src/pbt/frozen.rs:65
Functionapply_polymorphism
()
crates/lang_check/src/tests.rs:966
Functionapply_two_import_op
(op: &TwoImportOp)
crates/lang_check/src/pbt/frozen.rs:94
Functionarb_annotation_multi_usage
Generate multiple usage sites of the same annotated binding. `let x = f; a = x; b = x; in a` — 2-3 references to the same name.
crates/lang_check/src/pbt/mod.rs:1290
Functionarb_annotation_usage
Generate a Nix source with an annotated let-binding and a usage pattern. Returns (alias_name, nix_source).
crates/lang_check/src/pbt/mod.rs:1264
Functionarb_assert_expr
`assert <cond>; <body>`
crates/lsp/src/pbt.rs:151
Functionarb_attrset_expr
`{ <id> = <val>; ... }`
crates/lsp/src/pbt.rs:92
Functionarb_attrset_with_typeof
Generate an attrset ParsedTy with 1-3 fields, some of which may be TypeOf.
crates/lang_check/src/pbt/type_ops.rs:172
Functionarb_binop_expr
`let <id> = <val>; in <id> + <val>` — binary operations
crates/lsp/src/pbt.rs:161
Functionarb_bool
()
crates/lsp/src/pbt.rs:50
Functionarb_combined
Combined strategy: full recursive generation + type-directed generation + focused union generators. arb_nix_text and arb_nix_text_from_ty now both inc
crates/lang_check/src/pbt/mod.rs:456
Functionarb_cycle_pair
Generate a two-file cycle where A exports a local field + a field from B, and B exports a local field + a field from A.
crates/lang_check/src/pbt/cyclic.rs:26
Functionarb_cycle_ring3
Generate a three-file ring: A→B→C→A, each with a local field and a field sourced from its import.
crates/lang_check/src/pbt/cyclic.rs:43
Functionarb_cycle_with_acyclic_dep
Generate a cycle pair {A,B} plus a non-cyclic file C that both import. Tests that acyclic deps are unaffected by fixpoint iteration.
crates/lang_check/src/pbt/cyclic.rs:64
Functionarb_distinct_type_pair
Generate a (param_ty, ret_ty) pair that are always distinct, avoiding prop_assume! rejections that hit the global reject limit.
crates/lang_check/src/pbt/type_ops.rs:57
Functionarb_early_canon_stability
Generate a Nix expression: `let f = <binding>; _u0 = f <arg0>; ... in f` with 0-5 use sites, each applying f to a different concrete argument.
crates/lang_check/src/pbt/mod.rs:888
Functionarb_float
()
crates/lsp/src/pbt.rs:46
Functionarb_frozen_op
()
crates/lang_check/src/pbt/frozen.rs:55
Functionarb_hasfield_conjunction
Generate `x: if x ? a && x ? b then x.a + x.b else 0` with 2-3 distinct fields. Assert return type is int.
crates/lang_check/src/pbt/mod.rs:630
Functionarb_if_expr
`if <cond> then <then> else <else>`
crates/lsp/src/pbt.rs:100
Functionarb_if_union_expr
`if true then <a> else <b>` with different-typed branches — produces a union type. Tests LSP crash freedom on union-typed expressions.
crates/lsp/src/pbt.rs:107
Functionarb_independent_exprs
Generate multiple independent Nix expressions for let-bindings. Uses only primitives to guarantee independent SCC groups and avoid inner names (attrse
crates/lang_check/src/pbt/partial.rs:20
Functionarb_interpolation_expr
String interpolation: `"hello ${{<expr>}}"`
crates/lsp/src/pbt.rs:156
Functionarb_intersection_contradiction
Generate contradictory narrowing: `x: if isString x then (if isInt x then x else 0) else 0`. Inner then-branch: `string & int` → Bottom. Verify no pan
crates/lang_check/src/pbt/mod.rs:649
Functionarb_intersection_param
Generate `x: if builtins.<pred1> x || builtins.<pred2> x then 0 else x` The else-branch param type gets `~pred1 & ~pred2` (intersection of negations).
crates/lang_check/src/pbt/mod.rs:613
Functionarb_lambda
Lambdas (assertion-constrained + generic) with primitive or structural bodies. Tests generalization, extrusion, and early canonicalization.
crates/lang_check/src/pbt/mod.rs:436
Functionarb_lambda_expr
()
crates/lsp/src/pbt.rs:87
Functionarb_lambda_pattern
`{ <id>, ... }: <body>` — pattern lambda
crates/lsp/src/pbt.rs:83
Functionarb_lambda_simple
`<id>: <body>` — simple lambda
crates/lsp/src/pbt.rs:78
Functionarb_let_expr
`let <id> = <val>; in <id>`
crates/lsp/src/pbt.rs:73
Functionarb_list_expr
`[ <vals> ]` — list expression
crates/lsp/src/pbt.rs:126
Functionarb_narrowing_assert
Correctness: `assert pred; operation` narrows the variable for the continuation, so the type-specific operation should succeed.
crates/lang_check/src/pbt/mod.rs:1125
Functionarb_narrowing_crash_freedom
Crash-freedom: arbitrary guard combinator tree with random branch values.
crates/lang_check/src/pbt/mod.rs:1004
Functionarb_narrowing_enables_operation
Correctness: after narrowing to a type via a predicate, a type-specific operation should succeed without errors.
crates/lang_check/src/pbt/mod.rs:1093
Functionarb_narrowing_expr
`let <id> = <val>; in if <cond> then <id> else <id>` — tests narrowing paths
crates/lsp/src/pbt.rs:138
Functionarb_narrowing_hasfield_operation
Correctness: after `x ? name` or `builtins.hasAttr`, field access succeeds.
crates/lang_check/src/pbt/mod.rs:1102
Functionarb_narrowing_literal_eq
Literal equality with random orientation and op (==, !=).
crates/lang_check/src/pbt/mod.rs:1053
Functionarb_narrowing_multi_var
Multi-variable narrowing: two variables combined with `&&`.
crates/lang_check/src/pbt/mod.rs:1036
Functionarb_narrowing_negated_operation
Correctness: `!pred` flips narrowing to else-branch. The operation should succeed in the else-branch when the predicate is negated.
crates/lang_check/src/pbt/mod.rs:1115
Functionarb_narrowing_nested
Nested narrowing: two levels of predicates on same variable. Tests contradictory narrowing (e.g., isString then isInt).
crates/lang_check/src/pbt/mod.rs:1014
Functionarb_narrowing_or_combinator
`||` combining two predicates on same variable.
crates/lang_check/src/pbt/mod.rs:1075
Functionarb_narrowing_same_type
C2: Same-type branches — narrowing preserves the branch type. Both branches return a value of the same primitive type, so the result should be that pr
crates/lang_check/src/pbt/mod.rs:858
Functionarb_narrowing_smoke
C1: Narrowing never crashes — generate `x: if <pred> x then <val1> else <val2>` with random predicates and branch values.
crates/lang_check/src/pbt/mod.rs:845
Functionarb_nix_source
Combine all generators with optional nesting. Each leaf form gets roughly equal weight; a small fraction produces two-level nesting via `let x = <inne
crates/lsp/src/pbt.rs:169
Functionarb_nix_text
(args: RecursiveParams)
crates/lang_check/src/pbt/mod.rs:353
Functionarb_nix_text_from_ty
()
crates/lang_check/src/pbt/mod.rs:389
Functionarb_nix_with_stubs
()
crates/lsp/src/pbt_stubs.rs:401
Functionarb_null
()
crates/lsp/src/pbt.rs:58
Functionarb_optional_field_all_provided
Generate patterns where optional fields are provided in the call site (should also succeed).
crates/lang_check/src/pbt/mod.rs:746
Functionarb_optional_field_pattern
Generate a pattern with required + optional fields and a call site that omits the optional fields. The body sums all fields with `+`, so the expected
crates/lang_check/src/pbt/mod.rs:709
← previousnext →1,001–1,100 of 2,574, ranked by callers