Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amber-lang/amber
/ functions
Functions
1,109 in github.com/amber-lang/amber
⨍
Functions
1,109
◇
Types & classes
178
↓ 4 callers
Function
script_test
Inner test logic for testing script output in case of success or failure
src/tests/mod.rs:117
↓ 4 callers
Method
test_eval
(&mut self)
src/compiler.rs:498
↓ 4 callers
Method
translate
(&self, meta: &mut TranslateMetadata)
src/modules/loops/iter_loop.rs:69
↓ 4 callers
Method
translate
(&self, meta: &mut TranslateMetadata)
src/modules/expression/binop/range.rs:74
↓ 4 callers
Function
translate_array_lexical_comparison
( meta: &mut TranslateMetadata, operator: ComparisonOperator, left: &Expr, right: &Expr, k
src/translate/compare.rs:185
↓ 4 callers
Function
translate_lexical_comparison
( meta: &mut TranslateMetadata, operator: ComparisonOperator, left: &Expr, right: &Expr, )
src/translate/compare.rs:63
↓ 4 callers
Function
validate_output_dir
Validates the provided output actually points to a directory.
src/main.rs:396
↓ 4 callers
Method
with_array_ref
(mut self, is_array_ref: bool)
src/translate/fragments/var_expr.rs:120
↓ 4 callers
Method
with_const
(mut self, is_const: bool)
src/utils/context.rs:114
↓ 3 callers
Method
add_fun
Persists a function declaration in the scope
src/utils/context.rs:168
↓ 3 callers
Function
compile_code
(code: T)
src/tests/mod.rs:83
↓ 3 callers
Function
create_output_dir
Determines the output path that should be used in directory mode for the given input.
src/main.rs:407
↓ 3 callers
Function
env_lock
()
src/compiler/shell_resolve.rs:118
↓ 3 callers
Function
eval_bash
(code: T)
src/tests/mod.rs:90
↓ 3 callers
Method
execute
(&self, code: String)
src/compiler/postprocessor.rs:40
↓ 3 callers
Method
extract_facts
(&self)
src/modules/expression/typeop/is.rs:36
↓ 3 callers
Method
gen_indent
(&self)
src/utils/metadata/translate.rs:148
↓ 3 callers
Function
get_binop_position_info
( meta: &mut ParserMetadata, left: &Expr, right: &Expr, )
src/modules/expression/binop/mod.rs:98
↓ 3 callers
Function
get_ccflag_by_name
(flag: &str)
src/utils/cc_flags.rs:11
↓ 3 callers
Method
get_fun_declaration
Gets a function declaration from the current scope or any parent scope
src/utils/metadata/parser.rs:257
↓ 3 callers
Method
get_instances
Gets all the function instances of a function declaration as a reference
src/utils/function_cache.rs:66
↓ 3 callers
Method
get_integer_value
(&self)
src/modules/expression/expr.rs:122
↓ 3 callers
Method
get_type
(&self)
src/modules/function/ret.rs:16
↓ 3 callers
Method
get_type
(&self)
src/modules/expression/typeop/is.rs:54
↓ 3 callers
Method
get_type
(&self)
src/utils/function_metadata.rs:34
↓ 3 callers
Function
handle_eval
(command: EvalCommand)
src/main.rs:295
↓ 3 callers
Function
handle_symbol_scope_declaration
( meta: &mut ParserMetadata, name: &str, tok: Option<Token>, )
src/modules/mod.rs:26
↓ 3 callers
Method
parse
(&self, tokens: Vec<Token>)
src/compiler.rs:178
↓ 3 callers
Function
parse_escaped_string
Parse Amber code's escaped strings and reterns it.
src/modules/expression/interpolated_region.rs:42
↓ 3 callers
Function
pretty_join
(items: &[T], op: &str)
src/utils/mod.rs:24
↓ 3 callers
Method
render_variable_statement
(self, meta: &mut TranslateMetadata)
src/translate/fragments/var_stmt.rs:120
↓ 3 callers
Function
run_function_with_args
( meta: &mut ParserMetadata, mut fun: FunctionDecl, args: &[Type], tok: Option<Token>, per
src/modules/function/invocation_utils.rs:27
↓ 3 callers
Method
to_frag
(self)
src/translate/fragments/var_expr.rs:396
↓ 3 callers
Method
to_string
(self, meta: &mut TranslateMetadata)
src/translate/fragments/interpolable.rs:159
↓ 3 callers
Function
translate_amber_code
(code: T)
src/tests/compiling.rs:42
↓ 3 callers
Function
try_parse_type
Tries to parse the type - if it fails, it fails quietly
src/modules/types.rs:152
↓ 3 callers
Function
validate_input_existence
Validates the existence of the provided input file.
src/main.rs:387
↓ 3 callers
Method
with_array_to_string
(mut self, is_array_to_string: bool)
src/translate/fragments/var_expr.rs:110
↓ 3 callers
Method
with_no_indent
(mut self)
src/modules/block.rs:34
↓ 3 callers
Method
with_no_syntax
(mut self)
src/modules/block.rs:39
↓ 3 callers
Method
with_operator
(mut self, op: &str)
src/translate/fragments/var_stmt.rs:93
↓ 3 callers
Method
with_public
(mut self, is_public: bool)
src/utils/context.rs:129
↓ 2 callers
Method
add_fun_declaration_existing
Adds a function declaration that that was already parsed - this function is probably imported
src/utils/metadata/parser.rs:223
↓ 2 callers
Method
add_imported_deps
( &mut self, meta: &mut ParserMetadata, mut pub_funs: Vec<FunctionDecl>, mut p
src/modules/imports/import.rs:44
↓ 2 callers
Method
add_instance
Adds a new function instance to the cache
src/utils/function_cache.rs:53
↓ 2 callers
Method
add_var_declaration_existing
(&mut self, var: VariableDecl)
src/utils/metadata/parser.rs:234
↓ 2 callers
Method
analyze_control_flow
(&self)
src/modules/expression/typeop/is.rs:20
↓ 2 callers
Method
cmd
(&self)
src/compiler/postprocessor.rs:29
↓ 2 callers
Function
create_indexed_variable
( name: &str, index: &str, expr: VarExprFragment, )
src/translate/compare.rs:171
↓ 2 callers
Function
create_interpolable
(render_type: InterpolableRenderType)
src/translate/fragments/interpolable.rs:178
↓ 2 callers
Function
create_variable_length_getter
( meta: &mut TranslateMetadata, name: &str, expr: &Expr, )
src/translate/compare.rs:111
↓ 2 callers
Method
default_return
(&self)
src/utils/function_metadata.rs:38
↓ 2 callers
Function
extract_output
Extracts the output from the comment of Amber code
src/tests/mod.rs:106
↓ 2 callers
Method
family_name
(self)
src/utils/metadata/translate.rs:64
↓ 2 callers
Method
gen_fun_id
Generate a new global function id
src/utils/metadata/parser.rs:194
↓ 2 callers
Method
gen_var_id
Generate a new global variable id
src/utils/metadata/parser.rs:109
↓ 2 callers
Method
get_array_index
(&self, meta: &mut TranslateMetadata)
src/modules/expression/unop/neg.rs:87
↓ 2 callers
Method
get_fun
Fetches a function declaration from the scope
src/utils/context.rs:174
↓ 2 callers
Method
get_instances_cloned
Gets all the function instances of a function declaration
src/utils/function_cache.rs:61
↓ 2 callers
Method
get_path
(optional_path: Option<String>)
src/utils/import_cache.rs:26
↓ 2 callers
Method
get_sorted_ast_forest
( &self, block: Block, meta: &ParserMetadata, )
src/compiler.rs:207
↓ 2 callers
Function
get_type
Gets the type of a given field. Note, we use the `PathSegment` not the contained `Ident`, because that supports generic field types like `Option<Stri
meta/src/utils.rs:32
↓ 2 callers
Method
get_type
(&self)
src/modules/function/fail.rs:20
↓ 2 callers
Method
get_type
(&self)
src/modules/expression/binop/neq.rs:20
↓ 2 callers
Method
get_type
(&self)
src/modules/expression/binop/eq.rs:20
↓ 2 callers
Method
get_type
(&self)
src/modules/expression/binop/ge.rs:21
↓ 2 callers
Method
get_type
(&self)
src/modules/expression/binop/le.rs:21
↓ 2 callers
Method
get_type
(&self)
src/modules/expression/binop/gt.rs:21
↓ 2 callers
Method
get_type
(&self)
src/modules/builtin/len.rs:20
↓ 2 callers
Method
get_var
Gets a variable from the current scope or any parent scope
src/utils/metadata/parser.rs:129
↓ 2 callers
Method
get_var_used
Returns a variable and marks it as used
src/utils/metadata/parser.rs:156
↓ 2 callers
Function
get_version
()
src/main.rs:34
↓ 2 callers
Function
handle_completion_with_output
(output: &mut dyn std::io::Write)
src/main.rs:430
↓ 2 callers
Function
handle_docs
(command: DocsCommand)
src/main.rs:322
↓ 2 callers
Function
handle_err
(err: std::io::Error)
src/main.rs:241
↓ 2 callers
Function
handle_eval_with_target
( command: EvalCommand, cli_target: Option<ShellType>, )
src/main.rs:299
↓ 2 callers
Method
is_available
(&self)
src/compiler/postprocessor.rs:33
↓ 2 callers
Function
is_escaped
Returns true if the words contain an even number of `\`.
src/modules/expression/interpolated_region.rs:23
↓ 2 callers
Method
is_first_pass_done
Checks if the first-pass typecheck has been done for a function
src/utils/function_cache.rs:81
↓ 2 callers
Method
is_subseteq_of
(&self, other: &Type)
src/modules/types.rs:42
↓ 2 callers
Function
make_block
Implements multiple functions for a struct implementation block.
meta/src/utils.rs:6
↓ 2 callers
Method
make_block
(&self)
meta/src/helper.rs:33
↓ 2 callers
Method
mangled_name
(&self)
src/utils/function_metadata.rs:26
↓ 2 callers
Function
ordinal_number
Convert a number to an ordinal number Eg. 1 -> 1st, 2 -> 2nd, 3 -> 3rd, 4 -> 4th
src/modules/function/invocation_utils.rs:11
↓ 2 callers
Function
parse_interpolated_region
( meta: &mut ParserMetadata, interpolated_type: &InterpolatedRegionType, )
src/modules/expression/interpolated_region.rs:129
↓ 2 callers
Function
render_dash
()
src/main.rs:248
↓ 2 callers
Method
render_deref_variable
( self, meta: &mut TranslateMetadata, prefix: &str, name: &str, suffix
src/translate/fragments/var_expr.rs:336
↓ 2 callers
Function
set_file_permission
(_file: &fs::File, _output: String)
src/main.rs:205
↓ 2 callers
Method
set_first_pass_done
Marks the first-pass typecheck as done for a function
src/utils/function_cache.rs:86
↓ 2 callers
Method
set_position
(&mut self, position: PositionInfo)
src/modules/condition/failure_handler.rs:61
↓ 2 callers
Function
should_optimize_var_stmt
(var_stmt: &VarStmtFragment)
src/optimizer/unused_vars.rs:138
↓ 2 callers
Function
test_amber
Tests script output in case of success or failure
src/tests/mod.rs:56
↓ 2 callers
Method
topological_sort
(&self)
src/utils/import_cache.rs:137
↓ 2 callers
Function
translate_amber_code_with_target
( code: T, target: Option<ShellType>, )
src/tests/compiling.rs:15
↓ 2 callers
Function
translate_array_equality
( left: VarExprFragment, right: VarExprFragment, negative: bool, )
src/translate/compare.rs:308
↓ 2 callers
Method
translate_range_loop_index_fragments
Defines index iterator variable if used
src/modules/loops/utils/iter_loop_range.rs:69
↓ 2 callers
Function
try_parse_simple_type
(meta: &mut ParserMetadata)
src/modules/types.rs:178
↓ 2 callers
Method
typecheck
( &self, mut block: Block, mut meta: ParserMetadata, )
src/compiler.rs:430
↓ 2 callers
Function
validate_index_accessor
( meta: &ParserMetadata, index: &Expr, range: bool, position: PositionInfo, )
src/modules/variable/mod.rs:225
↓ 2 callers
Method
warn_when_unmodified
(mut self, warn: bool)
src/utils/context.rs:75
← previous
next →
101–200 of 1,109, ranked by callers