Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/capy-language/capy
/ functions
Functions
1,368 in github.com/capy-language/capy
⨍
Functions
1,368
◇
Types & classes
169
↓ 1 callers
Method
compile_num_binary
( &mut self, lhs: Value, rhs: Value, ty: Intern<Ty>, op: hir::BinaryOp
crates/codegen/src/compiler/functions.rs:3017
↓ 1 callers
Method
compile_real_function
( &mut self, unmangled_name: &str, mangled_name: &str, loc: ConcreteLoc,
crates/codegen/src/compiler/mod.rs:412
↓ 1 callers
Method
compile_stmt
(&mut self, stmt: &Idx<hir::Stmt>)
crates/codegen/src/compiler/functions.rs:526
↓ 1 callers
Function
compile_type_info
(compiler: &mut Compiler)
crates/codegen/src/compiler/ty_info.rs:304
↓ 1 callers
Function
count_digits
count the digits in a number e.g. 42 => 2
crates/diagnostics/src/lib.rs:394
↓ 1 callers
Function
create_mangled_for_concrete_global
( mod_dir: &std::path::Path, interner: &'a Interner, loc: ConcreteGlobalLoc, final_parts: impl
crates/codegen/src/mangle.rs:98
↓ 1 callers
Function
create_mangled_for_concrete_lambda
( mod_dir: &std::path::Path, interner: &'a Interner, loc: ConcreteLambdaLoc, final_parts: impl
crates/codegen/src/mangle.rs:124
↓ 1 callers
Method
create_new_child_scope
(&mut self)
crates/hir/src/body.rs:2388
↓ 1 callers
Method
debug
(&self, interner: &Interner)
crates/hir/src/index.rs:135
↓ 1 callers
Method
debug
(&'a self, interner: &'a Interner, show_ids: bool)
crates/hir/src/common/ty.rs:1939
↓ 1 callers
Function
debug_all_descendants
(bodies: &Bodies, interner: &Interner)
crates/hir/src/body.rs:4732
↓ 1 callers
Function
debug_descendants
( res: &mut String, bodies: &Bodies, descendants: impl Iterator<Item = Descendant>, indents: b
crates/hir/src/body.rs:4495
↓ 1 callers
Function
decorate_block
Re-implementation of `cranelift::codegen::write::decorate_block` because it's private
crates/codegen/src/debug.rs:263
↓ 1 callers
Function
define_slice
( module: &mut dyn Module, data_desc: &mut DataDescription, info_array: DataId, len: u32,
crates/codegen/src/compiler/ty_info.rs:49
↓ 1 callers
Method
definitions
(&self)
crates/hir/src/index.rs:24
↓ 1 callers
Method
destroy_current_scope
(&mut self)
crates/hir/src/body.rs:2392
↓ 1 callers
Method
discriminant
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:749
↓ 1 callers
Method
display
( &'a self, mod_dir: &'a std::path::Path, interner: &'a interner::Interner, ad
crates/hir/src/common/ty.rs:2415
↓ 1 callers
Method
dot
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:498
↓ 1 callers
Function
download_core
(lib_dir: &Path)
crates/capy/src/git.rs:13
↓ 1 callers
Function
download_file
(url: &str, path: &Path)
crates/capy/src/git.rs:86
↓ 1 callers
Function
download_github_dir
based on [isurfer21/clone-github-subdir](https://github.com/isurfer21/clone-github-subdir)
crates/capy/src/git.rs:18
↓ 1 callers
Method
ellipsis
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:335
↓ 1 callers
Method
error_ty
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:534
↓ 1 callers
Function
error_union_map
( meta_tys: &mut MetaTyData, module: &mut dyn Module, builder: &mut FunctionBuilder, func_writ
crates/codegen/src/compiler/mod.rs:1823
↓ 1 callers
Method
evaluate_comptime_args
This will add values to `inline_comptime_tys` and `inline_comptime_args` It is your responsibility to clear these lists TODO: detect and prevent rec
crates/hir_ty/src/globals.rs:3729
↓ 1 callers
Method
expr_to_const_data
Returns `None` if any inner comptime blocks haven't been evaluated yet
crates/codegen/src/compiler/functions.rs:126
↓ 1 callers
Method
field_name
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:865
↓ 1 callers
Function
generate_main_function
(mut compiler: Compiler, entry_point: ConcreteGlobalLoc)
crates/codegen/src/compiler/program.rs:86
↓ 1 callers
Method
get_all_files
(&self)
crates/hir/src/world_index.rs:26
↓ 1 callers
Method
get_arg_list
(&self, args: Vec<Value>, func_cmplr: &mut FunctionCompiler)
crates/codegen/src/convert/abi/mod.rs:148
↓ 1 callers
Method
get_func_id
(&mut self, tfqn: ConcreteGlobalLoc)
crates/codegen/src/compiler/mod.rs:300
↓ 1 callers
Method
get_func_id
(&mut self, tfqn: ConcreteGlobalLoc)
crates/codegen/src/compiler/functions.rs:418
↓ 1 callers
Method
get_interned
(&self, s: &str)
crates/interner/src/lib.rs:81
↓ 1 callers
Method
get_referenced_locals
(&self, expr: Idx<hir::Expr>, locals: &mut FxHashSet<Idx<LocalDef>>)
crates/hir_ty/src/globals.rs:901
↓ 1 callers
Method
get_sub_dir_divergence
This gets the name of the folder at which the sub directory is different thant the base directory. e.g. base = /users/gandalf/modules/ sub = /users/g
crates/hir/src/common/names.rs:173
↓ 1 callers
Method
handle_ret
( &self, call: Inst, func_cmplr: &mut FunctionCompiler, ret_slot: Option<Value
crates/codegen/src/convert/abi/mod.rs:213
↓ 1 callers
Method
has_default_value
(&self)
crates/hir/src/common/ty.rs:273
↓ 1 callers
Method
has_errors
(&self)
crates/capy/src/source.rs:177
↓ 1 callers
Method
has_fn_of_name
(&self, name: Name)
crates/capy/src/source.rs:154
↓ 1 callers
Method
help
(&self)
crates/diagnostics/src/lib.rs:210
↓ 1 callers
Method
imports
(&self)
crates/hir/src/body.rs:3237
↓ 1 callers
Method
index
(&self, index: FileName)
crates/hir/src/body.rs:29
↓ 1 callers
Method
index_def
(&mut self, def: ast::Define)
crates/hir/src/index.rs:84
↓ 1 callers
Function
indexing_diagnostic_message
(d: &IndexingDiagnostic, interner: &Interner)
crates/diagnostics/src/lib.rs:446
↓ 1 callers
Method
infer
(&mut self, loc: ConcreteLoc)
crates/hir_ty/src/lib.rs:844
↓ 1 callers
Method
infer_global
(&mut self, global: ConcreteGlobalLoc)
crates/hir_ty/src/lib.rs:859
↓ 1 callers
Method
infer_lambda
(&mut self, lambda_loc: ConcreteLambdaLoc)
crates/hir_ty/src/lib.rs:961
↓ 1 callers
Method
insert_deps
(&mut self, parent: P, children: I)
crates/topo/src/lib.rs:93
↓ 1 callers
Method
is_enum
(&self)
crates/hir/src/common/ty.rs:471
↓ 1 callers
Method
is_error_union
(&self)
crates/hir/src/common/ty.rs:467
↓ 1 callers
Method
is_indirect
(&self)
crates/codegen/src/convert/abi/mod.rs:90
↓ 1 callers
Method
is_number_type
(&self)
crates/codegen/src/convert.rs:33
↓ 1 callers
Function
is_pow_of2
(n: u32)
crates/codegen/src/convert/abi/x86_64_windows.rs:11
↓ 1 callers
Method
is_sum_ty
Note: `ty.is_sum_ty()==true` does not imply `ty.is_tagged_union()==true`
crates/hir/src/common/ty.rs:476
↓ 1 callers
Function
lex_char
(s: &str, offset: TextSize, mut f: impl FnMut(TokenKind, TextSize))
crates/lexer/src/lib.rs:46
↓ 1 callers
Function
lex_comment
(offset: TextSize, len: usize, mut f: impl FnMut(TokenKind, TextSize))
crates/lexer/src/lib.rs:112
↓ 1 callers
Function
lex_string
(s: &str, offset: TextSize, mut f: impl FnMut(TokenKind, TextSize))
crates/lexer/src/lib.rs:79
↓ 1 callers
Method
lhs
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:438
↓ 1 callers
Function
lines_with_ends
(text: &str)
crates/codegen/src/tests.rs:464
↓ 1 callers
Function
link_with_gcc
( object_file: &PathBuf, target: &Triple, libs: &[String], exe_path: &Path, )
crates/codegen/src/lib.rs:215
↓ 1 callers
Function
link_with_zig
( object_file: &PathBuf, libs: &[String], exe_path: &Path, )
crates/codegen/src/lib.rs:190
↓ 1 callers
Method
logical
uses `logical_and` for Eq and `logical_or` for Ne
crates/codegen/src/compiler/functions.rs:3124
↓ 1 callers
Method
look_up_in_current_scope
(&mut self, name: Key)
crates/hir/src/body.rs:2370
↓ 1 callers
Method
look_up_inline_header_param
(&mut self, name: Key)
crates/hir/src/body.rs:2384
↓ 1 callers
Method
look_up_param
(&mut self, name: Key)
crates/hir/src/body.rs:2380
↓ 1 callers
Method
lower_array_decl
(&mut self, array_decl: ast::ArrayDecl)
crates/hir/src/body.rs:1459
↓ 1 callers
Method
lower_array_literal
(&mut self, array_lit: ast::ArrayLiteral)
crates/hir/src/body.rs:1470
↓ 1 callers
Method
lower_assignment
(&mut self, assign: ast::Assign)
crates/hir/src/body.rs:1123
↓ 1 callers
Method
lower_binary_expr
(&mut self, binary_expr: ast::BinaryExpr)
crates/hir/src/body.rs:1372
↓ 1 callers
Method
lower_bool_literal
(&mut self, bool_literal: ast::BoolLiteral)
crates/hir/src/body.rs:2076
↓ 1 callers
Method
lower_break
(&mut self, break_stmt: ast::BreakStmt)
crates/hir/src/body.rs:1055
↓ 1 callers
Method
lower_call
(&mut self, call: ast::Call)
crates/hir/src/body.rs:1701
↓ 1 callers
Method
lower_cast_expr
(&mut self, cast_expr: ast::CastExpr)
crates/hir/src/body.rs:1222
↓ 1 callers
Method
lower_char_literal
(&mut self, char_literal: ast::CharLiteral)
crates/hir/src/body.rs:2133
↓ 1 callers
Method
lower_comptime
(&mut self, comptime_expr: ast::ComptimeExpr)
crates/hir/src/body.rs:1014
↓ 1 callers
Method
lower_continue
(&mut self, continue_stmt: ast::ContinueStmt)
crates/hir/src/body.rs:1072
↓ 1 callers
Method
lower_defer
(&mut self, defer_stmt: ast::DeferStmt)
crates/hir/src/body.rs:1085
↓ 1 callers
Method
lower_deref_expr
(&mut self, deref_expr: ast::DerefExpr)
crates/hir/src/body.rs:1259
↓ 1 callers
Method
lower_directive
(&mut self, directive: ast::Directive)
crates/hir/src/body.rs:1716
↓ 1 callers
Method
lower_distinct
(&mut self, distinct: ast::Distinct)
crates/hir/src/body.rs:1289
↓ 1 callers
Method
lower_enum_declaration
(&mut self, enum_decl: ast::EnumDecl)
crates/hir/src/body.rs:1340
↓ 1 callers
Method
lower_error_union_declaration
This only catches error union declarations where the error type is known. `!u64` is turned into an `Expr::Unary`
crates/hir/src/body.rs:1433
↓ 1 callers
Method
lower_expr_raw
(&mut self, expr: ast::Expr)
crates/hir/src/body.rs:1173
↓ 1 callers
Method
lower_float_literal
(&mut self, float_literal: ast::FloatLiteral)
crates/hir/src/body.rs:2067
↓ 1 callers
Method
lower_global
( &mut self, name_token: Option<ast::Ident>, ty_annotation: Option<ast::Ty>, i
crates/hir/src/body.rs:800
↓ 1 callers
Method
lower_if
(&mut self, if_expr: ast::IfExpr)
crates/hir/src/body.rs:1545
↓ 1 callers
Method
lower_import
(&mut self, directive: ast::Directive, is_mod: bool)
crates/hir/src/body.rs:1747
↓ 1 callers
Method
lower_index_expr
(&mut self, index_expr: ast::IndexExpr)
crates/hir/src/body.rs:1888
↓ 1 callers
Method
lower_int_literal
(&mut self, int_literal: ast::IntLiteral)
crates/hir/src/body.rs:1994
↓ 1 callers
Method
lower_local_define
(&mut self, local_def: ast::Define)
crates/hir/src/body.rs:1098
↓ 1 callers
Method
lower_mut_expr
mut expressions are only used for `mut rawptr`
crates/hir/src/body.rs:1241
↓ 1 callers
Method
lower_optional_declaration
(&mut self, optional_decl: ast::OptionalDecl)
crates/hir/src/body.rs:1421
↓ 1 callers
Method
lower_paren_expr
(&mut self, paren_expr: ast::ParenExpr)
crates/hir/src/body.rs:1483
↓ 1 callers
Method
lower_path
(&mut self, path: ast::Path)
crates/hir/src/body.rs:1904
↓ 1 callers
Method
lower_propagate_expr
(&mut self, propagate_expr: ast::PropagateExpr)
crates/hir/src/body.rs:1265
↓ 1 callers
Method
lower_ref_expr
(&mut self, ref_expr: ast::RefExpr)
crates/hir/src/body.rs:1231
↓ 1 callers
Method
lower_return
(&mut self, return_stmt: ast::ReturnStmt)
crates/hir/src/body.rs:1041
↓ 1 callers
Method
lower_stmt
(&mut self, stmt: ast::Stmt)
crates/hir/src/body.rs:1026
↓ 1 callers
Method
lower_struct_declaration
(&mut self, struct_decl: ast::StructDecl)
crates/hir/src/body.rs:1298
← previous
next →
401–500 of 1,368, ranked by callers