MCPcopy Create free account

hub / github.com/capy-language/capy / functions

Functions1,368 in github.com/capy-language/capy

↓ 408 callersFunctioncheck
( input: &str, expect: Expect, expected_diagnostics: impl Fn( &mut Interner, ) -> [(
crates/hir_ty/src/tests.rs:50
↓ 156 callersMethodfile
(&self)
crates/hir/src/common/locations.rs:102
↓ 143 callersMethoditer
(&self)
crates/token/src/lib.rs:33
↓ 137 callersMethodnext
(&mut self)
crates/hir/src/body.rs:2587
↓ 112 callersMethodat
(&mut self, kind: TokenKind)
crates/parser/src/parser.rs:207
↓ 110 callersMethodto_string
(&self, mod_dir: &Path, interner: &Interner)
crates/hir/src/common/names.rs:22
↓ 97 callersFunctioncheck
( input: &str, expect: Expect, expected_descent: Expect, expected_diagnostics:
crates/hir/src/body.rs:4628
↓ 94 callersMethodintern
(&mut self, s: &str)
crates/interner/src/lib.rs:77
↓ 83 callersMethodexpect
this will skip all tokens except those in the default recovery set.
crates/parser/src/parser.rs:77
↓ 83 callersMethodstmts
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:210
↓ 82 callersMethodextend
(&mut self, items: I)
crates/topo/src/lib.rs:121
↓ 82 callersFunctionparse
(input: &str)
crates/ast/src/lib.rs:1077
↓ 80 callersMethodcomplete
(mut self, p: &mut Parser<'_>, kind: NodeKind)
crates/parser/src/parser/marker.rs:23
↓ 80 callersMethodrange_for_expr
(&self, expr: Idx<Expr>)
crates/hir/src/body.rs:3217
↓ 80 callersMethodwrap
(self)
crates/hir/src/common/locations.rs:229
↓ 76 callersMethodget
(&self, fq_comptime: ComptimeLoc)
crates/hir/src/common/locations.rs:42
↓ 73 callersMethodrange
(&self)
crates/hir/src/lib.rs:70
↓ 67 callersMethodexpr
types are really just expressions
crates/ast/src/lib.rs:348
↓ 65 callersFunctionnode
(node: Parent, tree: &SyntaxTree)
crates/ast/src/lib.rs:1051
↓ 64 callersMethodbump
(&mut self)
crates/parser/src/parser.rs:271
↓ 62 callersMethodinsert
(&mut self, fq_comptime: ComptimeLoc, result: ComptimeResult)
crates/hir/src/common/locations.rs:51
↓ 56 callersMethodlen
(&self)
crates/topo/src/lib.rs:47
↓ 56 callersMethodlower_expr
(&mut self, expr: Option<ast::Expr>)
crates/hir/src/body.rs:1140
↓ 54 callersMethodstart
(&mut self)
crates/parser/src/parser.rs:200
↓ 48 callersMethodinsert
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 callersMethodget_final_ty
(&self)
crates/codegen/src/convert.rs:75
↓ 41 callersMethodlookup
(&self, key: Key)
crates/interner/src/lib.rs:85
↓ 40 callersMethodsize
(&self)
crates/codegen/src/layout.rs:29
↓ 39 callersMethodto_naive
(self)
crates/hir/src/common/locations.rs:390
↓ 38 callersFunctiondeclare
(module: &mut dyn Module, name: &str)
crates/codegen/src/compiler/ty_info.rs:82
↓ 36 callersMethodexpect_with_no_skip
(&mut self, kind: TokenKind)
crates/parser/src/parser.rs:101
↓ 36 callersMethodlen
(&self)
crates/codegen/src/compiler/ty_info.rs:159
↓ 36 callersMethodmake_concrete
(self, comptime_args: Option<ComptimeArgs>)
crates/hir/src/common/locations.rs:123
↓ 35 callersMethodinto_real_type
(self)
crates/codegen/src/convert.rs:46
↓ 31 callersMethodvalue
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:271
↓ 30 callersMethodprecede
(self, p: &mut Parser)
crates/parser/src/parser/marker.rs:53
↓ 29 callersFunctioncheck_raw
( input: &str, entry_point: &str, include_core: bool, stdout_expect: Expect, expected_stat
crates/codegen/src/tests.rs:72
↓ 29 callersMethodreplace_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 callersMethodtext
(&self, token_idx: usize)
crates/parser/src/parser.rs:71
↓ 28 callersMethodis_none
(self)
crates/capy/src/main.rs:279
↓ 27 callersFunctioncheck_raw_with_args
( input: &str, entry_point: &str, include_core: bool, args: &[&str], stdout_expect: Expect
crates/codegen/src/tests.rs:90
↓ 27 callersFunctiontoken
(node: Node, tree: &SyntaxTree)
crates/ast/src/lib.rs:1066
↓ 26 callersMethodalign
(&self)
crates/codegen/src/layout.rs:34
↓ 26 callersMethodconst_ty
todo! get rid of this somehow and just have const_data
crates/hir_ty/src/globals.rs:4425
↓ 25 callersMethodis_zero_sized
zero-sized types should compile to nothing.
crates/hir/src/common/ty.rs:553
↓ 24 callersMethodexpected_syntax_name
(&mut self, name: &'static str)
crates/parser/src/parser.rs:192
↓ 24 callersMethodexpr
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 callersMethodis_empty
(&self)
crates/topo/src/lib.rs:52
↓ 24 callersMethodpush_num
(&mut self, num: u32, target_bit_width: u8)
crates/codegen/src/compiler/ty_info.rs:120
↓ 23 callersMethodexpect_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 callersMethodabsolute_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 callersMethodcompile_expr
(&mut self, expr: Idx<hir::Expr>)
crates/codegen/src/compiler/functions.rs:824
↓ 22 callersMethodis_aggregate
Note that `?u64` is an aggregate type but `?^u64` isn't
crates/hir/src/common/ty.rs:406
↓ 22 callersMethodis_empty
(&self)
crates/hir/src/index.rs:16
↓ 21 callersFunctioncast
()
crates/ast/src/lib.rs:2647
↓ 21 callersFunctioncheck_files
( main_file: &str, other_files: &[&str], entry_point: &str, stdout_expect: Expect, expecte
crates/codegen/src/tests.rs:18
↓ 21 callersMethodglobal_body
(&self, fqn: Fqn)
crates/hir/src/body.rs:48
↓ 20 callersMethodat_eof
(&mut self)
crates/parser/src/parser.rs:252
↓ 19 callersMethodbit_width
(&self)
crates/codegen/src/convert.rs:26
↓ 19 callersMethodclear
(&mut self)
crates/topo/src/lib.rs:269
↓ 19 callersMethodmax
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 callersMethodat_ahead
(&mut self, offset: usize, set: TokenSet)
crates/parser/src/parser.rs:216
↓ 18 callersMethodcan_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 callersMethodcontains
(&self, fq_comptime: ComptimeLoc)
crates/hir/src/common/locations.rs:46
↓ 16 callersMethoddefine_array_and_slice
( self, module: &mut dyn Module, data_desc: &mut DataDescription, array_id: Da
crates/codegen/src/compiler/ty_info.rs:188
↓ 16 callersMethodgenerate_unique_id
(&mut self)
crates/uid_gen/src/lib.rs:7
↓ 16 callersMethodis_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 callersMethodname
(self)
crates/hir/src/common/locations.rs:209
↓ 16 callersMethodty
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:267
↓ 15 callersMethodat_set
(&mut self, set: TokenSet)
crates/parser/src/parser.rs:261
↓ 15 callersMethoddiscriminant_offset
(&self)
crates/codegen/src/layout.rs:346
↓ 15 callersMethodenum_layout
(&self)
crates/codegen/src/layout.rs:65
↓ 15 callersMethodstride
(&self)
crates/codegen/src/layout.rs:49
↓ 15 callersMethodunion
(self, other: Self)
crates/parser/src/token_set.rs:36
↓ 14 callersFunctionsimple_id
(discriminant: u32, bit_width: u32, signed: bool)
crates/codegen/src/convert.rs:302
↓ 13 callersMethodas_pointer
If self is a pointer, this returns the mutability and sub type
crates/hir/src/common/ty.rs:372
↓ 13 callersMethodblock_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 callersMethodbody
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:226
↓ 13 callersMethodcomptime_args
(self)
crates/hir/src/common/locations.rs:369
↓ 13 callersMethodis_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 callersMethodmeta_ty
(&self, expr: Idx<hir::Expr>)
crates/hir_ty/src/lib.rs:157
↓ 13 callersMethodpop
Removes the first item with no open dependencies.
crates/topo/src/lib.rs:135
↓ 12 callersMethodcmp
(&self, other: &Self)
crates/hir/src/common/locations.rs:152
↓ 12 callersMethodcomponents
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:932
↓ 12 callersMethodexpr
(self)
crates/hir/src/common/locations.rs:253
↓ 12 callersMethodfinish_array_item
Adds padding for the next array item
crates/codegen/src/compiler/ty_info.rs:164
↓ 12 callersMethodinto_value
This converts the address + offset into a single address if needed
crates/codegen/src/compiler/mod.rs:757
↓ 12 callersFunctionlex
(text: &str)
crates/lexer/src/lib.rs:9
↓ 12 callersFunctionparse_expr
( p: &mut Parser, expected_syntax_name: &'static str, )
crates/parser/src/grammar/expr.rs:7
↓ 11 callersMethodcontains
(self, kind: TokenKind)
crates/parser/src/token_set.rs:32
↓ 11 callersMethoddescendants
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 callersFunctionnodes
( node: Parent, tree: &SyntaxTree, )
crates/ast/src/lib.rs:1042
↓ 11 callersFunctionparse_ty
( p: &mut Parser, expected_syntax_name: &'static str, recovery_set: TokenSet, )
crates/parser/src/grammar/expr.rs:23
↓ 11 callersMethodwrite_val
As opposed to `write_all`, this writes a single `Value` to an `offset`
crates/codegen/src/compiler/mod.rs:771
↓ 10 callersMethodadd_file
(&mut self, file: FileName, bodies: Bodies)
crates/hir/src/body.rs:84
↓ 10 callersMethodexpect_with_recovery_set
(&mut self, kind: TokenKind, recovery_set: TokenSet)
crates/parser/src/parser.rs:81
↓ 10 callersMethodinto_syntax_tree
(self)
crates/parser/src/lib.rs:42
↓ 10 callersMethodmerge_eigthbyte
(self, other: Self)
crates/codegen/src/convert/abi/x86_64.rs:32
↓ 10 callersMethodto_previous_type_id
(self, meta_tys: &MetaTyData)
crates/codegen/src/convert.rs:507
↓ 9 callersMethodas_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