Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dada-lang/dada
/ functions
Functions
1,179 in github.com/dada-lang/dada
⨍
Functions
1,179
◇
Types & classes
371
↓ 231 callers
Method
push
Append a component.
components/dada-compiler/src/vfs.rs:55
↓ 142 callers
Method
iter
Walks the chain, starting with the innermost links.
components/dada-ir-sym/src/check/scope.rs:604
↓ 135 callers
Method
clone
(&self)
components/dada-util/src/fixed_depth_json.rs:557
↓ 114 callers
Method
db
Get the database
components/dada-ir-sym/src/check/env.rs:109
↓ 105 callers
Method
map
Maps the bound contents to something else using the contents of argument term `arg`. `arg` will automatically have any bound variables shifted by 1 t
components/dada-ir-sym/src/ir/binder.rs:94
↓ 75 callers
Method
span
(&self)
components/dada-ir-sym/src/check/scope.rs:64
↓ 72 callers
Method
label
( mut self, db: &dyn crate::Db, level: Level, span: Span, message: imp
components/dada-ir-ast/src/diagnostic.rs:126
↓ 64 callers
Method
report
(&self, diagnostic: Diagnostic)
components/dada-ir-sym/src/check/env.rs:535
↓ 61 callers
Method
join
( &mut self, a: impl AsyncFnOnce(&mut Self) -> A, b: impl AsyncFnOnce(&mut Self) -> B,
components/dada-ir-sym/src/check/env/combinator.rs:96
↓ 59 callers
Function
error
(e: anyhow::Error)
components/dada-debug/src/error.rs:1
↓ 53 callers
Method
len
(self, db: &'db dyn crate::Db)
components/dada-ir-ast/src/ast.rs:123
↓ 50 callers
Method
kind
Returns the kind of term (or `Err` if it is an error).
components/dada-ir-sym/src/ir/types.rs:210
↓ 47 callers
Method
log
(&self, message: &'static str, values: &[&dyn erased_serde::Serialize])
components/dada-ir-sym/src/check/env.rs:541
↓ 40 callers
Method
eat_keyword
(&mut self, kw: Keyword)
components/dada-parser/src/lib.rs:326
↓ 39 callers
Method
insert
(&self, value: T)
components/dada-util/src/arena.rs:31
↓ 37 callers
Method
name
(self, db: &'db dyn crate::Db)
components/dada-ir-sym/src/ir/module.rs:54
↓ 36 callers
Method
kind
Returns the kind of the inference variable.
components/dada-ir-sym/src/check/inference.rs:65
↓ 33 callers
Method
to
(self, db: &'db dyn crate::Db, end: impl IntoOptionSpan<'db>)
components/dada-ir-ast/src/span.rs:123
↓ 30 callers
Method
len
(&self)
components/dada-ir-sym/src/ir/binder.rs:21
↓ 30 callers
Method
ty
Computes the type of this, treating it as an expression. Reports an error if this names something that cannot be made into an expression.
components/dada-ir-sym/src/check/exprs.rs:1387
↓ 28 callers
Method
ty
Convert to a future that blocks until the red-ty future is set
components/dada-ir-sym/src/check/env.rs:654
↓ 27 callers
Method
next
Create a universe one larger than the current universe.
components/dada-ir-sym/src/check/universe.rs:22
↓ 26 callers
Method
check_in_env
(&self, env: &mut Env<'db>, live_after: LivePlaces)
components/dada-ir-sym/src/check/exprs.rs:85
↓ 26 callers
Method
get
Get the current log state.
components/dada-util/src/log.rs:18
↓ 26 callers
Method
is_empty
Check if the set is empty.
components/dada-util/src/vecset.rs:71
↓ 21 callers
Method
last_span
Span of the last consumed token.
components/dada-parser/src/lib.rs:286
↓ 20 callers
Method
peek
Peek at the next token, returning None if there is none. Implicitly advances past error tokens. Does not consume the token returned.
components/dada-parser/src/lib.rs:271
↓ 20 callers
Method
spawn
( &mut self, task_description: TaskDescription<'db>, op: impl AsyncFnOnce(&mut Self) -
components/dada-ir-sym/src/check/env.rs:481
↓ 19 callers
Method
apply_to
Apply this permission to the given term (if `self` is not `my`).
components/dada-ir-sym/src/ir/types.rs:554
↓ 19 callers
Method
name_span
Span of the class name, typically used in diagnostics. Also returned by the [`Spanned`][] impl.
components/dada-ir-sym/src/ir/classes.rs:88
↓ 18 callers
Method
contains
True if `self` contains all of `other`
components/dada-ir-ast/src/span.rs:117
↓ 17 callers
Method
as_usize
(&self)
components/dada-ir-ast/src/span.rs:262
↓ 17 callers
Method
into_expr
( self, env: &mut Env<'db>, temporaries: &mut Vec<Temporary<'db>>, )
components/dada-ir-sym/src/check/exprs.rs:1435
↓ 16 callers
Method
to_red_ty
(&self, env: &mut Env<'db>)
components/dada-ir-sym/src/check/to_red.rs:64
↓ 15 callers
Method
absolute_span
Convert this span into an absolute span for reporting errors.
components/dada-ir-ast/src/span.rs:178
↓ 15 callers
Method
chars
(self)
components/dada-parser/src/tokenizer.rs:226
↓ 15 callers
Method
indent
( &mut self, message: &'static str, values: &[&dyn erased_serde::Serialize], o
components/dada-ir-sym/src/check/env.rs:546
↓ 15 callers
Method
serialize
(&self, serializer: S)
components/dada-util/src/log.rs:168
↓ 15 callers
Method
symbol
(self, db: &'db dyn crate::Db)
components/dada-ir-sym/src/ir/types.rs:790
↓ 14 callers
Method
exists
( &mut self, items: impl IntoIterator<Item = T>, test_fn: impl AsyncFn(&mut Env<'db>,
components/dada-ir-sym/src/check/env/combinator.rs:192
↓ 14 callers
Method
var_is_declared_to_be
True if the given variable is declared to meet the given predicate.
components/dada-ir-sym/src/check/env.rs:134
↓ 13 callers
Method
check_in_env
(&self, env: &mut Env<'db>)
components/dada-ir-sym/src/check/types.rs:29
↓ 13 callers
Method
eat_id
(&mut self)
components/dada-parser/src/lib.rs:340
↓ 13 callers
Method
extend
Extend the set with the items from `other`.
components/dada-util/src/vecset.rs:54
↓ 13 callers
Method
flatten
Primitive WASM values needed for a value with this representation stored on the WASM stack or in memory.
components/dada-codegen/src/cx/generate_expr/wasm_place_repr.rs:333
↓ 13 callers
Method
illformed
Create a parse error because the next token is not what we expected.
components/dada-parser/src/lib.rs:301
↓ 13 callers
Method
url
Convert this path back into a URL
components/dada-compiler/src/vfs.rs:130
↓ 12 callers
Method
fork
Create a new environment from this environment. The log will be adjusted per the `log` function.
components/dada-ir-sym/src/check/env.rs:120
↓ 12 callers
Method
get
(&self, env: &mut Env<'db>)
components/dada-ir-sym/src/check/env.rs:703
↓ 12 callers
Method
peek_span
Span of the next token in the input (or the end of the final token, if there are no more tokens)
components/dada-parser/src/lib.rs:291
↓ 12 callers
Method
require_both
( &mut self, a: impl AsyncFnOnce(&mut Self) -> Errors<()>, b: impl AsyncFnOnce(&mut Se
components/dada-ir-sym/src/check/env/combinator.rs:69
↓ 12 callers
Method
run
(mut self, command: Command)
components/dada-lang/src/main_lib.rs:19
↓ 12 callers
Method
span
(&self, db: &'db dyn crate::Db)
components/dada-parser/src/types.rs:68
↓ 12 callers
Method
span
(&self, start: usize, end: usize)
components/dada-parser/src/tokenizer.rs:346
↓ 12 callers
Method
span
(&self, db: &'db dyn dada_ir_ast::Db)
components/dada-ir-sym/src/ir/module.rs:41
↓ 11 callers
Method
annotate_diagnostic
(self, env: &mut Env<'db>, diagnostic: Diagnostic)
components/dada-ir-sym/src/check/report.rs:206
↓ 11 callers
Method
pop
Removes the final component (if any). Result will never be a dada file.
components/dada-compiler/src/vfs.rs:49
↓ 11 callers
Method
symbols
(self, db: &'db dyn crate::Db)
components/dada-ir-sym/src/ir/classes.rs:118
↓ 10 callers
Method
consume
(&mut self, env: &mut Env<'db>, arg: A)
components/dada-ir-sym/src/check/stream.rs:22
↓ 10 callers
Method
eat_op
(&mut self, op: Op)
components/dada-parser/src/lib.rs:353
↓ 10 callers
Method
into_iter
(self)
components/dada-ir-ast/src/ast/util.rs:31
↓ 10 callers
Method
red_bound
(&self, infer: InferVarIndex, direction: Direction)
components/dada-ir-sym/src/check/env.rs:611
↓ 10 callers
Method
require
( &mut self, a: impl AsyncFnOnce(&mut Env<'db>) -> Errors<bool>, because: impl FnOnce(
components/dada-ir-sym/src/check/env/combinator.rs:26
↓ 10 callers
Method
style
If this symbol references an aggregate (class, struct, etc) returns the aggregate style. Else returns `None`.
components/dada-ir-sym/src/check/scope.rs:480
↓ 10 callers
Method
substitute
Open the binder by replacing each variable with the corresponding term from `substitution`. # Panics If `substitution` does not have the correct len
components/dada-ir-sym/src/ir/binder.rs:71
↓ 10 callers
Method
to_arc
(&self)
components/dada-ir-sym/src/check/report.rs:85
↓ 9 callers
Function
_element
(content, attrs)
components/dada-debug/assets/jsontree.js:189
↓ 9 callers
Method
contents_if_ok
Returns the contents of this file or an empty string if it couldn't be read.
components/dada-ir-ast/src/inputs.rs:101
↓ 9 callers
Method
eat_next_token
Advance by one token, returning `Err` if there is no current token. After advancing, also eagerly eats any error tokens.
components/dada-parser/src/lib.rs:254
↓ 9 callers
Method
exec
(e)
components/dada-debug/assets/highlight.min.js:133
↓ 9 callers
Method
inputs
(self, db: &'db dyn crate::Db)
components/dada-ir-sym/src/ir/functions.rs:179
↓ 9 callers
Function
parse_spec_tokens
Parses the tokens after `:::{spec}` into an optional local name and a list of tags. If the first token looks like a tag (starts with `rfc`, `!`, or i
components/dada-spec-common/src/lib.rs:85
↓ 9 callers
Method
resolve
Return a version of `term` in which all inference variables are (deeply) removed.
components/dada-ir-sym/src/check/resolve.rs:64
↓ 8 callers
Method
assert_type
(self, db: &'db dyn crate::Db)
components/dada-ir-sym/src/ir/types.rs:183
↓ 8 callers
Method
finish
(self)
components/dada-ir-sym/src/check/env/combinator.rs:353
↓ 8 callers
Function
h
(...e)
components/dada-debug/assets/highlight.min.js:46
↓ 8 callers
Function
infer_is_provably
( env: &mut Env<'db>, perm: SymPerm<'db>, infer: InferVarIndex, predicate: Predicate, )
components/dada-ir-sym/src/check/predicates/var_infer.rs:132
↓ 8 callers
Method
is_empty
(&self)
components/dada-ir-sym/src/ir/binder.rs:25
↓ 8 callers
Method
log_result
(&mut self, compiler_location: &'static Location<'static>, value: T)
components/dada-ir-sym/src/check/env.rs:576
↓ 8 callers
Method
push_diagnostic
Record a diagnostic, indicating that parsing recovered from an error.
components/dada-parser/src/lib.rs:194
↓ 8 callers
Function
require_infer_is
Requires the inference variable (appearing under the given context) to meet the given predicate (possibly reporting an error if that is contradictory)
components/dada-ir-sym/src/check/predicates/var_infer.rs:46
↓ 8 callers
Method
set
Set the current log state back to what it was.
components/dada-util/src/log.rs:25
↓ 8 callers
Function
test_var_is_provably
( env: &mut Env<'db>, var: SymVariable<'db>, predicate: Predicate, )
components/dada-ir-sym/src/check/predicates/var_infer.rs:20
↓ 7 callers
Function
N
(e,t,n={})
components/dada-debug/assets/highlight.min.js:60
↓ 7 callers
Function
W
components/dada-debug/assets/highlight.min.js:106
↓ 7 callers
Method
addText
(e)
components/dada-debug/assets/highlight.min.js:19
↓ 7 callers
Method
clear_accumulated
Clears various accumulated state in prep for a new token being issued (or the final token). Returns the [`Skipped`][] value that should be used for th
components/dada-parser/src/tokenizer.rs:324
↓ 7 callers
Method
field
(self, db: &'db dyn crate::Db, field: SymField<'db>)
components/dada-ir-sym/src/ir/types.rs:698
↓ 7 callers
Method
for_all
( &mut self, items: impl IntoIterator<Item = T>, test_fn: impl AsyncFn(&mut Env<'db>,
components/dada-ir-sym/src/check/env/combinator.rs:156
↓ 7 callers
Function
i
(e,...t)
components/dada-debug/assets/highlight.min.js:16
↓ 7 callers
Method
infer
Log a message with argument(s).
components/dada-ir-sym/src/check/debug.rs:140
↓ 7 callers
Method
items
Returns a list of all top-level items in the module
components/dada-ir-sym/src/ir/module.rs:64
↓ 7 callers
Function
l
(e)
components/dada-debug/assets/highlight.min.js:43
↓ 7 callers
Method
place_ty
(&self, env: &mut Env<'db>)
components/dada-ir-sym/src/check/places.rs:21
↓ 7 callers
Method
process_line
Processes a line of markdown. If it's a heading (level >= 2), updates the heading stack by popping entries at the same or deeper level, then pushing t
components/dada-spec-common/src/lib.rs:119
↓ 7 callers
Function
report_unexpected
( db: &'db dyn crate::Db, spanned: impl Spanned<'db>, name: &str, problem: &str, )
components/dada-ir-sym/src/well_known.rs:122
↓ 7 callers
Function
require_sub_terms
( env: &mut Env<'db>, live_after: LivePlaces, lower: SymGenericTerm<'db>, upper: SymGenericTer
components/dada-ir-sym/src/check/subtype/terms.rs:38
↓ 7 callers
Method
spawn_require_assignable_type
( &mut self, live_after: LivePlaces, value_ty: SymTy<'db>, place_ty: SymTy<'db
components/dada-ir-sym/src/check/env.rs:335
↓ 7 callers
Function
t
(t,n)
components/dada-debug/assets/highlight.min.js:125
↓ 7 callers
Function
term_is_provably_shared
( env: &mut Env<'db>, term: SymGenericTerm<'db>, )
components/dada-ir-sym/src/check/predicates/is_provably_shared.rs:20
next →
1–100 of 1,179, ranked by callers