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
↓ 2 callers
Method
warn_when_unused
(mut self, warn: bool)
src/utils/context.rs:80
↓ 2 callers
Method
with_index_by_expr
( mut self, meta: &mut TranslateMetadata, index: T, )
src/translate/fragments/var_expr.rs:135
↓ 2 callers
Method
with_index_pos
(mut self, pos: Option<String>)
src/translate/fragments/var_expr.rs:166
↓ 2 callers
Method
with_math_var
(mut self, is_math_var: bool)
src/translate/fragments/var_expr.rs:115
↓ 2 callers
Method
with_quotes
(mut self, quoted: bool)
src/translate/fragments/arithmetic.rs:29
↓ 2 callers
Function
write_output
(output: PathBuf, code: String)
src/main.rs:276
↓ 1 callers
Method
add_fun_declaration
Adds a function declaration to the current scope
src/utils/metadata/parser.rs:201
↓ 1 callers
Method
add_fun_instance
Adds a function instance to the cache This function returns the id of the function instance variant
src/utils/metadata/parser.rs:245
↓ 1 callers
Method
add_import_metadata
( &mut self, path: Option<String>, block: Block, pub_funs: Vec<FunctionDecl>,
src/utils/import_cache.rs:100
↓ 1 callers
Method
add_import_path_to_cache
(&mut self, meta: &mut ParserMetadata, path: &str)
src/modules/imports/import.rs:122
↓ 1 callers
Method
add_var
Adds a variable to the current scope Adds a variable to the current scope
src/utils/metadata/parser.rs:117
↓ 1 callers
Method
adjust_end_for_forward_range
Adjust the end value for forward ranges (runtime)
src/modules/expression/binop/range.rs:216
↓ 1 callers
Method
adjust_end_for_reverse_range
Adjust the end value for reverse ranges (runtime)
src/modules/expression/binop/range.rs:225
↓ 1 callers
Function
allow_index_accessor
(index: &Expr, range: bool)
src/modules/variable/mod.rs:249
↓ 1 callers
Method
balance_single_quotes
(&mut self)
src/translate/fragments/interpolable.rs:82
↓ 1 callers
Method
can_intersect
Checks if two types can possibly intersect
src/modules/types.rs:101
↓ 1 callers
Function
check_all_blocks
(meta: &ParserMetadata)
src/translate/mod.rs:9
↓ 1 callers
Function
compare_array_lengths
( left_len: VarExprFragment, right_len: VarExprFragment, operator: ComparisonOperator, )
src/translate/compare.rs:144
↓ 1 callers
Method
compile_import
(&mut self, meta: &mut ParserMetadata)
src/modules/imports/import.rs:168
↓ 1 callers
Method
contains_cycle
Check if graph contains a cycle starting from id
src/utils/import_cache.rs:66
↓ 1 callers
Method
contains_cycle_util
( &self, v: usize, visited: &mut Vec<bool>, rec_stack: &mut Vec<bool>, )
src/utils/import_cache.rs:44
↓ 1 callers
Function
create_variable_with_smaller_number
( name: &str, left: VarExprFragment, right: VarExprFragment, )
src/translate/compare.rs:122
↓ 1 callers
Method
decrease_indent
(&mut self)
src/utils/metadata/translate.rs:166
↓ 1 callers
Method
document
(&self, block: Block, meta: ParserMetadata, output: Option<String>)
src/compiler.rs:361
↓ 1 callers
Method
document
(&self, meta: &ParserMetadata)
src/modules/block.rs:131
↓ 1 callers
Function
eval_amber
(code: &str)
src/tests/mod.rs:49
↓ 1 callers
Method
exclude
Excludes a type from the current type
src/modules/types.rs:47
↓ 1 callers
Method
execute
(code: String, args: Vec<String>)
src/compiler.rs:463
↓ 1 callers
Method
file_import
(mut self, trace: &[PositionInfo], position: PositionInfo)
src/utils/context.rs:240
↓ 1 callers
Function
find_unused_variables
(ast: &FragmentKind, meta: &mut UnusedVariablesMetadata)
src/optimizer/unused_vars.rs:147
↓ 1 callers
Method
gen_preamble
( &self, sudo_used: bool, shell_metadata_used: bool, target_shell: &ShellType,
src/compiler.rs:263
↓ 1 callers
Method
generate_compile_time_range
ShellCheck SC2046: We use `paste -sd " " -` to ensure space-separated output for compliance Generate a range at compile time when both operands are nu
src/modules/expression/binop/range.rs:90
↓ 1 callers
Function
generate_dispatch
Generate the StatementDispatch implementations for an enum
meta/src/dispatch.rs:28
↓ 1 callers
Function
generate_dispatch_inner
(input: &DeriveInput)
meta/src/dispatch.rs:32
↓ 1 callers
Method
generate_docs
(&self, output: Option<String>, usage: bool)
src/compiler.rs:488
↓ 1 callers
Method
generate_forward_seq
Generate a forward seq command for compile-time ranges
src/modules/expression/binop/range.rs:182
↓ 1 callers
Method
generate_reverse_seq
Generate a reverse seq command for compile-time ranges
src/modules/expression/binop/range.rs:199
↓ 1 callers
Method
generate_runtime_range
Generate a range at runtime when at least one operand is a variable
src/modules/expression/binop/range.rs:102
↓ 1 callers
Method
get_block
Gets the block of a function declaration
src/utils/function_cache.rs:76
↓ 1 callers
Method
get_context
Gets the context of a function declaration
src/utils/function_cache.rs:71
↓ 1 callers
Method
get_docs_item_name
(&self)
src/modules/statement/stmt.rs:85
↓ 1 callers
Method
get_fun_names
Gets all the function names in the scope
src/utils/context.rs:179
↓ 1 callers
Method
get_function_in_current_scope
Gets a function from the current scope
src/utils/metadata/parser.rs:266
↓ 1 callers
Method
get_imports
( &mut self, path: Option<String>, )
src/utils/import_cache.rs:115
↓ 1 callers
Method
get_name
(&self)
src/translate/fragments/var_stmt.rs:103
↓ 1 callers
Method
get_narrowed_type
(&self, name: &str)
src/utils/metadata/parser.rs:283
↓ 1 callers
Method
get_opposite_operator
(&self)
src/translate/compare.rs:28
↓ 1 callers
Function
get_rules
()
src/rules.rs:3
↓ 1 callers
Method
get_space
(&self, parentheses: usize, before: &str, word: &str)
src/modules/function/declaration.rs:169
↓ 1 callers
Method
get_type
(&self)
src/modules/function/invocation.rs:30
↓ 1 callers
Method
get_type
(&self)
src/modules/command/cmd.rs:19
↓ 1 callers
Method
get_type
(&self)
src/modules/expression/parentheses.rs:28
↓ 1 callers
Method
get_type
(&self)
src/modules/expression/typeop/cast.rs:16
↓ 1 callers
Method
get_type
(&self)
src/modules/expression/unop/not.rs:29
↓ 1 callers
Method
get_type
(&self)
src/modules/expression/unop/neg.rs:19
↓ 1 callers
Method
get_type
(&self)
src/modules/builtin/lines.rs:22
↓ 1 callers
Method
get_var_in_current_scope
Gets a variable from the current scope
src/utils/metadata/parser.rs:138
↓ 1 callers
Method
get_var_names
Gets all the variable names in the scope
src/utils/context.rs:161
↓ 1 callers
Method
get_variable_prefix
Get variable prefix ${PREFIX-varname-suffix}
src/translate/fragments/var_expr.rs:285
↓ 1 callers
Method
get_variable_suffix
Get variable suffix ${prefix-varname-SUFFIX}
src/translate/fragments/var_expr.rs:294
↓ 1 callers
Function
handle_add_function
( meta: &mut ParserMetadata, tok: Option<Token>, fun: FunctionInterface, ctx: Context, blo
src/modules/function/declaration_utils.rs:79
↓ 1 callers
Function
handle_bad_command_name
( input: &Path, no_proc: &[String], args: Vec<String>, target: Option<ShellType>, )
src/main.rs:436
↓ 1 callers
Function
handle_build
Responsible for executing the build command. `cli_target` Target shell.
src/main.rs:348
↓ 1 callers
Function
handle_completion
()
src/main.rs:426
↓ 1 callers
Function
handle_existing_function
( meta: &mut ParserMetadata, tok: Option<Token>, )
src/modules/function/declaration_utils.rs:71
↓ 1 callers
Function
handle_function_parameters
( meta: &mut ParserMetadata, id: usize, fun: FunctionDecl, args: &[Type], vars: &[bool],
src/modules/function/invocation_utils.rs:194
↓ 1 callers
Function
handle_function_reference
( meta: &ParserMetadata, tok: Option<Token>, name: &str, )
src/modules/function/invocation_utils.rs:175
↓ 1 callers
Function
handle_index_accessor
( meta: &mut ParserMetadata, _range: bool, )
src/modules/variable/mod.rs:212
↓ 1 callers
Function
handle_similar_function
(meta: &ParserMetadata, name: &str)
src/modules/function/invocation_utils.rs:244
↓ 1 callers
Function
handle_similar_variable
(meta: &ParserMetadata, name: &str)
src/modules/variable/mod.rs:153
↓ 1 callers
Function
has_translate_discard
Check if a variant has the `#[dispatch(translate_discard)]` attribute
meta/src/dispatch.rs:6
↓ 1 callers
Method
increase_indent
(&mut self)
src/utils/metadata/translate.rs:162
↓ 1 callers
Method
insert_usage_import_statement
( &self, meta: &ParserMetadata, mut comment_text: String, )
src/modules/function/declaration.rs:525
↓ 1 callers
Method
into_fun_instance
( self, args_global_ids: Vec<Option<usize>>, block: Block, )
src/utils/function_interface.rs:43
↓ 1 callers
Method
into_interface
(self)
src/utils/context.rs:29
↓ 1 callers
Method
is_bash_legacy
(self)
src/utils/metadata/translate.rs:72
↓ 1 callers
Function
is_camel_case
(name: &str)
src/modules/variable/mod.rs:194
↓ 1 callers
Method
is_destruct
(&self, meta: &mut ParserMetadata)
src/modules/expression/access.rs:63
↓ 1 callers
Method
is_empty_logic
(&self)
src/translate/fragments/block.rs:39
↓ 1 callers
Function
is_functions_comment_doc
(meta: &mut ParserMetadata)
src/modules/function/declaration_utils.rs:31
↓ 1 callers
Method
is_mutating
(&self)
src/translate/fragments/fragment.rs:53
↓ 1 callers
Method
is_reverse_range
Check if this is a reverse range (start > end or equal with exclusive operator)
src/modules/expression/binop/range.rs:177
↓ 1 callers
Method
is_running_command
(&self)
src/translate/fragments/fragment.rs:79
↓ 1 callers
Method
is_strictly_typed
(&self)
src/modules/types.rs:91
↓ 1 callers
Method
is_subset_of
(&self, other: &Type)
src/modules/types.rs:26
↓ 1 callers
Method
is_var_used
(&mut self, name: VarStmtName)
src/optimizer/unused_vars.rs:38
↓ 1 callers
Method
is_variable_modified
(&self)
src/modules/variable/get.rs:23
↓ 1 callers
Method
iterates_lines
(&self)
src/modules/loops/iter_loop.rs:224
↓ 1 callers
Method
load_code
(mut self, code: String)
src/compiler.rs:143
↓ 1 callers
Method
load_or_compile
(&mut self, meta: &mut ParserMetadata)
src/modules/imports/import.rs:160
↓ 1 callers
Method
mark_var_used
Marks a variable as used
src/utils/metadata/parser.rs:162
↓ 1 callers
Method
move_to_var_stmt_init
Remove all symbols until the first variable statement with the given name
src/optimizer/unused_vars.rs:95
↓ 1 callers
Method
operator_to_string
(&self)
src/translate/fragments/arithmetic.rs:34
↓ 1 callers
Method
parse
(&mut self, meta: &mut ParserMetadata)
src/modules/expression/expr.rs:172
↓ 1 callers
Method
parse
(&mut self, meta: &mut ParserMetadata)
src/modules/expression/literal/number.rs:26
↓ 1 callers
Function
parse_complex_region
( meta: &mut ParserMetadata, start: String, letter: char, interpolated_type: &InterpolatedRegi
src/modules/expression/interpolated_region.rs:82
↓ 1 callers
Function
parse_keyword_attribute
Parse the `#[keyword = "..."]` attribute
meta/src/lib.rs:295
↓ 1 callers
Function
parse_kind_attribute
Parse the `#[kind = "..."]` attribute
meta/src/lib.rs:276
↓ 1 callers
Method
parse_modifier_sequence
(&mut self, meta: &mut ParserMetadata)
src/modules/command/modifier.rs:79
↓ 1 callers
Function
parse_simple_region
(word: &str, interpolated_type: &InterpolatedRegionType)
src/modules/expression/interpolated_region.rs:74
← previous
next →
201–300 of 1,109, ranked by callers