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
↓ 471 callers
Method
iter
(&self)
crates/lang_ast/src/nameres.rs:327
↓ 350 callers
Method
collect
(ty: &RawTy, vars: &mut Vec<u32>, seen: &mut std::collections::HashSet<u32>)
crates/lang_ty/src/arbitrary.rs:165
↓ 288 callers
Method
push
(&mut self, buf: &mut String, s: &str)
crates/lang_ty/src/arena.rs:1072
↓ 199 callers
Method
intern
Intern a type node. Returns existing index if structurally identical node already exists, otherwise allocates and returns new index.
crates/lang_ty/src/arena.rs:51
↓ 189 callers
Method
get
Look up a type alias by name.
crates/lang_check/src/aliases.rs:503
↓ 183 callers
Method
path
(&self, name: &str)
crates/lsp/src/test_util.rs:103
↓ 165 callers
Method
get
Look up a type by index.
crates/lang_ty/src/arena.rs:62
↓ 163 callers
Function
get_inferred_root
(src: &str)
crates/lang_check/src/tests.rs:177
↓ 125 callers
Function
parse_tix_file
(source: &str)
crates/comment_parser/src/lib.rs:258
↓ 120 callers
Method
len
Number of entries (variables + concrete types) in the storage.
crates/lang_check/src/storage.rs:198
↓ 103 callers
Method
is_empty
(&self)
crates/lang_ty/src/arena.rs:70
↓ 103 callers
Function
unwrap_lambda
Helper: extract param and body from a lambda RootTy, panicking otherwise.
crates/lang_check/src/tests.rs:4560
↓ 94 callers
Method
len
(&self)
crates/lang_ty/src/arena.rs:66
↓ 94 callers
Method
position
Convert a byte offset to an LSP Position (0-indexed line and UTF-16 character offset).
crates/lsp/src/convert.rs:43
↓ 79 callers
Method
shutdown
Send shutdown + exit. Call this at the end of each test for clean teardown (avoids "server not shut down" warnings).
crates/lsp/tests/common/mod.rs:798
↓ 78 callers
Function
parse_markers
Parse `# ^<num>` marker comments from source. Embed `# ^<num>` comments in test source where `^` points to the column on the **previous line** where
crates/lsp/src/test_util.rs:26
↓ 74 callers
Method
output_ty
Access the OutputTy node at the root.
crates/lang_check/src/tests.rs:34
↓ 73 callers
Method
open_and_wait
Open a file and wait for its initial diagnostics. Convenience for the common `open() + wait_for_diagnostics()` pattern.
crates/lsp/tests/common/mod.rs:219
↓ 66 callers
Method
find
(&mut self, id: TyId)
crates/lang_check/src/collect.rs:85
↓ 66 callers
Method
is_empty
(&self)
crates/lsp/src/project_config.rs:91
↓ 65 callers
Function
labels
(items: &[CompletionItem])
crates/lsp/src/completion.rs:1496
↓ 64 callers
Method
constrain
Record that `sub <: sup` — `sub` is a subtype of `sup`.
crates/lang_check/src/constrain.rs:69
↓ 64 callers
Function
parse
(src: &str)
crates/lang_ast/src/comment.rs:180
↓ 59 callers
Method
alloc_concrete
Allocate a concrete type and return its TyId. Normalizes negations via double-negation elimination and De Morgan: - `Neg(Neg(x))` → `x` - `Neg(Inter(
crates/lang_check/src/type_table.rs:144
↓ 54 callers
Method
alloc_prim
Allocate a primitive type, deduplicating via cache.
crates/lang_check/src/type_table.rs:181
↓ 53 callers
Method
path
(&self)
crates/comment_parser/src/tix_collect.rs:274
↓ 51 callers
Method
markers
Parse `# ^<num>` markers from a file and return `BTreeMap<u32, Position>`. Reads the file from disk, calls `parse_markers()` to get byte offsets, the
crates/lsp/tests/common/mod.rs:781
↓ 49 callers
Method
load_tix_file
Load declarations from a parsed .tix file into the registry.
crates/lang_check/src/aliases.rs:222
↓ 46 callers
Function
assert_conformance
Assert both parsers produce the same ParsedTy for the given expression.
crates/comment_parser/src/lib.rs:747
↓ 46 callers
Method
canonicalize
Canonicalize and return an owned OutputTy. Looks up the arena-interned result from `canonicalize_child`. Use this when you need to inspect/transform t
crates/lang_check/src/collect.rs:258
↓ 45 callers
Function
assert_binding
( binding: &NarrowBinding, module: &crate::Module, name_text: &str, pred: &Nar
crates/lang_ast/src/narrow.rs:670
↓ 45 callers
Function
run_syntax_pipeline
Run the full syntax pipeline: parse → lower → module indices → scopes → name resolution → SCC grouping.
crates/lang_ast/src/lib.rs:137
↓ 44 callers
Function
pkg
Helper to build a flat PkgTree entry (no children).
crates/cli/src/gen_stubs.rs:2769
↓ 44 callers
Method
snapshot
(&self)
crates/lsp/src/test_util.rs:186
↓ 40 callers
Function
registry_from_tix
(tix_src: &str)
crates/lang_check/src/tests.rs:419
↓ 39 callers
Method
new_var
Allocate a fresh type variable at the current level.
crates/lang_check/src/storage.rs:99
↓ 36 callers
Method
names
(&self)
crates/lang_ast/src/lib.rs:209
↓ 35 callers
Method
get_file
(&self, path: &PathBuf)
crates/lsp/src/state.rs:644
↓ 35 callers
Method
range
Convert a rowan TextRange to an LSP Range.
crates/lsp/src/convert.rs:87
↓ 35 callers
Method
to_snapshot
Convert a FileAnalysis into a FileSnapshot. Used by tests and the transitional period where both representations coexist.
crates/lsp/src/state.rs:358
↓ 34 callers
Method
constrain_at
Constrain sub <: sup, locating any error at the current expression.
crates/lang_check/src/constrain.rs:50
↓ 34 callers
Function
write_nix
Helper: write a temp .nix file and return its canonical path.
crates/lang_check/src/coordinator.rs:693
↓ 33 callers
Method
finish
(self, ctx: &mut LowerCtx)
crates/lang_ast/src/lower.rs:640
↓ 33 callers
Function
make_owned
Build a simple OwnedTy from a closure that populates an arena.
crates/lang_ty/src/arena.rs:1099
↓ 32 callers
Method
add_lower_bound
Record that `bound` is a lower bound of variable `var` (bound <: var).
crates/lang_check/src/storage.rs:135
↓ 32 callers
Method
get
(&self, expr: ExprId)
crates/lang_ast/src/nameres.rs:322
↓ 31 callers
Function
hover_parts
Extract the type string and optional doc string from hover contents.
crates/lsp/src/hover.rs:433
↓ 30 callers
Function
analyze
Parse Nix source containing an if-then-else, run analyze_condition on the condition, and return (NarrowInfo, Module) for assertions.
crates/lang_ast/src/narrow.rs:661
↓ 30 callers
Function
get_multifile_root
(files: &[(&str, &str)])
crates/lang_check/src/tests.rs:318
↓ 30 callers
Method
infer_expr
Infer the type of an expression and record it in the expr→type map.
crates/lang_check/src/infer_expr.rs:65
↓ 28 callers
Function
goto_definition
Try to find the definition location for the symbol at the given cursor position.
crates/lsp/src/goto_def.rs:28
↓ 27 callers
Method
demand_file
Infer a file and all its transitive imports on demand. If the file is already cached, returns the cached signature immediately. If another thread is
crates/lang_check/src/coordinator.rs:154
↓ 27 callers
Method
lower_expr_opt
(&mut self, expr: Option<ast::Expr>)
crates/lang_ast/src/lower.rs:104
↓ 26 callers
Function
collect_attrset_fields
Extract attrset fields from a type, unwrapping Named, Intersection, and Union wrappers as appropriate.
crates/lsp/src/ty_nav.rs:216
↓ 26 callers
Function
complete_at_markers
Run completions at all marker positions. Returns marker → completions.
crates/lsp/src/completion.rs:1501
↓ 25 callers
Function
completion
Entry point: try to produce completions for the given cursor position. `line_index` and `root` may come from a fresher parse than `analysis` — when t
crates/lsp/src/completion.rs:58
↓ 25 callers
Method
exprs
(&self)
crates/lang_ast/src/lib.rs:205
↓ 25 callers
Function
hover_at
Helper: hover at a byte offset and return the hover contents.
crates/lsp/src/hover.rs:426
↓ 23 callers
Function
generate_pkgs_tix
Generate a .tix file from a recursive tree of classified nixpkgs attributes. Classification rules: - `type == "set" && is_derivation` → `val name ::
crates/cli/src/gen_stubs.rs:1114
↓ 23 callers
Method
wait_for_diagnostics
Wait for a `publishDiagnostics` notification for the given file. Skips non-matching notifications (e.g. `window/logMessage`, diagnostics for other fil
crates/lsp/tests/common/mod.rs:723
↓ 22 callers
Method
expr
(&self)
crates/lang_ast/src/nameres.rs:560
↓ 22 callers
Function
get_inferred_root_with_aliases
(src: &str, aliases: &TypeAliasRegistry)
crates/lang_check/src/tests.rs:167
↓ 22 callers
Method
hover
Hover at a given line/character position.
crates/lsp/tests/common/mod.rs:306
↓ 22 callers
Method
keys
(&self)
crates/lang_ty/src/attrset.rs:43
↓ 22 callers
Method
next_id
(&self)
crates/lsp/tests/common/mod.rs:154
↓ 22 callers
Method
run
Run type inference and return collected results + diagnostics.
crates/lang_check/src/lib.rs:768
↓ 22 callers
Method
send_request
Low-level: send a JSON-RPC request and return the response.
crates/lsp/tests/common/mod.rs:159
↓ 22 callers
Method
update_file
Update file contents and re-run analysis. Returns the cached analysis and a timing breakdown of each pipeline phase. Uses cache-only import resolutio
crates/lsp/src/state.rs:509
↓ 21 callers
Method
ancestors
(&self, scope_id: ScopeId)
crates/lang_ast/src/nameres.rs:151
↓ 21 callers
Method
display
Create a displayable wrapper for a type.
crates/lang_ty/src/arena.rs:79
↓ 21 callers
Method
new_var
Allocate a fresh type variable at the current level.
crates/lang_check/src/type_table.rs:134
↓ 20 callers
Function
actions_at_marker
Helper: compute code actions at a marker position (zero-width range).
crates/lsp/src/code_actions.rs:794
↓ 20 callers
Function
analyze
Build an AnalysisState and analyze a file, returning everything needed to call goto_definition.
crates/lsp/src/goto_def.rs:387
↓ 20 callers
Function
make_attrset
Helper: build a simple closed AttrSetTy from field name-type pairs using an arena.
crates/lang_ty/src/attrset.rs:115
↓ 20 callers
Method
new_var
Allocate a fresh type variable at the current level.
crates/lang_check/src/lib.rs:1055
↓ 19 callers
Method
display_truncated
Render the type with truncation limits applied.
crates/lang_ty/src/arena.rs:84
↓ 19 callers
Method
node_for_expr
(&self, expr_id: ExprId)
crates/lang_ast/src/lib.rs:302
↓ 18 callers
Method
add_upper_bound
Record that `bound` is an upper bound of variable `var` (var <: bound).
crates/lang_check/src/storage.rs:145
↓ 18 callers
Function
derive_glob_patterns
Derive glob patterns from a list of files of one kind. `all_files` contains every classified file across all kinds — used to detect mixed-kind direct
crates/cli/src/init.rs:173
↓ 18 callers
Method
ty_for_name_direct
Get the pre-allocated TyId for a name (used during inference of the name's own definition, before it has been generalized).
crates/lang_check/src/lib.rs:1080
↓ 17 callers
Function
build_file_layers
Build inference layers from a file-level import graph. Input: map from canonical file path → list of its canonical import targets (already filtered t
crates/lang_check/src/file_graph.rs:168
↓ 17 callers
Function
mk_attrset
(arena: &mut TypeArena, fields: &[(&str, TyRef)])
crates/lsp/src/ty_nav.rs:418
↓ 16 callers
Function
edges
Helper: build a HashMap from a list of (file, deps) pairs using simple string paths for readability.
crates/lang_check/src/file_graph.rs:203
↓ 16 callers
Method
expr_for_node
(&self, node: AstPtr)
crates/lang_ast/src/lib.rs:298
↓ 16 callers
Function
find_offset
Find the byte offset of a pattern in source text.
crates/lsp/src/test_util.rs:15
↓ 16 callers
Method
load_tix_file_with_path
Load declarations from a parsed .tix file, recording source locations for type aliases and modules so `textDocument/typeDefinition` can navigate to th
crates/lang_check/src/aliases.rs:233
↓ 16 callers
Method
set_builtin_stubs_dir
Set the override directory for built-in context stubs. When resolving `@nixos` or `/** context: nixos */`, the registry will check for `<dir>/nixos.ti
crates/lang_check/src/aliases.rs:196
↓ 16 callers
Method
set_signature
Store a file's signature in the cache (passive mode). Returns `true` if the signature changed (callers use this to decide whether to trigger dependent
crates/lang_check/src/coordinator.rs:502
↓ 16 callers
Function
setup
Helper: parse Nix source and return the syntax pipeline results.
crates/lang_ast/src/nameres.rs:658
↓ 15 callers
Function
assert_binding
Assert that `stdout` contains a binding line matching `name :: ty_fragment`. The type fragment is checked as a substring of the type portion, so you c
crates/cli/tests/env_stubs.rs:27
↓ 15 callers
Function
check_str
(src: &str)
crates/lang_check/src/tests.rs:152
↓ 15 callers
Function
check_str_with_aliases
( src: &str, aliases: &TypeAliasRegistry, )
crates/lang_check/src/tests.rs:158
↓ 15 callers
Method
get_signature
Get the cached root type for a file, if available.
crates/lang_check/src/coordinator.rs:489
↓ 15 callers
Function
mk_string
(arena: &mut TypeArena)
crates/lsp/src/ty_nav.rs:411
↓ 15 callers
Method
name
(&self)
crates/lang_ast/src/nameres.rs:564
↓ 15 callers
Method
nodes_for_name
(&self, name_id: NameId)
crates/lang_ast/src/lib.rs:310
↓ 14 callers
Function
action_titles
Extract titles from code actions.
crates/lsp/src/code_actions.rs:819
↓ 14 callers
Method
add_file
Add (or update) a .nix module file at the given path relative to the project root. Parent directories are created automatically.
crates/lsp/src/completion.rs:3420
↓ 14 callers
Function
arb_narr_value
Generate a primitive value as Nix text, for use in narrowed branches.
crates/lang_check/src/pbt/mod.rs:833
↓ 14 callers
Method
complete_at_markers
Run completions at all `# ^N` marker positions in the file.
crates/lsp/src/completion.rs:3430
next →
1–100 of 2,574, ranked by callers