MCPcopy Create free account

hub / github.com/borgo-lang/borgo / functions

Functions520 in github.com/borgo-lang/borgo

↓ 4 callersFunctionpos_linecol
(pos: Pos)
compiler/src/parser.rs:2060
↓ 4 callersMethodrender_generics_instantiated
(&self, generics_instantiated: &[Type])
compiler/src/codegen.rs:2117
↓ 4 callersFunctionresetLogs
()
playground/wasm-index.js:42
↓ 4 callersMethodresolve_name
shouldn't take a mut reference, but this whole constructors business is probably wrong anyway
compiler/src/infer.rs:2739
↓ 4 callersFunctionrunTestFile
( file: string, blockCb: ( block: CodeBlock, snapshotFolder: string, ) => Promise<string | void>
compiler/test/runner.ts:55
↓ 4 callersMethodsingle_span
Create a Span only looking at the single position. Used by single-token expressions, like primitives
compiler/src/parser.rs:2002
↓ 4 callersFunctionsubstitute_binding
(b: &Binding, instance: &mut infer::Infer)
compiler/src/substitute.rs:434
↓ 4 callersMethodtokens
(&mut self)
compiler/src/lexer.rs:329
↓ 4 callersMethodtype_any
(&self)
compiler/src/infer.rs:233
↓ 4 callersMethodtype_int
(&self)
compiler/src/infer.rs:218
↓ 4 callersMethodunhandled_token
(&mut self, ctx: &str)
compiler/src/parser.rs:2050
↓ 4 callersFunctionwrap_block_and_get_statements
(expr: &Expr)
compiler/src/codegen.rs:2193
↓ 4 callersFunctionwriteExpectation
(folder: string, out: string, block: CodeBlock)
compiler/test/runner.ts:140
↓ 3 callersFunctionboundsToString
(fbounds []Bound)
importer/importer.go:535
↓ 3 callersFunctioncallCompiler
(input: any)
compiler/test/runner.ts:169
↓ 3 callersMethodcheck_numeric
(&mut self, ty: &Type, span: &Span)
compiler/src/infer.rs:2078
↓ 3 callersMethodcollect_generics_as_vars
(&mut self, generics: &[String])
compiler/src/infer.rs:1650
↓ 3 callersMethoddeclare_module
Declare all symbols in a module. Doesn't update type information.
compiler/src/infer.rs:3025
↓ 3 callersMethodemit_pattern
(&mut self, subject: &str, is_matching: &str, pat: &Pat)
compiler/src/codegen.rs:406
↓ 3 callersMethodemit_select_case
Unwrap ch.Recv() or ch.Send(x) and emit corresponding <- ch or ch <- x
compiler/src/codegen.rs:1560
↓ 3 callersFunctionensure_wrapped_in_block
(expr: &Expr)
compiler/src/codegen.rs:2212
↓ 3 callersMethodfile_from_source
(&mut self, name: &str, source: &str)
compiler/src/infer.rs:2968
↓ 3 callersMethodfirst_error
(&self)
compiler/src/infer.rs:90
↓ 3 callersFunctionfunctionArgsToString
(fargs []FuncArg)
importer/importer.go:555
↓ 3 callersMethodgenerate_or_reuse
(&mut self, ctx: &Ctx, ty: &Type, out: &mut Emitter)
compiler/src/codegen.rs:1884
↓ 3 callersMethodget_function_args
(&self)
compiler/src/type_.rs:165
↓ 3 callersMethodimport_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 callersMethodimports
(&self)
compiler/src/ast.rs:666
↓ 3 callersMethodinfer_module
Assumes all symbols have been declared
compiler/src/infer.rs:3080
↓ 3 callersMethodinit_std
(&mut self)
compiler/src/infer.rs:3131
↓ 3 callersMethodinstantiate
Instantiate all generics to unbound variables. f(x: T, b: Y) -> Y f(x: 0, b: 1) -> 1
compiler/src/infer.rs:1660
↓ 3 callersFunctionis_collection_type
(ty: &Type)
compiler/src/codegen.rs:2354
↓ 3 callersMethodis_discard
(&self)
compiler/src/type_.rs:340
↓ 3 callersMethodis_discard
(&self)
compiler/src/codegen.rs:142
↓ 3 callersMethodis_end_of_line
(&self)
compiler/src/lexer.rs:351
↓ 3 callersMethodis_eof
(&self)
compiler/src/lexer.rs:347
↓ 3 callersMethodis_mut_reference
(&self)
compiler/src/type_.rs:305
↓ 3 callersMethodis_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 callersMethodis_unit
(&self)
compiler/src/type_.rs:291
↓ 3 callersMethodmodule_from_folder
(&mut self, import: ModuleImport, mode: DeclareMode)
compiler/src/infer.rs:2992
↓ 3 callersMethodonce
(&mut self, kind: TokenKind)
compiler/src/lexer.rs:318
↓ 3 callersMethodparse_binding
(&mut self, mode: &AnnotationMode)
compiler/src/parser.rs:1380
↓ 3 callersMethodprefix
(&self)
compiler/src/global_state.rs:232
↓ 3 callersMethodreset_scope
(&mut self)
compiler/src/infer.rs:161
↓ 3 callersFunctionrunExpectations
(out: string, block: CodeBlock)
compiler/test/runner.ts:81
↓ 3 callersMethodset_mutability
(&mut self, name: &str, is_mut: bool)
compiler/src/infer.rs:2747
↓ 3 callersMethodskip
(&mut self, mut count: usize)
compiler/src/lexer.rs:307
↓ 3 callersMethodskip_comments
(&mut self)
compiler/src/parser.rs:137
↓ 3 callersMethodstart
(&self)
compiler/src/lexer.rs:278
↓ 3 callersFunctiontoReturnType
-------------- Formatting to string --------------
importer/importer.go:515
↓ 3 callersMethodto_id
(&self)
compiler/src/global_state.rs:236
↓ 3 callersMethodtype_char
(&self)
compiler/src/infer.rs:227
↓ 2 callersMethodAddFunction
(name string, f *ast.FuncType)
importer/importer.go:190
↓ 2 callersMethodAddStruct
(name string, bounds []Bound, list []*ast.Field, kind TypeKind)
importer/importer.go:225
↓ 2 callersMethodadd_any_receiver
(&self, ty: Type)
compiler/src/infer.rs:2917
↓ 2 callersMethodadd_constructor
( &mut self, enum_name: &str, cons_name: &str, cons_ty: &BoundedType,
compiler/src/infer.rs:3199
↓ 2 callersMethodadd_pkg_imports
(&mut self, types: &[Type])
compiler/src/codegen.rs:2175
↓ 2 callersMethodas_option_constructor
(&self)
compiler/src/ast.rs:978
↓ 2 callersMethodas_result_constructor
(&self)
compiler/src/ast.rs:965
↓ 2 callersMethodbegin
(&mut self)
compiler/src/codegen.rs:191
↓ 2 callersFunctionbuildAndRunProject
()
compiler/test/runner.ts:364
↓ 2 callersMethodbump_line
(&mut self)
compiler/src/lexer.rs:355
↓ 2 callersMethodcheck_interface_impl
(&mut self, id1: &Symbol, id2: &Symbol)
compiler/src/infer.rs:2933
↓ 2 callersFunctioncollect_ctors
(matrix: &RefPatternMatrix)
compiler/src/exhaustive.rs:425
↓ 2 callersFunctionconstructor_field_name
(con_name: &str, fields_count: usize, index: usize)
compiler/src/codegen.rs:2279
↓ 2 callersMethodcreate_empty_func
(&self, fun: &Function, span: &Span)
compiler/src/infer.rs:2590
↓ 2 callersMethoddeclare_stmts
(&mut self, stmts: &[Expr], vis: &Visibility)
compiler/src/infer.rs:2124
↓ 2 callersMethoddeclare_symbols
(&mut self, decls: &[Expr], vis: &Visibility)
compiler/src/infer.rs:2135
↓ 2 callersMethoddeclare_types
(&mut self, decls: &[Expr])
compiler/src/infer.rs:2236
↓ 2 callersMethoddeclare_values
(&mut self, decls: &[Expr], _vis: &Visibility)
compiler/src/infer.rs:2602
↓ 2 callersMethoddigits
(&mut self)
compiler/src/lexer.rs:470
↓ 2 callersMethodemit_closure
TODO asdf add Method variant to FunctionKind and remove receiver
compiler/src/codegen.rs:528
↓ 2 callersFunctionemit_files
(files: Vec<EmittedFile>)
compiler/src/main.rs:49
↓ 2 callersMethodemit_wrapped_call
( &mut self, call: String, func: &Expr, mode: &CallWrapMode, out: &mut
compiler/src/codegen.rs:755
↓ 2 callersFunctionempty_struct
()
compiler/src/codegen.rs:115
↓ 2 callersMethodensure_channel_call
In a select {}, we're looking for: - x.Recv() - x.Send() anything else is invalid
compiler/src/infer.rs:3300
↓ 2 callersMethoderror
(&mut self, start: usize, consumed: String)
compiler/src/lexer.rs:361
↓ 2 callersMethodexpect_semi_lenient
More lenient version of expect_semi Will ignore ',' if preceeded by ';'
compiler/src/parser.rs:112
↓ 2 callersMethodexpr_bp
Algorithm stolen from matklad :) https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html
compiler/src/parser.rs:163
↓ 2 callersMethodexpr_lambda
(&mut self)
compiler/src/parser.rs:574
↓ 2 callersMethodfresh_var
(&mut self)
compiler/src/global_state.rs:45
↓ 2 callersMethodget_function_ret
(&self)
compiler/src/type_.rs:172
↓ 2 callersMethodget_interface
(&self, sym: &Symbol)
compiler/src/global_state.rs:118
↓ 2 callersMethodget_name
(&self)
compiler/src/type_.rs:147
↓ 2 callersMethodget_package
(&mut self, name: &str)
compiler/src/infer.rs:3191
↓ 2 callersMethodget_span
(&self)
compiler/src/ast.rs:105
↓ 2 callersMethodget_struct
(&mut self, sym: &Symbol)
compiler/src/infer.rs:2761
↓ 2 callersMethodget_struct_by_name
(&mut self, name: &str)
compiler/src/infer.rs:2768
↓ 2 callersMethodget_type_methods
(&mut self, sym: &Symbol)
compiler/src/infer.rs:2691
↓ 2 callersMethodget_value
(&mut self, name: &str)
compiler/src/infer.rs:2675
↓ 2 callersFunctionhelp
()
compiler/src/main.rs:98
↓ 2 callersMethodimport_std
(&mut self)
compiler/src/infer.rs:3127
↓ 2 callersFunctioninitProject
(folder: string, block: CodeBlock)
compiler/test/runner.ts:336
↓ 2 callersMethodis_native
(&self)
compiler/src/ast.rs:284
↓ 2 callersFunctionis_standalone
(expr: &Expr)
compiler/src/codegen.rs:2201
↓ 2 callersMethodis_std
(&self)
compiler/src/type_.rs:441
↓ 2 callersMethodis_string
(&self)
compiler/src/type_.rs:355
↓ 2 callersMethodis_var
(&self)
compiler/src/type_.rs:362
↓ 2 callersMethoditem_enum
(&mut self)
compiler/src/parser.rs:1696
↓ 2 callersMethoditem_interface
(&mut self)
compiler/src/parser.rs:1779
← previousnext →101–200 of 520, ranked by callers