MCPcopy Create free account

hub / github.com/ameliatastic/seahorse-lang / functions

Functions580 in github.com/ameliatastic/seahorse-lang

↓ 289 callersMethodclone
(&self)
tests/compiled-examples/pyth.rs:78
↓ 147 callersMethodmap
Map every leaf element with a function, consuming this tree and returning a new one with the same structure.
src/core/util.rs:167
↓ 69 callersMethodpush
(&mut self, part: String)
src/core/preprocess/mod.rs:175
↓ 52 callersFunctionident
Convenience function for turning strings into Idents
src/core/generate/mod.rs:34
↓ 52 callersMethodunify
Unify types. A normal unification algorithm will just make two types the same. Seahorse needs to keep a line between what the user can do and compile
src/core/compile/check/mod.rs:2055
↓ 44 callersMethodinsert
Insert a subtree into the tree at the given path. Returns whether the operation completed successfully - will fail if the insertion would have to ove
src/core/util.rs:286
↓ 39 callersMethodcheck_expr
Typecheck an expression that needs to unify to type `expr_ty`. Based on the expression, might impose additional constraints on the underlying type of
src/core/compile/check/mod.rs:1234
↓ 37 callersMethodtry_into
(self)
src/core/clean/mod.rs:219
↓ 36 callersMethodget
Get a reference to a node in the tree at the given `path`.
src/core/util.rs:229
↓ 35 callersMethodclone
(&self)
tests/compiled-examples/stored_mutables.rs:490
↓ 29 callersMethodfree
Add a new free variable, returning the new type parameter.
src/core/compile/check/mod.rs:593
↓ 28 callersMethodcore
(self, loc: &Location)
src/core/compile/check/mod.rs:49
↓ 18 callersMethodlocated
(self, loc: Location)
src/core/util.rs:28
↓ 17 callersMethodindex
(&self)
src/core/compile/builtin/mod.rs:81
↓ 16 callersMethodpop
(&mut self)
src/core/preprocess/mod.rs:179
↓ 13 callersFunctionerror_message
Generic error message formatting.
src/bin/cli/util.rs:27
↓ 12 callersMethodcore
(self, loc: &Location)
src/core/compile/sign/mod.rs:35
↓ 12 callersMethodcore
(self, loc: Location)
src/core/clean/mod.rs:51
↓ 12 callersMethodkey
Get this account's key.
data/const/seahorse_prelude.py:914
↓ 10 callersMethodclone
(&self)
tests/compiled-examples/calculator.rs:174
↓ 10 callersMethodclone
(&self)
tests/compiled-examples/hello.rs:128
↓ 10 callersMethodcore
(self)
src/core/compile/namespace/mod.rs:23
↓ 10 callersMethodoptional
Get the result of an optional argument - if it's a placeholder, return `None`.
src/core/compile/ast.rs:296
↓ 10 callersMethodtranspose
Turns a Tree<Result<T, E>> into a Result<Tree<T>, Vec<E>>. Only one error is returned. Multiple may have been generated, but whichever one is reached
src/core/util.rs:383
↓ 9 callersMethodclone
(&self)
tests/compiled-examples/fizzbuzz.rs:124
↓ 9 callersFunctiondeclare_id
Inform Anchor what this program's ID is. @param id: The program's ID, generated by Anchor in /target/idl/<program>.json. This must be copied-past
data/const/seahorse_prelude.py:1036
↓ 9 callersMethodfinalize
Make a parameterized type into a finalized type, if possible.
src/core/compile/check/mod.rs:668
↓ 9 callersMethodwithout_borrows
Remove the borrows from this expression.
src/core/compile/ast.rs:313
↓ 8 callersMethodget_leaf
Get a reference to a leaf in the tree at the given `path`.
src/core/util.rs:252
↓ 6 callersMethodbase
Get the base type of a type parameter (recursively).
src/core/compile/check/mod.rs:607
↓ 6 callersMethodclone
(&self)
tests/compiled-examples/event.rs:115
↓ 6 callersMethodconstructor
(&self, name: TyName)
src/core/compile/sign/mod.rs:127
↓ 6 callersMethodcore
(&self)
src/core/preprocess/mod.rs:28
↓ 6 callersMethodget_leaf_ext
Get the "leaf of a leaf" from a tree.
src/core/util.rs:427
↓ 6 callersMethodinit
Initialize the account. @param payer: The account that will pay for the rent cost of the initialized account. Must be an ins
data/const/seahorse_prelude.py:892
↓ 6 callersMethodwith_loc
(self, loc: SrcLocation)
src/core/util.rs:44
↓ 6 callersMethodzip
(self, tree: Tree<U>)
src/core/util.rs:213
↓ 5 callersMethodbuild_ty
(&self, ty_expr: &ca::TyExpression, abs: &Vec<String>)
src/core/compile/namespace/mod.rs:233
↓ 5 callersMethodcheck_block
Typecheck a block of statements. Includes an optional parameter for passing in a pre-made scope.
src/core/compile/check/mod.rs:1073
↓ 5 callersMethodclone
(&self)
tests/compiled-test-cases/account_key.rs:133
↓ 5 callersMethodget_path
Get the "full" path (base + path).
src/core/preprocess/mod.rs:148
↓ 5 callersMethodis_copy
Returns whether this type is Rust-`Copy`.
src/core/compile/check/mod.rs:221
↓ 5 callersMethodnew_ty
Add a new type, returning the associated parameter.
src/core/compile/check/mod.rs:600
↓ 5 callersMethodremove
Remove the subtree at the given `path`. Returns the removed subtree, if one exists.
src/core/util.rs:336
↓ 5 callersFunctionwith_spinner
Run a task with a terminal spinner, with a custom success message.
src/bin/cli/util.rs:6
↓ 4 callersMethodadd_module
Add a module.
src/core/preprocess/mod.rs:217
↓ 4 callersFunctionas_assignment_target
Optionally convert an expression into targets for variable assignment.
src/core/compile/check/mod.rs:424
↓ 4 callersMethodbase_ty
(&self, ty: Ty)
src/core/compile/check/mod.rs:2039
↓ 4 callersFunctionbuild_function_signature
( params: &ca::Params, returns: &Option<ca::TyExpression>, abs: &Vec<String>, root: &Tree<Name
src/core/compile/sign/mod.rs:495
↓ 4 callersMethoddeclare_target
Declare a target, creating a new type parameter for it. Also builds a list of the variable names that get declared by this target. Declarations can h
src/core/compile/check/mod.rs:729
↓ 4 callersMethoddefined_attr
(&mut self, path: &Vec<String>, attr: &String)
src/core/compile/check/mod.rs:966
↓ 4 callersMethodget_fs_module_path
Get the filesystem path for a module at this path
src/core/preprocess/mod.rs:155
↓ 4 callersMethodget_mut
Get a mutable reference to a node in the tree at the given `path`.
src/core/util.rs:260
↓ 4 callersFunctionnamespace
Builds the namespace of every module.
src/core/compile/namespace/mod.rs:512
↓ 4 callersMethodupdated
(self, loc: &Location)
src/core/util.rs:36
↓ 3 callersMethod__init__
(&self, mut num: i32)
tests/compiled-examples/stored_mutables.rs:183
↓ 3 callersMethod_deanonymize
(&mut self, t: Ty, base: usize)
src/core/compile/check/mod.rs:630
↓ 3 callersMethodattr
Get the type of an attribute of a type.
src/core/compile/check/mod.rs:771
↓ 3 callersFunctionbeautify
(tokens: TokenStream)
src/core/generate/mod.rs:1828
↓ 3 callersFunctionbuild_namespace
Recursively build the namespace associated with `path`.
src/core/compile/namespace/mod.rs:299
↓ 3 callersMethodcheck_binop_sides
( &mut self, left: &ast::Expression, right: &ast::Expression, loc: &Location,
src/core/compile/check/mod.rs:1846
↓ 3 callersMethodcheck_constant
Check a constant expansion.
src/core/compile/check/mod.rs:1673
↓ 3 callersMethodcorrect
Correct typenames.
src/core/compile/sign/mod.rs:170
↓ 3 callersMethoddeanonymize_pair
(&mut self, tys: (Ty, Ty))
src/core/compile/check/mod.rs:661
↓ 3 callersMethodfind_var
Find the location, if any, of a variable in scope. Returns the scope level that the variable is stored in.
src/core/compile/check/mod.rs:691
↓ 3 callersMethodget
(&self, name: &'static str)
tests/compiled-examples/hello.rs:225
↓ 3 callersFunctionget_import_obj
Finds an imported object given a path within the namespace tree and optional extra symbol. Requires the caller to make sure that the namespace at `pa
src/core/compile/namespace/mod.rs:440
↓ 3 callersMethodis_package
(&self)
src/core/preprocess/mod.rs:188
↓ 3 callersFunctionload_module
Load a module from path, parse and clean it. TODO unused so far, will be used when imports are really added
src/core/preprocess/mod.rs:93
↓ 3 callersFunctionorder_args
Reorder `Args` into the order specified by a list of params.
src/core/compile/check/mod.rs:448
↓ 3 callersFunctionparse
(source: String)
src/core/parse/parser.rs:7
↓ 3 callersMethodpartial
(self)
src/core/clean/mod.rs:55
↓ 3 callersFunctionstored_field
(expr: TokenStream, ty: &TyExpr)
src/core/generate/mod.rs:204
↓ 2 callersMethodadd_package
Add a package (by path). Assumes that `path` definitely points to a filesystem package path.
src/core/preprocess/mod.rs:347
↓ 2 callersMethodas_immut
(&self)
src/core/compile/ast.rs:276
↓ 2 callersFunctionbuild
Builds a Seahorse program.
src/bin/cli/build.rs:129
↓ 2 callersFunctionbuild_program
Build a single program.
src/bin/cli/build.rs:44
↓ 2 callersMethodcasted
(&self, ty: &Ty)
src/core/compile/builtin/mod.rs:89
↓ 2 callersMethodcheck_binop
Check a (binary) operation that needs to unify to type `t`.
src/core/compile/check/mod.rs:1688
↓ 2 callersMethodcheck_call
Typecheck a function call `f(args)` with a return value that needs to unify to type `expr_ty`.
src/core/compile/check/mod.rs:1877
↓ 2 callersFunctionclean
(program: py::Program, source: String)
src/core/clean/mod.rs:1018
↓ 2 callersMethodclone
(&self)
tests/compiled-examples/constants.rs:69
↓ 2 callersFunctioncompile
(args: CompileArgs)
src/bin/cli/compile.rs:61
↓ 2 callersMethoddeanonymize
Turn a group of anonymous free variables into contextualized free variables. Anonymouse free variables can come back from any call that might use gen
src/core/compile/check/mod.rs:625
↓ 2 callersFunctionfrom_template
Do some template text replacements.
src/bin/cli/init.rs:26
↓ 2 callersMethodget_abs_path
Get an absolute path. The registry search behavior is as such: 1. Check if from+ext is a valid path (searches relative area first) 2. For each `src` (
src/core/preprocess/mod.rs:70
↓ 2 callersMethodget_fs_package_path
Get the filesystem path for a package at this path
src/core/preprocess/mod.rs:166
↓ 2 callersMethodis_dead
Return whether this tree is "dead" (has no leaves).
src/core/util.rs:364
↓ 2 callersMethodis_display
Returns whether this type is Rust-`Display`.
src/core/compile/check/mod.rs:232
↓ 2 callersMethodis_free
(&self, param: usize)
src/core/compile/check/mod.rs:2032
↓ 2 callersMethodis_module
(&self)
src/core/preprocess/mod.rs:183
↓ 2 callersFunctionloaded_field
(expr: TokenStream, ty: &TyExpr)
src/core/generate/mod.rs:155
↓ 2 callersMethodmap_with_path
Like map, but gives you an argument containing the leaf's path.
src/core/util.rs:187
↓ 2 callersFunctionproject_root
Ascend the directory tree until we reach the project root.
src/bin/cli/util.rs:32
↓ 2 callersMethodreset
(&self)
tests/compiled-examples/stored_mutables.rs:290
↓ 2 callersMethodreset
(self)
examples/stored_mutables.py:25
↓ 2 callersFunctionsemver
(outer_re: &str, version: &str)
src/bin/cli/init.rs:44
↓ 2 callersMethodstatic_attr
(&self, attr: &String)
src/core/compile/builtin/mod.rs:85
↓ 2 callersMethodty
(&self)
src/core/compile/builtin/mod.rs:69
↓ 2 callersMethodwith_call
(self, name: &str, args: Vec<TypedExpression>)
src/core/compile/ast.rs:399
next →1–100 of 580, ranked by callers