MCPcopy Create free account

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

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

↓ 4 callersMethodparams
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:319
↓ 4 callersFunctionparse_array_literal
`array_decl` is ONLY used by `parse_array_decl` to pass it's previously created marker. This allows the array literal to completely replace the array
crates/parser/src/grammar/expr.rs:950
↓ 4 callersFunctionparse_paren
(p: &mut Parser, recovery_set: TokenSet)
crates/parser/src/grammar/expr.rs:720
↓ 4 callersFunctionparse_struct_literal
( p: &mut Parser, previous_ty: Option<CompletedMarker>, recovery_set: TokenSet, )
crates/parser/src/grammar/expr.rs:824
↓ 4 callersMethodpeek_raw
(&self)
crates/parser/src/parser.rs:336
↓ 4 callersMethodrange
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:17
↓ 4 callersMethodreport_non_type
Used in `const_ty` to report expressions that aren't types
crates/hir_ty/src/globals.rs:4196
↓ 4 callersMethodshould_report_not_const
(self)
crates/hir_ty/src/globals.rs:34
↓ 4 callersFunctionsimple_id_with_align
`size` and `align` are in bytes
crates/codegen/src/convert.rs:310
↓ 4 callersMethodsize
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:765
↓ 4 callersMethodstore_expr_in_memory
( &mut self, expr: Idx<hir::Expr>, expected_ty: Intern<Ty>, memory: MemoryLoc,
crates/codegen/src/compiler/functions.rs:747
↓ 4 callersMethodto_code
(self)
crates/codegen/src/mangle.rs:248
↓ 4 callersMethodtry_get_previous_ty
(&self, expr: Idx<Expr>)
crates/hir_ty/src/globals.rs:4062
↓ 4 callersMethodtry_naive
( &self, naive: NaiveLoc, world_bodies: &WorldBodies, )
crates/hir_ty/src/lib.rs:89
↓ 3 callersFunctionadd_part
(mangled: &mut String, part: &MangledPart)
crates/codegen/src/mangle.rs:333
↓ 3 callersMethodbreak_with
( &mut self, label: ScopeId, value: Option<Idx<Expr>>, range: TextRange,
crates/hir_ty/src/globals.rs:4006
↓ 3 callersMethodcan_be_created_from_nothing
This might be useful in detecting if a type *needs* an explicit value to be instanced. E.g. ```text my_block : void = { core.println("Hello!"); }; ``
crates/hir/src/common/ty.rs:598
↓ 3 callersFunctioncheck_impl
( modules: FxHashMap<&str, &str>, main_file: &str, entry_point: &str, fake_file_system: bool,
crates/codegen/src/tests.rs:159
↓ 3 callersMethodcompile_array_compare
todo: make sure this works for not equal
crates/codegen/src/compiler/functions.rs:2904
↓ 3 callersMethodcompile_enum_compare
( &mut self, lhs: Value, rhs: Value, ty: Intern<Ty>, variants: impl It
crates/codegen/src/compiler/functions.rs:2789
↓ 3 callersMethodcompile_unreachablez
(&mut self, condition: Value, message: Option<&str>)
crates/codegen/src/compiler/functions.rs:3360
↓ 3 callersMethodcomptime
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:327
↓ 3 callersMethodconst_data
( &mut self, loc: ConcreteLoc, expr: Idx<hir::Expr>, )
crates/hir_ty/src/globals.rs:5027
↓ 3 callersMethodcreate_area_if_not_exists
(&mut self, loc: ConcreteLoc)
crates/hir_ty/src/lib.rs:111
↓ 3 callersFunctioncreate_mangled_for_concrete
todo: I don't like the repeated code in `create_mangled_for_concrete_global` `create_mangled_for_concrete_lambda` `create_mangled_for_concrete`
crates/codegen/src/mangle.rs:154
↓ 3 callersFunctioncreate_mangled_for_naive_lambda
( mod_dir: &std::path::Path, interner: &'a Interner, loc: NaiveLambdaLoc, final_parts: impl It
crates/codegen/src/mangle.rs:41
↓ 3 callersFunctioncreate_nil_value
( builder: &mut FunctionBuilder, ptr_ty: types::Type, option_ty: Intern<Ty>, memory: Option<Me
crates/codegen/src/compiler/mod.rs:1694
↓ 3 callersMethoddebug
( &self, mod_dir: &std::path::Path, interner: &Interner, include_mods: bool,
crates/hir_ty/src/lib.rs:1089
↓ 3 callersMethoddefinition
(&self, fqn: Fqn)
crates/hir/src/world_index.rs:9
↓ 3 callersMethodelse_branch
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:586
↓ 3 callersMethodexpect_block_match
Only call for blocks which had their type previously set by a `break` returns the max of the found expression and the current type of the block todo
crates/hir_ty/src/globals.rs:4076
↓ 3 callersMethodextend_with_num_bytes
(&mut self, num: u32, target_bit_width: u8, endianness: Endianness)
crates/codegen/src/extend.rs:10
↓ 3 callersMethodget_tagged_union_discrim
For nullable optionals (optionals of non-zero types), this returns None
crates/hir/src/common/ty.rs:495
↓ 3 callersMethodhas_polymorphic_body
(&self, naive: NaiveLoc)
crates/hir/src/body.rs:61
↓ 3 callersMethodhas_semantics_of
allows `distinct` types to have the same semantics as other types as long as the inner type matches
crates/hir/src/common/ty.rs:1629
↓ 3 callersMethodhas_sum_variant
For union types (optionals, error unions, and enums) this returns every possible "type" which the sum type might represent. E.g. `?i32` => [i32, nil]
crates/hir/src/common/ty.rs:530
↓ 3 callersMethodinfer_lambda_headers
This will clear `inline_comptime_args` and `inline_comptime_tys`
crates/hir_ty/src/globals.rs:3545
↓ 3 callersMethodinit_new_concrete
Type information is duplicated between the area in which the lambda header resides, and the area in which the lambda body resides. This function does
crates/hir_ty/src/globals.rs:3892
↓ 3 callersMethodis_const
(self)
crates/hir_ty/src/globals.rs:38
↓ 3 callersMethodis_float
(&self)
crates/hir/src/common/ty.rs:613
↓ 3 callersMethodis_optional
(&self)
crates/hir/src/common/ty.rs:463
↓ 3 callersMethoditems
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:781
↓ 3 callersMethodkind
(&self)
crates/parser/src/parser/marker.rs:45
↓ 3 callersMethodlogical_and
( &mut self, lhs: impl FnOnce(&mut Self) -> Value, rhs: impl FnOnce(&mut Self) -> Valu
crates/codegen/src/compiler/functions.rs:3137
↓ 3 callersMethodlogical_or
( &mut self, lhs: impl FnOnce(&mut Self) -> Value, rhs: impl FnOnce(&mut Self) -> Valu
crates/codegen/src/compiler/functions.rs:3166
↓ 3 callersMethodlower_block
(&mut self, block: ast::Block, add_block_label: bool)
crates/hir/src/body.rs:1493
↓ 3 callersMethodlower_string_literal
(&mut self, string_literal: ast::StringLiteral)
crates/hir/src/body.rs:2088
↓ 3 callersMethodparse
( ty: Option<ast::Expr>, interner: &mut Interner, tree: &SyntaxTree, )
crates/hir/src/lib.rs:86
↓ 3 callersFunctionparse_expr_for_prefix
this is used so that certain postfix operators are applied after prefix operators. notably, this allows `^foo^` to be parsed as `(^foo)^` and not `^(
crates/parser/src/grammar/expr.rs:41
↓ 3 callersFunctionparse_lhs
( p: &mut Parser, recovery_set: TokenSet, expected_syntax_name: &'static str, )
crates/parser/src/grammar/expr.rs:138
↓ 3 callersFunctionparse_post_operators
`disallow_derefs` disallows `foo^` expressions to be generated `disallow_dot_instantiation` disallows `foo.()`, `foo.{}`, and `foo.[]` expressions to
crates/parser/src/grammar/expr.rs:232
↓ 3 callersMethodprevious_part
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:869
↓ 3 callersMethodpush_reloc_ptr
(&mut self, data_id: DataId, data_offset: i64, ptr_bit_width: u8)
crates/codegen/src/compiler/ty_info.rs:135
↓ 3 callersMethodrange
(&self)
crates/diagnostics/src/lib.rs:147
↓ 3 callersMethodrange_info
(&self, name: Name)
crates/hir/src/index.rs:27
↓ 3 callersMethodraw_start
(self)
crates/hir/src/common/locations.rs:81
↓ 3 callersMethodresolve_first_label
Used for `return` and `.try`
crates/hir/src/body.rs:2219
↓ 3 callersMethodstart_token_idx
(&self)
crates/parser/src/parser/marker.rs:49
↓ 3 callersFunctiontagged_union_has_discriminant
( builder: &mut FunctionBuilder, tagged_union_ty: Intern<Ty>, val: Value, discrim: i64, )
crates/codegen/src/compiler/mod.rs:1918
↓ 3 callersMethodtail_expr
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:570
↓ 3 callersMethodwithout
(self, kind: TokenKind)
crates/parser/src/token_set.rs:40
↓ 2 callersMethodall_global_bodies
This returns every body of every defined global
crates/hir/src/body.rs:3158
↓ 2 callersMethodall_tys
This might be slightly superficial in some scenarios, I'm not sure
crates/hir_ty/src/lib.rs:1066
↓ 2 callersMethodarms
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:626
↓ 2 callersMethodarray
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:805
↓ 2 callersMethodbuild_bodies
(&mut self, mod_dir: &std::path::Path)
crates/capy/src/source.rs:109
↓ 2 callersMethodcallee
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:841
↓ 2 callersMethodcan_cast_to
This is used for the `as` operator to see whether something can be casted into something else This only allows primitives to be casted to each other,
crates/hir/src/common/ty.rs:1428
↓ 2 callersMethodcan_differentiate_from
returns true if two types are too similar to the point that they share common autocasts e.g. i64 and u64 can not be differentiated from each other be
crates/hir/src/common/ty.rs:1292
↓ 2 callersMethodcan_have_a_name
(&self)
crates/hir/src/common/ty.rs:422
↓ 2 callersFunctioncast_num
( builder: &mut FunctionBuilder, val: Value, cast_from: NumberType, cast_to: NumberType, )
crates/codegen/src/compiler/mod.rs:1519
↓ 2 callersFunctioncast_ty_to_cranelift
( builder: &mut FunctionBuilder, val: Value, cast_from: Intern<Ty>, cast_to: types::Type, )
crates/codegen/src/compiler/mod.rs:1497
↓ 2 callersFunctionclassify_arg
(ty: Intern<Ty>)
crates/codegen/src/convert/abi/x86_64.rs:50
↓ 2 callersMethodcompile_binary
( &mut self, lhs_expr: Idx<hir::Expr>, rhs_expr: Idx<hir::Expr>, op: hir::Bina
crates/codegen/src/compiler/functions.rs:2408
↓ 2 callersMethodcompile_bitcast_fn
( &mut self, unmangled_name: &str, mangled_name: &str, sig: FinalSignature,
crates/codegen/src/compiler/mod.rs:360
↓ 2 callersMethodcompile_builtins
This should be run *after* `Compiler::compile_queued`. `compile_queued` will mark certain builtin globals as "accessed". This function then only popu
crates/codegen/src/compiler/mod.rs:286
↓ 2 callersMethodcompile_global
(&mut self, loc: ConcreteGlobalLoc, no_load: bool)
crates/codegen/src/compiler/functions.rs:481
↓ 2 callersFunctioncompile_obj
( verbosity: Verbosity, entry_point: ConcreteGlobalLoc, mod_dir: &std::path::Path, interner: &
crates/codegen/src/lib.rs:103
↓ 2 callersFunctioncompile_program
( verbosity: Verbosity, entry_point: ConcreteGlobalLoc, mod_dir: &'a std::path::Path, interner
crates/codegen/src/compiler/program.rs:18
↓ 2 callersMethodcompile_queued
This is the function that does the actual work. It iteratively compiles every used function into cranelift IR. This only happens for functions/global
crates/codegen/src/compiler/mod.rs:275
↓ 2 callersMethodcompile_real_function_with_abi
this will handle "resolving" the given location into a final function location
crates/codegen/src/compiler/mod.rs:434
↓ 2 callersMethodcreate_global_i128
(&mut self, num: u64)
crates/codegen/src/compiler/functions.rs:393
↓ 2 callersMethodcreate_global_str
(&mut self, mut text: String)
crates/codegen/src/compiler/functions.rs:387
↓ 2 callersFunctioncreate_mangled_for_file
Starts with "_C" Followed by a table of contents, showing a single letter code for each part of the name. See full list of letters above. For each p
crates/codegen/src/mangle.rs:276
↓ 2 callersFunctioncreate_mangled_for_naive
( mod_dir: &std::path::Path, interner: &'a Interner, loc: NaiveLoc, final_parts: impl Iterator
crates/codegen/src/mangle.rs:76
↓ 2 callersFunctiondefine
( module: &mut dyn Module, data_desc: &mut DataDescription, info_array: DataId, bytes: Vec<u8>
crates/codegen/src/compiler/ty_info.rs:10
↓ 2 callersMethoddefine_array
( self, module: &mut dyn Module, data_desc: &mut DataDescription, array_id: Da
crates/codegen/src/compiler/ty_info.rs:172
↓ 2 callersFunctiondefine_with_relocs
( module: &mut dyn Module, data_desc: &mut DataDescription, info_array: DataId, bytes: Vec<u8>
crates/codegen/src/compiler/ty_info.rs:25
↓ 2 callersMethoddefs
(self, tree: &SyntaxTree)
crates/ast/src/lib.rs:203
↓ 2 callersMethoddisplay
(&self)
crates/hir/src/lib.rs:194
↓ 2 callersMethoderror_with_skip
(&mut self)
crates/parser/src/parser.rs:125
↓ 2 callersMethodexpect_with_recovery_set_no_default
( &mut self, kind: TokenKind, recovery_set: TokenSet, )
crates/parser/src/parser.rs:89
↓ 2 callersFunctionexpr_variant_name
(expr: &Expr)
crates/hir/src/body.rs:4502
↓ 2 callersMethodfinalize_tys
Should be called before `Compiler::compile_queued`. `finalize_tys` will calculate the final size, stride, alignment, and `FinalTy` of every `Intern<T
crates/codegen/src/compiler/mod.rs:266
↓ 2 callersMethodfind_comptimes
(&self)
crates/hir/src/body.rs:94
↓ 2 callersMethodfinish
only pass `None` to `entry_point` if your testing type checking and you don't want to worry about the entry point
crates/hir_ty/src/lib.rs:576
↓ 2 callersMethodfinish
(mut self, errors: Vec<SyntaxError>)
crates/parser/src/sink.rs:24
↓ 2 callersMethodfinish_body
( &mut self, body: Idx<Expr>, expected_ty: Option<ExprExpected>, global: bool,
crates/hir_ty/src/globals.rs:197
↓ 2 callersMethodget_components
On top of separating the path into the module name and the file components, this will also strip any ".capy" at the end of a component, and will repla
crates/hir/src/common/names.rs:72
↓ 2 callersFunctionget_concrete_lambda_global
(lambda: ConcreteLambdaLoc)
crates/hir/src/common/ty.rs:90
← previousnext →201–300 of 1,368, ranked by callers