Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ottrlang/otterlang
/ functions
Functions
1,790 in github.com/Ottrlang/otterlang
⨍
Functions
1,790
◇
Types & classes
327
↓ 645 callers
Method
clone
(&self)
crates/otterc_jit/src/engine.rs:434
↓ 639 callers
Method
as_ref
(&self)
crates/otterc_ast/src/nodes.rs:46
↓ 320 callers
Method
map
(self, f: F)
crates/otterc_ast/src/nodes.rs:34
↓ 296 callers
Method
register
(&self, function: FfiFunction)
crates/otterc_symbol/src/registry.rs:124
↓ 191 callers
Method
insert
(&mut self, name: String, var: Variable<'ctx>)
crates/otterc_codegen/src/llvm/compiler/types.rs:83
↓ 185 callers
Method
get
(&self, key: &str)
crates/otterc_cache/src/manager.rs:33
↓ 152 callers
Method
len
(&self)
crates/otterc_span/src/lib.rs:63
↓ 151 callers
Method
join
(&self)
crates/otterc_runtime/src/task/task_impl.rs:234
↓ 115 callers
Method
collect
(&self)
crates/otterc_runtime/src/memory/gc.rs:57
↓ 87 callers
Method
as_mut
(&mut self)
crates/otterc_ast/src/nodes.rs:52
↓ 83 callers
Method
is_empty
(&self)
crates/otterc_span/src/lib.rs:56
↓ 77 callers
Method
contains
(&self, pos: usize)
crates/otterc_span/src/lib.rs:42
↓ 73 callers
Method
get
Get a value from task-local storage.
crates/otterc_runtime/src/task/tls.rs:33
↓ 71 callers
Method
with_span
(mut self, span: Span)
crates/otterc_typecheck/src/types.rs:485
↓ 67 callers
Method
span
(&self)
crates/otterc_ast/src/nodes.rs:30
↓ 59 callers
Method
advance
(&mut self, count: usize)
crates/otterc_lexer/src/tokenizer.rs:139
↓ 59 callers
Method
get_or_declare_ffi_function
(&mut self, name: &str)
crates/otterc_codegen/src/llvm/compiler/mod.rs:579
↓ 55 callers
Method
clone
(&self)
crates/otterc_runtime/src/memory/rc.rs:56
↓ 43 callers
Method
is_empty
(&self)
crates/otterc_typecheck/src/checker.rs:49
↓ 41 callers
Method
eval_expr
( &mut self, expr: &Expr, ctx: &mut FunctionContext<'ctx>, )
crates/otterc_codegen/src/llvm/compiler/expr.rs:415
↓ 41 callers
Method
load
Load a module from a path string
crates/otterc_module/src/loader.rs:66
↓ 40 callers
Method
len
Get the current queue length.
crates/otterc_runtime/src/task/channel.rs:156
↓ 36 callers
Method
emit_token
(&mut self, kind: TokenKind, start: usize, len: usize)
crates/otterc_lexer/src/tokenizer.rs:193
↓ 34 callers
Function
identifier_parser
()
crates/otterc_parser/src/grammar.rs:77
↓ 33 callers
Method
is_compatible_with
Check if this type is compatible with another type
crates/otterc_typecheck/src/types.rs:157
↓ 32 callers
Method
get
(&self, name: &str)
crates/otterc_codegen/src/llvm/compiler/types.rs:87
↓ 31 callers
Method
max
(&self)
crates/otterc_utils/src/bench.rs:72
↓ 31 callers
Method
remove
Remove a value from task-local storage.
crates/otterc_runtime/src/task/tls.rs:59
↓ 25 callers
Method
with_hint
(mut self, hint: String)
crates/otterc_typecheck/src/types.rs:470
↓ 23 callers
Method
get
(&self, name: &str)
src/lsp/mod.rs:259
↓ 20 callers
Method
min
(&self)
crates/otterc_utils/src/bench.rs:68
↓ 20 callers
Function
parse
(tokens: &[Token])
crates/otterc_parser/src/grammar.rs:57
↓ 19 callers
Method
current_char
(&self)
crates/otterc_lexer/src/tokenizer.rs:131
↓ 19 callers
Method
store
( &mut self, metadata: &super::metadata::CacheMetadata, )
crates/otterc_cache/src/manager.rs:69
↓ 18 callers
Method
get
(&self, name: &str)
crates/otterc_jit/src/cache/function_cache.rs:59
↓ 18 callers
Method
parse
Parse a target triple string (e.g., "x86_64-unknown-linux-gnu")
crates/otterc_config/src/target.rs:40
↓ 18 callers
Method
take
(&mut self)
crates/otterc_runtime/src/stdlib/task.rs:38
↓ 17 callers
Method
clone
(&self)
crates/otterc_runtime/src/task/channel.rs:205
↓ 17 callers
Method
elapsed
(&self)
crates/otterc_utils/src/timer.rs:15
↓ 17 callers
Method
start
(&self)
crates/otterc_span/src/lib.rs:70
↓ 16 callers
Function
tokenize
(source: &str)
crates/otterc_lexer/src/tokenizer.rs:207
↓ 15 callers
Method
as_ptr
Get a raw pointer to the object (for FFI)
crates/otterc_runtime/src/memory/rc.rs:45
↓ 15 callers
Method
cmp
(&self, other: &Self)
crates/otterc_runtime/src/task/timer.rs:34
↓ 15 callers
Method
insert_variable
(&mut self, name: String, ty: TypeInfo)
crates/otterc_typecheck/src/types.rs:556
↓ 15 callers
Method
is_wasm
Check if this is a WebAssembly target
crates/otterc_config/src/target.rs:116
↓ 15 callers
Method
peek_char
(&self, ahead: usize)
crates/otterc_lexer/src/tokenizer.rs:135
↓ 14 callers
Function
clone
(data: *const ())
crates/otterc_runtime/src/task/timer.rs:122
↓ 14 callers
Function
drop
(data: *const ())
crates/otterc_runtime/src/stdlib/time.rs:117
↓ 14 callers
Function
get_gc
Get the global GC manager
crates/otterc_runtime/src/memory/gc.rs:588
↓ 13 callers
Method
infer_expr_type
Infer the type of an expression
crates/otterc_typecheck/src/checker.rs:1722
↓ 13 callers
Function
next_handle_id
()
crates/otterc_runtime/src/stdlib/builtins.rs:19
↓ 12 callers
Function
extract_crate_spec
(_dep: &DependencyConfig)
crates/otterc_ffi/src/rustdoc_extractor.rs:129
↓ 12 callers
Method
is_windows
Check if this is a Windows target
crates/otterc_config/src/target.rs:126
↓ 12 callers
Method
load_file
Load a module from a file path
crates/otterc_module/src/loader.rs:81
↓ 12 callers
Method
resolve
Resolve this module path to an actual file path
crates/otterc_module/src/resolver.rs:45
↓ 11 callers
Method
record_phase
(&mut self, name: impl Into<String>, f: F)
crates/otterc_utils/src/profiler.rs:14
↓ 11 callers
Method
update
Update configuration
crates/otterc_runtime/src/config.rs:289
↓ 10 callers
Method
define_type_alias
(&mut self, name: String, ty: TypeInfo, is_public: bool)
crates/otterc_typecheck/src/types.rs:592
↓ 10 callers
Method
is_empty
Check if the channel is empty.
crates/otterc_runtime/src/task/channel.rs:161
↓ 10 callers
Function
span_to_range
(span: Span, text: &str)
src/lsp/mod.rs:1459
↓ 9 callers
Method
create_entry_block_alloca
Creates a new stack allocation instruction in the entry block of the function.
crates/otterc_codegen/src/llvm/compiler/mod.rs:831
↓ 9 callers
Method
current_newline_len
(&self)
crates/otterc_lexer/src/tokenizer.rs:178
↓ 9 callers
Method
expr_type
(&self, expr: &Expr)
crates/otterc_codegen/src/llvm/compiler/mod.rs:278
↓ 9 callers
Method
inline_block
( &self, block: &mut Node<Block>, ctx: &InlineContext<'_>, stack: &mut Vec<Str
crates/otterc_jit/src/optimization/inliner.rs:119
↓ 9 callers
Method
into_inner
(self)
crates/otterc_ast/src/nodes.rs:22
↓ 9 callers
Function
otter_dup_cstr
crates/otterc_codegen/src/llvm/runtimes/wasm.c:49
↓ 9 callers
Function
span
()
crates/otterc_typecheck/src/workspace.rs:166
↓ 9 callers
Function
type_parser
()
crates/otterc_parser/src/grammar.rs:110
↓ 9 callers
Method
typeinfo_to_otter_type
(&self, ty: &TypeInfo)
crates/otterc_codegen/src/llvm/compiler/stmt.rs:583
↓ 9 callers
Method
with_help
(mut self, help: String)
crates/otterc_typecheck/src/types.rs:475
↓ 9 callers
Method
with_suggestion
(mut self, suggestion: impl Into<String>)
crates/otterc_utils/src/errors.rs:46
↓ 8 callers
Method
all
(&self)
crates/otterc_symbol/src/registry.rs:189
↓ 8 callers
Method
build_enum_type
(&self, name: &str, args: Vec<TypeInfo>)
crates/otterc_typecheck/src/types.rs:656
↓ 8 callers
Method
call_ffi_returning_value
( &mut self, name: &str, args: Vec<BasicValueEnum<'ctx>>, label: &str, )
crates/otterc_codegen/src/llvm/compiler/expr.rs:2885
↓ 8 callers
Method
check_block
Type check a block
crates/otterc_typecheck/src/checker.rs:1480
↓ 8 callers
Method
collect_metadata_in_block
( &self, block: &Block, spans: &mut Vec<Span>, expr_ids: &mut Vec<usize>,
crates/otterc_typecheck/src/checker.rs:325
↓ 8 callers
Method
create_span
(&self, start: usize, len: usize)
crates/otterc_lexer/src/tokenizer.rs:189
↓ 8 callers
Method
emit_error
(&mut self, error: LexerError)
crates/otterc_lexer/src/tokenizer.rs:198
↓ 8 callers
Method
fold_constants_in_block
(&self, block: &mut Block)
crates/otterc_jit/src/optimization/reoptimizer.rs:107
↓ 8 callers
Function
get_profiler
Get the global memory profiler
crates/otterc_runtime/src/memory/profiler.rs:243
↓ 8 callers
Function
list_value
(handle: HandleId, index: i64)
crates/otterc_runtime/src/stdlib/builtins.rs:183
↓ 8 callers
Function
parse_rust_type
(ty_value: &serde_json::Value, generics: &[String])
crates/otterc_ffi/src/rustdoc_extractor.rs:1065
↓ 8 callers
Method
record_block_spans
(&mut self, block: &Block)
crates/otterc_codegen/src/llvm/compiler/mod.rs:66
↓ 8 callers
Method
register_waker
Register a waker for when data becomes available. This is used internally by select operations.
crates/otterc_runtime/src/task/channel.rs:177
↓ 8 callers
Method
rewrite_expr
(&mut self, expr: &Node<Expr>)
crates/otterc_jit/src/optimization/inliner.rs:870
↓ 8 callers
Method
send
Send a value to the channel, waking any waiting receivers.
crates/otterc_runtime/src/task/channel.rs:50
↓ 8 callers
Method
struct_info
(&self, id: u32)
crates/otterc_codegen/src/llvm/compiler/mod.rs:309
↓ 8 callers
Method
type_from_annotation
(&self, ty: &Node<Type>)
crates/otterc_typecheck/src/types.rs:732
↓ 7 callers
Method
add_function
(&mut self, name: String)
crates/otterc_module/src/loader.rs:32
↓ 7 callers
Method
coerce_type
( &self, value: inkwell::values::BasicValueEnum<'ctx>, from_ty: OtterType, to_
crates/otterc_codegen/src/llvm/compiler/expr.rs:1592
↓ 7 callers
Method
collect_captured_names_in_block
( &self, block: &Block, ctx: &FunctionContext<'ctx>, captures: &mut BTreeSet<S
crates/otterc_codegen/src/llvm/compiler/expr.rs:316
↓ 7 callers
Method
contains
Check if a value exists in task-local storage.
crates/otterc_runtime/src/task/tls.rs:74
↓ 7 callers
Function
decode_value_handle
(encoded: u64)
crates/otterc_runtime/src/stdlib/builtins.rs:122
↓ 7 callers
Function
drop
(_data: *const ())
crates/otterc_runtime/src/task/timer.rs:137
↓ 7 callers
Method
ensure_string_value
(&mut self, value: EvaluatedValue<'ctx>)
crates/otterc_codegen/src/llvm/compiler/expr.rs:2838
↓ 7 callers
Method
find_definition
(&self, name: &str)
src/lsp/mod.rs:244
↓ 7 callers
Method
find_identifier_type_in_block
(&self, block: &Block, var: &str)
crates/otterc_codegen/src/llvm/compiler/expr.rs:2784
↓ 7 callers
Method
find_identifier_type_in_expr
(&self, expr: &Expr, var: &str)
crates/otterc_codegen/src/llvm/compiler/expr.rs:2677
↓ 7 callers
Function
map_rust_type_to_spec
(ty: &RustTypeRef)
crates/otterc_ffi/src/rust_stubgen.rs:929
↓ 7 callers
Method
merge
(&self, other: &Self)
crates/otterc_span/src/lib.rs:24
next →
1–100 of 1,790, ranked by callers