Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/borgo-lang/borgo
/ functions
Functions
520 in github.com/borgo-lang/borgo
⨍
Functions
520
◇
Types & classes
109
↓ 4 callers
Function
pos_linecol
(pos: Pos)
compiler/src/parser.rs:2060
↓ 4 callers
Method
render_generics_instantiated
(&self, generics_instantiated: &[Type])
compiler/src/codegen.rs:2117
↓ 4 callers
Function
resetLogs
()
playground/wasm-index.js:42
↓ 4 callers
Method
resolve_name
shouldn't take a mut reference, but this whole constructors business is probably wrong anyway
compiler/src/infer.rs:2739
↓ 4 callers
Function
runTestFile
( file: string, blockCb: ( block: CodeBlock, snapshotFolder: string, ) => Promise<string | void>
compiler/test/runner.ts:55
↓ 4 callers
Method
single_span
Create a Span only looking at the single position. Used by single-token expressions, like primitives
compiler/src/parser.rs:2002
↓ 4 callers
Function
substitute_binding
(b: &Binding, instance: &mut infer::Infer)
compiler/src/substitute.rs:434
↓ 4 callers
Method
tokens
(&mut self)
compiler/src/lexer.rs:329
↓ 4 callers
Method
type_any
(&self)
compiler/src/infer.rs:233
↓ 4 callers
Method
type_int
(&self)
compiler/src/infer.rs:218
↓ 4 callers
Method
unhandled_token
(&mut self, ctx: &str)
compiler/src/parser.rs:2050
↓ 4 callers
Function
wrap_block_and_get_statements
(expr: &Expr)
compiler/src/codegen.rs:2193
↓ 4 callers
Function
writeExpectation
(folder: string, out: string, block: CodeBlock)
compiler/test/runner.ts:140
↓ 3 callers
Function
boundsToString
(fbounds []Bound)
importer/importer.go:535
↓ 3 callers
Function
callCompiler
(input: any)
compiler/test/runner.ts:169
↓ 3 callers
Method
check_numeric
(&mut self, ty: &Type, span: &Span)
compiler/src/infer.rs:2078
↓ 3 callers
Method
collect_generics_as_vars
(&mut self, generics: &[String])
compiler/src/infer.rs:1650
↓ 3 callers
Method
declare_module
Declare all symbols in a module. Doesn't update type information.
compiler/src/infer.rs:3025
↓ 3 callers
Method
emit_pattern
(&mut self, subject: &str, is_matching: &str, pat: &Pat)
compiler/src/codegen.rs:406
↓ 3 callers
Method
emit_select_case
Unwrap ch.Recv() or ch.Send(x) and emit corresponding <- ch or ch <- x
compiler/src/codegen.rs:1560
↓ 3 callers
Function
ensure_wrapped_in_block
(expr: &Expr)
compiler/src/codegen.rs:2212
↓ 3 callers
Method
file_from_source
(&mut self, name: &str, source: &str)
compiler/src/infer.rs:2968
↓ 3 callers
Method
first_error
(&self)
compiler/src/infer.rs:90
↓ 3 callers
Function
functionArgsToString
(fargs []FuncArg)
importer/importer.go:555
↓ 3 callers
Method
generate_or_reuse
(&mut self, ctx: &Ctx, ty: &Type, out: &mut Emitter)
compiler/src/codegen.rs:1884
↓ 3 callers
Method
get_function_args
(&self)
compiler/src/type_.rs:165
↓ 3 callers
Method
import_for
given a module name like net::http, find the corresponding "import" TODO asdf using "import" here is a bit misleading and confusing
compiler/src/global_state.rs:109
↓ 3 callers
Method
imports
(&self)
compiler/src/ast.rs:666
↓ 3 callers
Method
infer_module
Assumes all symbols have been declared
compiler/src/infer.rs:3080
↓ 3 callers
Method
init_std
(&mut self)
compiler/src/infer.rs:3131
↓ 3 callers
Method
instantiate
Instantiate all generics to unbound variables. f(x: T, b: Y) -> Y f(x: 0, b: 1) -> 1
compiler/src/infer.rs:1660
↓ 3 callers
Function
is_collection_type
(ty: &Type)
compiler/src/codegen.rs:2354
↓ 3 callers
Method
is_discard
(&self)
compiler/src/type_.rs:340
↓ 3 callers
Method
is_discard
(&self)
compiler/src/codegen.rs:142
↓ 3 callers
Method
is_end_of_line
(&self)
compiler/src/lexer.rs:351
↓ 3 callers
Method
is_eof
(&self)
compiler/src/lexer.rs:347
↓ 3 callers
Method
is_mut_reference
(&self)
compiler/src/type_.rs:305
↓ 3 callers
Method
is_numeric
temporary hacky function to gather together all numeric types. conversions between the specific types are left as an exercises to the go compiler.
compiler/src/infer.rs:2086
↓ 3 callers
Method
is_unit
(&self)
compiler/src/type_.rs:291
↓ 3 callers
Method
module_from_folder
(&mut self, import: ModuleImport, mode: DeclareMode)
compiler/src/infer.rs:2992
↓ 3 callers
Method
once
(&mut self, kind: TokenKind)
compiler/src/lexer.rs:318
↓ 3 callers
Method
parse_binding
(&mut self, mode: &AnnotationMode)
compiler/src/parser.rs:1380
↓ 3 callers
Method
prefix
(&self)
compiler/src/global_state.rs:232
↓ 3 callers
Method
reset_scope
(&mut self)
compiler/src/infer.rs:161
↓ 3 callers
Function
runExpectations
(out: string, block: CodeBlock)
compiler/test/runner.ts:81
↓ 3 callers
Method
set_mutability
(&mut self, name: &str, is_mut: bool)
compiler/src/infer.rs:2747
↓ 3 callers
Method
skip
(&mut self, mut count: usize)
compiler/src/lexer.rs:307
↓ 3 callers
Method
skip_comments
(&mut self)
compiler/src/parser.rs:137
↓ 3 callers
Method
start
(&self)
compiler/src/lexer.rs:278
↓ 3 callers
Function
toReturnType
-------------- Formatting to string --------------
importer/importer.go:515
↓ 3 callers
Method
to_id
(&self)
compiler/src/global_state.rs:236
↓ 3 callers
Method
type_char
(&self)
compiler/src/infer.rs:227
↓ 2 callers
Method
AddFunction
(name string, f *ast.FuncType)
importer/importer.go:190
↓ 2 callers
Method
AddStruct
(name string, bounds []Bound, list []*ast.Field, kind TypeKind)
importer/importer.go:225
↓ 2 callers
Method
add_any_receiver
(&self, ty: Type)
compiler/src/infer.rs:2917
↓ 2 callers
Method
add_constructor
( &mut self, enum_name: &str, cons_name: &str, cons_ty: &BoundedType,
compiler/src/infer.rs:3199
↓ 2 callers
Method
add_pkg_imports
(&mut self, types: &[Type])
compiler/src/codegen.rs:2175
↓ 2 callers
Method
as_option_constructor
(&self)
compiler/src/ast.rs:978
↓ 2 callers
Method
as_result_constructor
(&self)
compiler/src/ast.rs:965
↓ 2 callers
Method
begin
(&mut self)
compiler/src/codegen.rs:191
↓ 2 callers
Function
buildAndRunProject
()
compiler/test/runner.ts:364
↓ 2 callers
Method
bump_line
(&mut self)
compiler/src/lexer.rs:355
↓ 2 callers
Method
check_interface_impl
(&mut self, id1: &Symbol, id2: &Symbol)
compiler/src/infer.rs:2933
↓ 2 callers
Function
collect_ctors
(matrix: &RefPatternMatrix)
compiler/src/exhaustive.rs:425
↓ 2 callers
Function
constructor_field_name
(con_name: &str, fields_count: usize, index: usize)
compiler/src/codegen.rs:2279
↓ 2 callers
Method
create_empty_func
(&self, fun: &Function, span: &Span)
compiler/src/infer.rs:2590
↓ 2 callers
Method
declare_stmts
(&mut self, stmts: &[Expr], vis: &Visibility)
compiler/src/infer.rs:2124
↓ 2 callers
Method
declare_symbols
(&mut self, decls: &[Expr], vis: &Visibility)
compiler/src/infer.rs:2135
↓ 2 callers
Method
declare_types
(&mut self, decls: &[Expr])
compiler/src/infer.rs:2236
↓ 2 callers
Method
declare_values
(&mut self, decls: &[Expr], _vis: &Visibility)
compiler/src/infer.rs:2602
↓ 2 callers
Method
digits
(&mut self)
compiler/src/lexer.rs:470
↓ 2 callers
Method
emit_closure
TODO asdf add Method variant to FunctionKind and remove receiver
compiler/src/codegen.rs:528
↓ 2 callers
Function
emit_files
(files: Vec<EmittedFile>)
compiler/src/main.rs:49
↓ 2 callers
Method
emit_wrapped_call
( &mut self, call: String, func: &Expr, mode: &CallWrapMode, out: &mut
compiler/src/codegen.rs:755
↓ 2 callers
Function
empty_struct
()
compiler/src/codegen.rs:115
↓ 2 callers
Method
ensure_channel_call
In a select {}, we're looking for: - x.Recv() - x.Send() anything else is invalid
compiler/src/infer.rs:3300
↓ 2 callers
Method
error
(&mut self, start: usize, consumed: String)
compiler/src/lexer.rs:361
↓ 2 callers
Method
expect_semi_lenient
More lenient version of expect_semi Will ignore ',' if preceeded by ';'
compiler/src/parser.rs:112
↓ 2 callers
Method
expr_bp
Algorithm stolen from matklad :) https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html
compiler/src/parser.rs:163
↓ 2 callers
Method
expr_lambda
(&mut self)
compiler/src/parser.rs:574
↓ 2 callers
Method
fresh_var
(&mut self)
compiler/src/global_state.rs:45
↓ 2 callers
Method
get_function_ret
(&self)
compiler/src/type_.rs:172
↓ 2 callers
Method
get_interface
(&self, sym: &Symbol)
compiler/src/global_state.rs:118
↓ 2 callers
Method
get_name
(&self)
compiler/src/type_.rs:147
↓ 2 callers
Method
get_package
(&mut self, name: &str)
compiler/src/infer.rs:3191
↓ 2 callers
Method
get_span
(&self)
compiler/src/ast.rs:105
↓ 2 callers
Method
get_struct
(&mut self, sym: &Symbol)
compiler/src/infer.rs:2761
↓ 2 callers
Method
get_struct_by_name
(&mut self, name: &str)
compiler/src/infer.rs:2768
↓ 2 callers
Method
get_type_methods
(&mut self, sym: &Symbol)
compiler/src/infer.rs:2691
↓ 2 callers
Method
get_value
(&mut self, name: &str)
compiler/src/infer.rs:2675
↓ 2 callers
Function
help
()
compiler/src/main.rs:98
↓ 2 callers
Method
import_std
(&mut self)
compiler/src/infer.rs:3127
↓ 2 callers
Function
initProject
(folder: string, block: CodeBlock)
compiler/test/runner.ts:336
↓ 2 callers
Method
is_native
(&self)
compiler/src/ast.rs:284
↓ 2 callers
Function
is_standalone
(expr: &Expr)
compiler/src/codegen.rs:2201
↓ 2 callers
Method
is_std
(&self)
compiler/src/type_.rs:441
↓ 2 callers
Method
is_string
(&self)
compiler/src/type_.rs:355
↓ 2 callers
Method
is_var
(&self)
compiler/src/type_.rs:362
↓ 2 callers
Method
item_enum
(&mut self)
compiler/src/parser.rs:1696
↓ 2 callers
Method
item_interface
(&mut self)
compiler/src/parser.rs:1779
← previous
next →
101–200 of 520, ranked by callers