MCPcopy Create free account

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

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

↓ 9 callersMethodat_default_recovery_set
(&mut self)
crates/parser/src/parser.rs:257
↓ 9 callersFunctioncheck_repl_line
( input: &str, diagnostics: [(ValidationDiagnosticKind, StdRange<u32>); LEN], )
crates/ast/src/validation.rs:84
↓ 9 callersMethoderrors
(&self)
crates/parser/src/lib.rs:46
↓ 9 callersMethodglobal_is_extern
(&self, fqn: Fqn)
crates/hir/src/body.rs:56
↓ 9 callersFunctionparse_source_file
(tokens: &Tokens, input: &str)
crates/parser/src/lib.rs:22
↓ 9 callersMethodstruct_layout
(&self)
crates/codegen/src/layout.rs:56
↓ 8 callersMethodabsolute_intern_ty
The same as `Ty::absolute_ty` except that it returns `Intern<Ty>`
crates/hir/src/common/ty.rs:1955
↓ 8 callersMethodalign_shift
The amount of left shifts needed to get the right alignment. This is needed for cranelift. `1 << align_shift == align`
crates/codegen/src/layout.rs:42
↓ 8 callersMethodargs
(&self)
crates/capy/src/main.rs:335
↓ 8 callersMethodas_slice
If self is a slice, this returns the sub type
crates/hir/src/common/ty.rs:390
↓ 8 callersFunctionempty
()
crates/hir/src/body.rs:4759
↓ 8 callersMethoderror_with_recovery_set
( &mut self, recovery_set: TokenSet, )
crates/parser/src/parser.rs:109
↓ 8 callersMethodinto_number_type
(self)
crates/codegen/src/convert.rs:54
↓ 8 callersMethodis_non_zero
the type can NEVER have the value zero. used by optionals to allow things like `?^i32` to just be a nullable pointer
crates/hir/src/common/ty.rs:548
↓ 8 callersMethodis_similar_to
returns true if the two types are almost but not quite the same can be used when running `.display()` on two types so that extra information like uid
crates/hir/src/common/ty.rs:1781
↓ 8 callersMethodis_weak_replaceable_by
(&self, expected: &Ty)
crates/hir/src/common/ty.rs:1689
↓ 8 callersMethodname
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:263
↓ 8 callersMethodoffsets
(&self)
crates/codegen/src/layout.rs:398
↓ 8 callersFunctionparse_expr_with_recovery_set
( p: &mut Parser, expected_syntax_name: &'static str, recovery_set: TokenSet, )
crates/parser/src/grammar/expr.rs:15
↓ 8 callersMethodshrink_to_fit
(&mut self)
crates/hir/src/body.rs:88
↓ 8 callersMethodto_mangled_name
(&self, mod_dir: &std::path::Path, interner: &Interner)
crates/codegen/src/mangle.rs:36
↓ 8 callersFunctionunwrap_sum_ty
This works for tagged unions and nullable pointers. Note: this doesn't check the tag of the tagged union
crates/codegen/src/compiler/mod.rs:1653
↓ 7 callersMethodarg_list
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:845
↓ 7 callersMethodargs
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:877
↓ 7 callersMethodas_function
If self is a function, this returns the parameters and return type
crates/hir/src/common/ty.rs:356
↓ 7 callersMethodas_struct
If self is a struct, this returns the fields
crates/hir/src/common/ty.rs:346
↓ 7 callersMethodcompile_and_cast
(&mut self, expr: Idx<hir::Expr>, cast_to: Intern<Ty>)
crates/codegen/src/compiler/functions.rs:3417
↓ 7 callersMethodcondition
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:578
↓ 7 callersMethodfinish
( mut self, fn_abi: FnAbi, (args, return_ty): (&Vec<ParamTy>, Intern<Ty>), fun
crates/codegen/src/compiler/functions.rs:100
↓ 7 callersMethodinsert_dep
Registers a dependency `parent` depends upon `child`. e.g. "capy" (parent) depends upon "cranelift" (child) "main" (parent) depends upon "foo" (chi
crates/topo/src/lib.rs:64
↓ 7 callersMethodkind
(&mut self)
crates/parser/src/parser.rs:266
↓ 7 callersMethodnext
(&mut self)
crates/codegen/src/tests.rs:474
↓ 7 callersFunctionpadding_needed_for
checks if the offset is a multiple of the alignment if not, returns the amount of bytes needed to make it a valid offset
crates/codegen/src/layout.rs:362
↓ 7 callersMethodreinfer_expr
(&mut self, expr: Idx<hir::Expr>)
crates/hir_ty/src/globals.rs:917
↓ 7 callersMethodremove
Removes a dependency from the list, returns true if the dependency existed
crates/topo/src/lib.rs:251
↓ 7 callersMethodscope_id_usages
a `ScopeId` will only be stored if it has usages
crates/hir/src/body.rs:3251
↓ 7 callersMethodsig
(&self, loc: ConcreteLoc)
crates/hir_ty/src/lib.rs:81
↓ 7 callersMethodskip_trivia
(&mut self)
crates/parser/src/parser.rs:323
↓ 7 callersMethodunwrap_or_alloca
(self, builder: &mut FunctionBuilder, ty: Intern<Ty>)
crates/codegen/src/compiler/mod.rs:916
↓ 7 callersMethodwith_offset
(self, offset: u32)
crates/codegen/src/compiler/mod.rs:749
↓ 7 callersMethodwrite_all
Does a simple write or a memmove if necessary Unlike `write_val`, this writes an *entire* object into the memory By using this function, you promise
crates/codegen/src/compiler/mod.rs:794
↓ 6 callersFunctioncheck
( input: &str, expect: Expect, expected_diagnostics: impl Fn( &mut Interne
crates/hir/src/index.rs:155
↓ 6 callersFunctioncheck_impl
( input: &str, expect: Expect, expected_diagnostics: impl Fn( &mut Interner, ) -> [(
crates/hir_ty/src/tests.rs:65
↓ 6 callersMethodcompile_and_cast_into_memory
( &mut self, expr: Idx<hir::Expr>, cast_to: Intern<Ty>, memory: MemoryLoc,
crates/codegen/src/compiler/functions.rs:3434
↓ 6 callersFunctioncomptime
()
crates/codegen/src/tests.rs:766
↓ 6 callersMethoderror_with_recovery_set_no_default
( &mut self, recovery_set: TokenSet, )
crates/parser/src/parser.rs:129
↓ 6 callersMethodfn_to_target
(&self, func_ty: (&[ParamTy], Intern<Ty>))
crates/codegen/src/convert/abi/mod.rs:39
↓ 6 callersMethodget_possible_output_ty
should check with `can_perform` before actually using the type emitted from this function
crates/hir/src/common/ty.rs:1976
↓ 6 callersMethodinto_bytes
( self, meta_tys: &mut MetaTyData, endianness: Endianness, ptr_ty: types::Type
crates/codegen/src/compiler/comptime.rs:42
↓ 6 callersMethodis_safe_to_compile
todo: this is actually a great opportunity for fuzzing to make sure this function never returns true when something was actually unsafe. the fuzzer ha
crates/hir_ty/src/globals.rs:5139
↓ 6 callersFunctionlower
( root: ast::Root, tree: &SyntaxTree, file_name: &std::path::Path, index: &Index, uid_gen:
crates/hir/src/body.rs:655
↓ 6 callersFunctionmangle_internal
(name: &str)
crates/codegen/src/mangle.rs:232
↓ 6 callersFunctionparse_block
( p: &mut Parser, label: Option<CompletedMarker>, recovery_set: TokenSet, )
crates/parser/src/grammar/expr.rs:1219
↓ 6 callersMethodshould_show
(self, is_mod: bool)
crates/capy/src/main.rs:295
↓ 6 callersMethodto_cl
(&self, ptr_ty: Type, conv: CallConv)
crates/codegen/src/convert/abi/mod.rs:124
↓ 6 callersMethodto_type_id
(self, meta_tys: &mut MetaTyData, pointer_ty: types::Type)
crates/codegen/src/convert.rs:331
↓ 6 callersFunctionwrite_block_call
( w: &mut dyn std::fmt::Write, func_w: &NiceFuncWriter, block: BlockCall, pool: &ListPool<Valu
crates/codegen/src/debug.rs:199
↓ 5 callersMethodadd_token
(&mut self)
crates/parser/src/sink.rs:123
↓ 5 callersMethodcast
This takes an Option because a `()` might be automatically casted to an `any`. This returns an Option because `()` might not be automatically casted t
crates/codegen/src/compiler/functions.rs:3485
↓ 5 callersFunctioncast_into_memory
( meta_tys: &mut MetaTyData, module: &mut dyn Module, builder: &mut FunctionBuilder, func_writ
crates/codegen/src/compiler/mod.rs:932
↓ 5 callersFunctioncast_payload_into_tagged_union
( meta_tys: &mut MetaTyData, module: &mut dyn Module, builder: &mut FunctionBuilder, func_writ
crates/codegen/src/compiler/mod.rs:1606
↓ 5 callersMethodcompile_and_cast_with_args
( &mut self, expr: Idx<hir::Expr>, no_load: bool, cast_to: Intern<Ty>, )
crates/codegen/src/compiler/functions.rs:3423
↓ 5 callersMethodcompile_complex_compare
( &mut self, lhs: Value, rhs: Value, ty: Intern<Ty>, hir_op: hir::Bina
crates/codegen/src/compiler/functions.rs:2467
↓ 5 callersMethodcompile_unreachable
The default message is "Entered unreachable code"
crates/codegen/src/compiler/functions.rs:3379
↓ 5 callersMethoddebug
( &self, file: FileName, mod_dir: &std::path::Path, interner: &Interner,
crates/hir/src/body.rs:3354
↓ 5 callersMethoderror_with_no_skip
(&mut self)
crates/parser/src/parser.rs:121
↓ 5 callersFunctioneval_comptime_blocks
( verbosity: Verbosity, to_eval: &'a mut dyn Iterator<Item = ComptimeLoc>, results: &'a mut Compti
crates/codegen/src/compiler/comptime.rs:112
↓ 5 callersMethodfind_usages
(&mut self, exprs: &[Idx<hir::Expr>], local_usage: Idx<hir::Stmt>)
crates/hir_ty/src/globals.rs:883
↓ 5 callersMethodget_concrete
(self)
crates/hir_ty/src/lib.rs:327
↓ 5 callersFunctionget_naive_lambda_global
(lambda: NaiveLambdaLoc)
crates/hir/src/common/ty.rs:86
↓ 5 callersFunctionget_type_name
(ty: Intern<Ty>)
crates/hir/src/common/ty.rs:61
↓ 5 callersFunctionindex
( root: ast::Root, tree: &SyntaxTree, interner: &mut Interner, )
crates/hir/src/index.rs:52
↓ 5 callersMethodis_mod
(&self, mod_dir: &Path, interner: &Interner)
crates/hir/src/common/names.rs:55
↓ 5 callersMethodis_sub_dir_of
(&self, base: &Self)
crates/hir/src/common/names.rs:155
↓ 5 callersMethodis_void
(&self)
crates/hir/src/common/ty.rs:571
↓ 5 callersMethodmembers
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:689
↓ 5 callersMethodmight_be_weak
JUST BECAUSE THIS FUNCTION RETURNS TRUE, THAT DOES NOT MEAN THAT THIS TYPE IS *ACTUALLY WEAK TYPE REPLACEABLE BY ANOTHER OTHER TYPE USE `is_weak_repl
crates/hir/src/common/ty.rs:1677
↓ 5 callersMethodparam_list
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:218
↓ 5 callersMethodr#extern
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:230
↓ 5 callersMethodto_str
(self)
crates/hir/src/body.rs:575
↓ 5 callersMethodvariant
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:634
↓ 4 callersMethodat_raw
(&self, kind: TokenKind)
crates/parser/src/parser.rs:332
↓ 4 callersMethodbreak_to_label
This pushes a final jump instruction to the block, meaning additional operations won't be allowed in the current block
crates/codegen/src/compiler/functions.rs:620
↓ 4 callersMethodcan_perform
(&self, found: &Ty)
crates/hir/src/common/ty.rs:2026
↓ 4 callersFunctioncast
()
crates/hir_ty/src/tests/cast.rs:6
↓ 4 callersFunctioncheck
(text: &str, line_starts: [u32; LEN])
crates/line_index/src/lib.rs:67
↓ 4 callersMethodcompile_expr_with_args
`no_load` will cause the first encountered deref to not deref at all. this is used for assignment
crates/codegen/src/compiler/functions.rs:830
↓ 4 callersMethodcreate_global_data
( &mut self, name: &str, export: bool, data: Box<[u8]>, align: u64,
crates/codegen/src/compiler/functions.rs:354
↓ 4 callersFunctioncreate_mangled_for_naive_global
( mod_dir: &std::path::Path, interner: &'a Interner, loc: NaiveGlobalLoc, final_parts: impl It
crates/codegen/src/mangle.rs:16
↓ 4 callersMethoddefault_ty
(&self)
crates/hir/src/common/ty.rs:2059
↓ 4 callersFunctionfn_ty_to_abi
((args, ret): (&[ParamTy], Intern<Ty>))
crates/codegen/src/convert/abi/x86_64.rs:222
↓ 4 callersMethodget_const
`get_const` determines whether or not `const_data` can be called
crates/hir_ty/src/globals.rs:608
↓ 4 callersMethodget_kind
(&self, idx: usize)
crates/token/src/lib.rs:23
↓ 4 callersMethodin_cycle
(&self)
crates/topo/src/lib.rs:190
↓ 4 callersMethodinfer_expr
This function is indent hell but it's worth it to make it stack overflow free
crates/hir_ty/src/globals.rs:1308
↓ 4 callersMethodinto_value_range
(self)
crates/hir/src/common/locations.rs:77
↓ 4 callersMethodis_pointer
(&self)
crates/hir/src/common/ty.rs:440
↓ 4 callersMethodlabel
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:372
↓ 4 callersMethodlambda
(self)
crates/hir/src/common/locations.rs:257
↓ 4 callersMethodline_col
(&self, offset: TextSize)
crates/line_index/src/lib.rs:28
← previousnext →101–200 of 1,368, ranked by callers