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
↓ 408 callers
Function
check
( input: &str, expect: Expect, expected_diagnostics: impl Fn( &mut Interner, ) -> [(
crates/hir_ty/src/tests.rs:50
↓ 156 callers
Method
file
(&self)
crates/hir/src/common/locations.rs:102
↓ 143 callers
Method
iter
(&self)
crates/token/src/lib.rs:33
↓ 137 callers
Method
next
(&mut self)
crates/hir/src/body.rs:2587
↓ 112 callers
Method
at
(&mut self, kind: TokenKind)
crates/parser/src/parser.rs:207
↓ 110 callers
Method
to_string
(&self, mod_dir: &Path, interner: &Interner)
crates/hir/src/common/names.rs:22
↓ 97 callers
Function
check
( input: &str, expect: Expect, expected_descent: Expect, expected_diagnostics:
crates/hir/src/body.rs:4628
↓ 94 callers
Method
intern
(&mut self, s: &str)
crates/interner/src/lib.rs:77
↓ 83 callers
Method
expect
this will skip all tokens except those in the default recovery set.
crates/parser/src/parser.rs:77
↓ 83 callers
Method
stmts
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:210
↓ 82 callers
Method
extend
(&mut self, items: I)
crates/topo/src/lib.rs:121
↓ 82 callers
Function
parse
(input: &str)
crates/ast/src/lib.rs:1077
↓ 80 callers
Method
complete
(mut self, p: &mut Parser<'_>, kind: NodeKind)
crates/parser/src/parser/marker.rs:23
↓ 80 callers
Method
range_for_expr
(&self, expr: Idx<Expr>)
crates/hir/src/body.rs:3217
↓ 80 callers
Method
wrap
(self)
crates/hir/src/common/locations.rs:229
↓ 76 callers
Method
get
(&self, fq_comptime: ComptimeLoc)
crates/hir/src/common/locations.rs:42
↓ 73 callers
Method
range
(&self)
crates/hir/src/lib.rs:70
↓ 67 callers
Method
expr
types are really just expressions
crates/ast/src/lib.rs:348
↓ 65 callers
Function
node
(node: Parent, tree: &SyntaxTree)
crates/ast/src/lib.rs:1051
↓ 64 callers
Method
bump
(&mut self)
crates/parser/src/parser.rs:271
↓ 62 callers
Method
insert
(&mut self, fq_comptime: ComptimeLoc, result: ComptimeResult)
crates/hir/src/common/locations.rs:51
↓ 56 callers
Method
len
(&self)
crates/topo/src/lib.rs:47
↓ 56 callers
Method
lower_expr
(&mut self, expr: Option<ast::Expr>)
crates/hir/src/body.rs:1140
↓ 54 callers
Method
start
(&mut self)
crates/parser/src/parser.rs:200
↓ 48 callers
Method
insert
Inserts a lone element without adding any dependencies from or to it. Returns true if the item already existed in the `TopoSort`
crates/topo/src/lib.rs:107
↓ 43 callers
Method
get_final_ty
(&self)
crates/codegen/src/convert.rs:75
↓ 41 callers
Method
lookup
(&self, key: Key)
crates/interner/src/lib.rs:85
↓ 40 callers
Method
size
(&self)
crates/codegen/src/layout.rs:29
↓ 39 callers
Method
to_naive
(self)
crates/hir/src/common/locations.rs:390
↓ 38 callers
Function
declare
(module: &mut dyn Module, name: &str)
crates/codegen/src/compiler/ty_info.rs:82
↓ 36 callers
Method
expect_with_no_skip
(&mut self, kind: TokenKind)
crates/parser/src/parser.rs:101
↓ 36 callers
Method
len
(&self)
crates/codegen/src/compiler/ty_info.rs:159
↓ 36 callers
Method
make_concrete
(self, comptime_args: Option<ComptimeArgs>)
crates/hir/src/common/locations.rs:123
↓ 35 callers
Method
into_real_type
(self)
crates/codegen/src/convert.rs:46
↓ 31 callers
Method
value
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:271
↓ 30 callers
Method
precede
(self, p: &mut Parser)
crates/parser/src/parser/marker.rs:53
↓ 29 callers
Function
check_raw
( input: &str, entry_point: &str, include_core: bool, stdout_expect: Expect, expected_stat
crates/codegen/src/tests.rs:72
↓ 29 callers
Method
replace_weak_tys
recursively replaces weakly-typed expressions with strong types. ```text x := 42; // x is of type {uint}, which is a weak type y : u16 = x;
crates/hir_ty/src/globals.rs:350
↓ 29 callers
Method
text
(&self, token_idx: usize)
crates/parser/src/parser.rs:71
↓ 28 callers
Method
is_none
(self)
crates/capy/src/main.rs:279
↓ 27 callers
Function
check_raw_with_args
( input: &str, entry_point: &str, include_core: bool, args: &[&str], stdout_expect: Expect
crates/codegen/src/tests.rs:90
↓ 27 callers
Function
token
(node: Node, tree: &SyntaxTree)
crates/ast/src/lib.rs:1066
↓ 26 callers
Method
align
(&self)
crates/codegen/src/layout.rs:34
↓ 26 callers
Method
const_ty
todo! get rid of this somehow and just have const_data
crates/hir_ty/src/globals.rs:4425
↓ 25 callers
Method
is_zero_sized
zero-sized types should compile to nothing.
crates/hir/src/common/ty.rs:553
↓ 24 callers
Method
expected_syntax_name
(&mut self, name: &'static str)
crates/parser/src/parser.rs:192
↓ 24 callers
Method
expr
This actually will return the post expression *first*. The reason is because the `next` function below always returns the expression on the top of th
crates/hir/src/body.rs:2447
↓ 24 callers
Method
is_empty
(&self)
crates/topo/src/lib.rs:52
↓ 24 callers
Method
push_num
(&mut self, num: u32, target_bit_width: u8)
crates/codegen/src/compiler/ty_info.rs:120
↓ 23 callers
Method
expect_match
If found does not match expected, an error is thrown at the expression This function will also do weak type replacing
crates/hir_ty/src/globals.rs:4222
↓ 22 callers
Method
absolute_ty
Returns the "absolute" type. If the type is distinct, it will return the true underlying type.
crates/hir/src/common/ty.rs:313
↓ 22 callers
Method
compile_expr
(&mut self, expr: Idx<hir::Expr>)
crates/codegen/src/compiler/functions.rs:824
↓ 22 callers
Method
is_aggregate
Note that `?u64` is an aggregate type but `?^u64` isn't
crates/hir/src/common/ty.rs:406
↓ 22 callers
Method
is_empty
(&self)
crates/hir/src/index.rs:16
↓ 21 callers
Function
cast
()
crates/ast/src/lib.rs:2647
↓ 21 callers
Function
check_files
( main_file: &str, other_files: &[&str], entry_point: &str, stdout_expect: Expect, expecte
crates/codegen/src/tests.rs:18
↓ 21 callers
Method
global_body
(&self, fqn: Fqn)
crates/hir/src/body.rs:48
↓ 20 callers
Method
at_eof
(&mut self)
crates/parser/src/parser.rs:252
↓ 19 callers
Method
bit_width
(&self)
crates/codegen/src/convert.rs:26
↓ 19 callers
Method
clear
(&mut self)
crates/topo/src/lib.rs:269
↓ 19 callers
Method
max
automagically converts two types into the type that can represent both. this function accepts unknown types. ```text {int} → i8 → i16 → i32 → i64 →
crates/hir/src/common/ty.rs:873
↓ 18 callers
Method
at_ahead
(&mut self, offset: usize, set: TokenSet)
crates/parser/src/parser.rs:216
↓ 18 callers
Method
can_fit_into
returns whether one type can "fit" into another type as shown in the below diagram. ```text {int} → i8 → i16 → i32 → i64 ↘ ↘ f32 → f64 ↗ ↗ {u
crates/hir/src/common/ty.rs:1055
↓ 18 callers
Method
contains
(&self, fq_comptime: ComptimeLoc)
crates/hir/src/common/locations.rs:46
↓ 16 callers
Method
define_array_and_slice
( self, module: &mut dyn Module, data_desc: &mut DataDescription, array_id: Da
crates/codegen/src/compiler/ty_info.rs:188
↓ 16 callers
Method
generate_unique_id
(&mut self)
crates/uid_gen/src/lib.rs:7
↓ 16 callers
Method
is_unknown
returns true if the type is unknown, or contains unknown, or is an unknown array, etc.
crates/hir/src/common/ty.rs:623
↓ 16 callers
Method
name
(self)
crates/hir/src/common/locations.rs:209
↓ 16 callers
Method
ty
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:267
↓ 15 callers
Method
at_set
(&mut self, set: TokenSet)
crates/parser/src/parser.rs:261
↓ 15 callers
Method
discriminant_offset
(&self)
crates/codegen/src/layout.rs:346
↓ 15 callers
Method
enum_layout
(&self)
crates/codegen/src/layout.rs:65
↓ 15 callers
Method
stride
(&self)
crates/codegen/src/layout.rs:49
↓ 15 callers
Method
union
(self, other: Self)
crates/parser/src/token_set.rs:36
↓ 14 callers
Function
simple_id
(discriminant: u32, bit_width: u32, signed: bool)
crates/codegen/src/convert.rs:302
↓ 13 callers
Method
as_pointer
If self is a pointer, this returns the mutability and sub type
crates/hir/src/common/ty.rs:372
↓ 13 callers
Method
block_to_scope_id
only blocks which are actually `break`d or `continue`d out of will get a scopeid
crates/hir/src/body.rs:3242
↓ 13 callers
Method
body
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:226
↓ 13 callers
Method
comptime_args
(self)
crates/hir/src/common/locations.rs:369
↓ 13 callers
Method
is_functionally_equivalent_to
An equality check that ignores distinct types and anonymity. All other types must be exactly equal (i32 == i32, i32 != i64) if `self_can_lose_distinc
crates/hir/src/common/ty.rs:666
↓ 13 callers
Method
meta_ty
(&self, expr: Idx<hir::Expr>)
crates/hir_ty/src/lib.rs:157
↓ 13 callers
Method
pop
Removes the first item with no open dependencies.
crates/topo/src/lib.rs:135
↓ 12 callers
Method
cmp
(&self, other: &Self)
crates/hir/src/common/locations.rs:152
↓ 12 callers
Method
components
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:932
↓ 12 callers
Method
expr
(self)
crates/hir/src/common/locations.rs:253
↓ 12 callers
Method
finish_array_item
Adds padding for the next array item
crates/codegen/src/compiler/ty_info.rs:164
↓ 12 callers
Method
into_value
This converts the address + offset into a single address if needed
crates/codegen/src/compiler/mod.rs:757
↓ 12 callers
Function
lex
(text: &str)
crates/lexer/src/lib.rs:9
↓ 12 callers
Function
parse_expr
( p: &mut Parser, expected_syntax_name: &'static str, )
crates/parser/src/grammar/expr.rs:7
↓ 11 callers
Method
contains
(self, kind: TokenKind)
crates/parser/src/token_set.rs:32
↓ 11 callers
Method
descendants
builds a depth-first iterator of the given expression and all of it's children. sub expressions are guarenteed to come after their parents, and early
crates/hir/src/body.rs:3174
↓ 11 callers
Function
nodes
( node: Parent, tree: &SyntaxTree, )
crates/ast/src/lib.rs:1042
↓ 11 callers
Function
parse_ty
( p: &mut Parser, expected_syntax_name: &'static str, recovery_set: TokenSet, )
crates/parser/src/grammar/expr.rs:23
↓ 11 callers
Method
write_val
As opposed to `write_all`, this writes a single `Value` to an `offset`
crates/codegen/src/compiler/mod.rs:771
↓ 10 callers
Method
add_file
(&mut self, file: FileName, bodies: Bodies)
crates/hir/src/body.rs:84
↓ 10 callers
Method
expect_with_recovery_set
(&mut self, kind: TokenKind, recovery_set: TokenSet)
crates/parser/src/parser.rs:81
↓ 10 callers
Method
into_syntax_tree
(self)
crates/parser/src/lib.rs:42
↓ 10 callers
Method
merge_eigthbyte
(self, other: Self)
crates/codegen/src/convert/abi/x86_64.rs:32
↓ 10 callers
Method
to_previous_type_id
(self, meta_tys: &MetaTyData)
crates/codegen/src/convert.rs:507
↓ 9 callers
Method
as_array
If self is an array, this returns the length and sub type
crates/hir/src/common/ty.rs:380
next →
1–100 of 1,368, ranked by callers