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
↓ 2 callers
Function
get_enum_from_uid
(enum_uid: u32)
crates/hir/src/common/ty.rs:34
↓ 2 callers
Function
get_func_id
( module: &mut dyn Module, pointer_ty: types::Type, mod_dir: &std::path::Path, functions: &mut
crates/codegen/src/compiler/mod.rs:549
↓ 2 callers
Method
get_local_func
(&mut self, tfqn: ConcreteGlobalLoc)
crates/codegen/src/compiler/functions.rs:467
↓ 2 callers
Method
get_max_int_size
(&self)
crates/hir/src/common/ty.rs:837
↓ 2 callers
Method
get_mutability
`deref` allows certain expressions to be mutable only if they are being mutated through a deref
crates/hir_ty/src/globals.rs:730
↓ 2 callers
Method
get_or_create_extern_func_id
( &mut self, name: &'static str, params: Vec<AbiParam>, returns: Vec<AbiParam>
crates/codegen/src/compiler/functions.rs:435
↓ 2 callers
Method
global_exists
(&self, fqn: Fqn)
crates/hir/src/body.rs:35
↓ 2 callers
Method
global_ty
(&self, fqn: Fqn)
crates/hir/src/body.rs:52
↓ 2 callers
Method
has_definition
(&self, name: Name)
crates/hir/src/index.rs:20
↓ 2 callers
Method
include_disasm
(self, is_mod: bool)
crates/codegen/src/lib.rs:46
↓ 2 callers
Function
index
()
crates/hir_ty/src/tests/arrays.rs:397
↓ 2 callers
Method
index
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:809
↓ 2 callers
Function
input_snippet
( filename: &str, input: &str, start_line: LineNr, start_col: ColNr, end_line: LineNr,
crates/diagnostics/src/lib.rs:246
↓ 2 callers
Method
insert_into_current_scope
(&mut self, name: Key, local: Local)
crates/hir/src/body.rs:2365
↓ 2 callers
Method
into_diagnostic
(self)
crates/hir_ty/src/globals.rs:54
↓ 2 callers
Method
into_verbosity
(self)
crates/capy/src/main.rs:261
↓ 2 callers
Method
is_array
(&self)
crates/hir/src/common/ty.rs:429
↓ 2 callers
Method
is_distinct
Note that unlike the other `is_*` functions, this does not get the absolute type
crates/hir/src/common/ty.rs:618
↓ 2 callers
Method
is_error
(&self)
crates/hir_ty/src/lib.rs:308
↓ 2 callers
Method
is_error
(&self)
crates/hir/src/body.rs:619
↓ 2 callers
Method
is_function
(&self)
crates/hir/src/common/ty.rs:444
↓ 2 callers
Function
is_hfa
"A Homogeneous Floating-point Aggregate (HFA) is a Homogeneous Aggregate with a Fundamental Data Type that is a Floating-Point type and at most four u
crates/codegen/src/convert/abi/aarch64.rs:13
↓ 2 callers
Method
is_int
(&self)
crates/hir/src/common/ty.rs:609
↓ 2 callers
Method
is_nil
todo: should distinct nil's be allowed to transform into optionals?
crates/hir/src/common/ty.rs:459
↓ 2 callers
Method
is_pointer_type
(&self)
crates/codegen/src/convert.rs:37
↓ 2 callers
Method
is_tagged_union
This returns true if the internal representation of a type is a tagged union This might be false for `?^bool`, because that will get compiled to a nu
crates/hir/src/common/ty.rs:486
↓ 2 callers
Function
link_to_exec
Returns `None`
crates/codegen/src/lib.rs:166
↓ 2 callers
Method
lower_binary_op
(&mut self, binary_op: Option<ast::BinaryOp>)
crates/hir/src/body.rs:1383
↓ 2 callers
Method
lower_lambda
(&mut self, lambda: ast::Lambda, allow_extern: bool)
crates/hir/src/body.rs:850
↓ 2 callers
Method
mark_old_missing
(&mut self, start_token: usize, expected: ExpectedSyntax)
crates/parser/src/parser.rs:182
↓ 2 callers
Method
mark_old_unexpected
( &mut self, found: NodeKind, start_token: usize, end_token: usize, ex
crates/parser/src/parser.rs:163
↓ 2 callers
Method
naive_global_to_ty
( &mut self, naive: NaiveGlobalLoc, file_expr: Option<Idx<hir::Expr>>, total_e
crates/hir_ty/src/globals.rs:4311
↓ 2 callers
Method
op
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:446
↓ 2 callers
Function
optional_is_some
(builder: &mut FunctionBuilder, option_ty: Intern<Ty>, val: Value)
crates/codegen/src/compiler/mod.rs:1805
↓ 2 callers
Method
parse
(mut self, grammar: impl Fn(&mut Self))
crates/parser/src/parser.rs:50
↓ 2 callers
Function
parse_cast
todo: allow ^u64.(foo) to parse correctly
crates/parser/src/grammar/expr.rs:738
↓ 2 callers
Function
parse_decl
(p: &mut Parser, top_level: bool)
crates/parser/src/grammar/stmt.rs:160
↓ 2 callers
Function
parse_directive
(p: &mut Parser)
crates/parser/src/grammar/expr.rs:1243
↓ 2 callers
Function
parse_expr_bp
bp stands for binding power look at online resources for more
crates/parser/src/grammar/expr.rs:59
↓ 2 callers
Function
parse_loop
( p: &mut Parser, label: Option<CompletedMarker>, recovery_set: TokenSet, )
crates/parser/src/grammar/expr.rs:1085
↓ 2 callers
Function
parse_repl_line
(tokens: &Tokens, input: &str)
crates/parser/src/lib.rs:27
↓ 2 callers
Function
parse_stmt
this function would only be called in a REPL or code block
crates/parser/src/grammar/stmt.rs:23
↓ 2 callers
Method
peek
Returns a reference to the first item with no dependencies.
crates/topo/src/lib.rs:155
↓ 2 callers
Method
peek
(&mut self)
crates/parser/src/parser.rs:341
↓ 2 callers
Method
peek_all
Returns a reference to all the items with no open dependencies.
crates/topo/src/lib.rs:173
↓ 2 callers
Method
process_event
(&mut self, event: Event)
crates/parser/src/sink.rs:75
↓ 2 callers
Method
range_for_stmt
(&self, stmt: Idx<Stmt>)
crates/hir/src/body.rs:3222
↓ 2 callers
Function
reg_component
(cls: &[Class], i: &mut usize, size: usize)
crates/codegen/src/convert/abi/x86_64.rs:169
↓ 2 callers
Method
resolve_last_label
Used for `break` and `continue` `must_be_to_a_loop` is used by `continue`
crates/hir/src/body.rs:2266
↓ 2 callers
Method
return_ty
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:222
↓ 2 callers
Function
run_parser_tests
(tests_dir: &str, parsing_fn: fn(&Tokens, &str) -> Parse)
crates/parser/src/tests.rs:27
↓ 2 callers
Method
severity
(&self)
crates/diagnostics/src/lib.rs:166
↓ 2 callers
Method
should_show
(self, is_mod: bool)
crates/codegen/src/lib.rs:38
↓ 2 callers
Method
skip_trivia
(&mut self)
crates/parser/src/sink.rs:84
↓ 2 callers
Function
split_aggregate
(aggr: Intern<Ty>, cls: &[Class])
crates/codegen/src/convert/abi/x86_64.rs:206
↓ 2 callers
Function
split_multi_module_test_data
splits text into multiple modules example: ```text #- main.capy foo :: import "foo.capy"; Foo :: foo.Foo; fun :: () -> Foo { foo : Foo = 0; foo }
crates/test-utils/src/lib.rs:32
↓ 2 callers
Function
stmt_variant_name
(stmt: &Stmt)
crates/hir/src/body.rs:4547
↓ 2 callers
Method
store_array_items
( &mut self, items: impl Iterator<Item = Idx<hir::Expr>>, // this has to be given sinc
crates/codegen/src/compiler/functions.rs:809
↓ 2 callers
Method
store_struct_fields
( &mut self, struct_ty: Intern<Ty>, field_values: &[hir::MemberLiteral], memor
crates/codegen/src/compiler/functions.rs:783
↓ 2 callers
Method
syntax_tree
(&self)
crates/parser/src/lib.rs:38
↓ 2 callers
Method
text
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:13
↓ 2 callers
Method
to_abiparam
(self, ptr_ty: Type)
crates/codegen/src/convert/abi/mod.rs:95
↓ 2 callers
Method
to_expected
(self)
crates/hir_ty/src/lib.rs:1188
↓ 2 callers
Method
to_sig_and_func_id
( self, module: &mut dyn Module, ptr_ty: types::Type, mod_dir: &std::path::Pat
crates/codegen/src/builtin.rs:44
↓ 2 callers
Function
tokens
( node: Node, tree: &SyntaxTree, )
crates/ast/src/lib.rs:1057
↓ 2 callers
Method
try_named
( &self, f: &mut std::fmt::Formatter, ty: Intern<Ty>, )
crates/hir/src/common/ty.rs:2126
↓ 2 callers
Function
ty_to_passmode
(ty: Intern<Ty>)
crates/codegen/src/convert/abi/x86_64_windows.rs:10
↓ 2 callers
Function
ty_to_passmode
(ty: Intern<Ty>)
crates/codegen/src/convert/abi/simplified.rs:8
↓ 2 callers
Method
unnamed_func_to_local
(&mut self, func_ty: Intern<Ty>, loc: ConcreteLambdaLoc)
crates/codegen/src/compiler/functions.rs:3316
↓ 2 callers
Method
variants
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:733
↓ 2 callers
Function
write_arg
(w: &mut dyn Write, func: &Function, arg: Value)
crates/codegen/src/debug.rs:219
↓ 1 callers
Method
absolute_ty_keep_variants
(&self)
crates/hir/src/common/ty.rs:325
↓ 1 callers
Function
alias_map
Re-implementation of `cranelift::codegen::write::alias_map` because it's private
crates/codegen/src/debug.rs:251
↓ 1 callers
Method
all_blocks
(&self)
crates/hir/src/common/locations.rs:34
↓ 1 callers
Method
all_files
(&self)
crates/hir/src/body.rs:43
↓ 1 callers
Method
argument
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:618
↓ 1 callers
Method
arrow
(&self)
crates/diagnostics/src/lib.rs:188
↓ 1 callers
Method
at_eof_ahead
(&mut self, offset: usize)
crates/parser/src/parser.rs:234
↓ 1 callers
Method
build_fn
( &self, func_cmplr: &mut FunctionCompiler, return_ty: Intern<Ty>, args: &[Par
crates/codegen/src/convert/abi/mod.rs:251
↓ 1 callers
Function
calc_finals
Calcuates size, alignment, stride, and field offsets of types. If called multiple times, new types will be calculated without discarding old results
crates/codegen/src/convert.rs:86
↓ 1 callers
Function
calc_layouts
Calcuates size, alignment, stride, and field offsets of types. If called multiple times, new types will be calculated without discarding old results
crates/codegen/src/layout.rs:81
↓ 1 callers
Function
calc_single
(ty: Intern<Ty>, pointer_bit_width: u32)
crates/codegen/src/layout.rs:112
↓ 1 callers
Function
calc_single
(ty: Intern<Ty>, ptr_ty: types::Type)
crates/codegen/src/convert.rs:111
↓ 1 callers
Method
can_take
(self, found: &Ty)
crates/hir_ty/src/lib.rs:334
↓ 1 callers
Function
cast_array_to_array
( meta_tys: &mut MetaTyData, module: &mut dyn Module, builder: &mut FunctionBuilder, func_writ
crates/codegen/src/compiler/mod.rs:1429
↓ 1 callers
Method
cast_into_memory
( &mut self, val: Option<Value>, cast_from: Intern<Ty>, cast_to: Intern<Ty>,
crates/codegen/src/compiler/functions.rs:3463
↓ 1 callers
Function
cast_struct_to_struct
( meta_tys: &mut MetaTyData, module: &mut dyn Module, builder: &mut FunctionBuilder, func_writ
crates/codegen/src/compiler/mod.rs:1344
↓ 1 callers
Function
char
()
crates/hir_ty/src/tests/char_and_str.rs:102
↓ 1 callers
Function
check_source_file
( input: &str, diagnostics: [(ValidationDiagnosticKind, StdRange<u32>); LEN], )
crates/ast/src/validation.rs:62
↓ 1 callers
Function
classify_arg
(arg: Intern<Ty>)
crates/codegen/src/convert/abi/aarch64.rs:63
↓ 1 callers
Function
classify_eight_byte
(ty: Intern<Ty>, classes: &mut [Class; 8], offset: usize)
crates/codegen/src/convert/abi/x86_64.rs:51
↓ 1 callers
Function
classify_ret
(ret: Intern<Ty>)
crates/codegen/src/convert/abi/aarch64.rs:43
↓ 1 callers
Method
clear_expected_syntaxes
(&mut self)
crates/parser/src/parser.rs:277
↓ 1 callers
Method
compile_builtin_global
(&mut self, builtin: BuiltinGlobal)
crates/codegen/src/compiler/functions.rs:3195
↓ 1 callers
Function
compile_file
(mut config: FinalConfig)
crates/capy/src/main.rs:354
↓ 1 callers
Method
compile_ftc
(&mut self, ftc: FunctionToCompile)
crates/codegen/src/compiler/mod.rs:317
↓ 1 callers
Method
compile_global_binding_data
( &mut self, loc: ConcreteGlobalLoc, )
crates/codegen/src/compiler/functions.rs:294
↓ 1 callers
Function
compile_jit
( verbosity: Verbosity, entry_point: ConcreteGlobalLoc, mod_dir: &std::path::Path, interner: &
crates/codegen/src/lib.rs:59
↓ 1 callers
Function
compile_memory_layouts
(compiler: &mut Compiler)
crates/codegen/src/compiler/ty_info.rs:208
↓ 1 callers
Function
compile_meta_builtins
(compiler: &mut Compiler)
crates/codegen/src/compiler/ty_info.rs:539
← previous
next →
301–400 of 1,368, ranked by callers