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
↓ 223 callers
Method
to_frag
(&self)
src/translate/compare.rs:58
↓ 123 callers
Method
to_string
(&self)
src/translate/compare.rs:48
↓ 49 callers
Method
with_global_id
(mut self, id: T)
src/translate/fragments/var_expr.rs:95
↓ 42 callers
Method
is_empty
Get whether this block is empty
src/modules/block.rs:20
↓ 39 callers
Method
get_position
(&self)
src/modules/expression/expr.rs:131
↓ 33 callers
Method
push_ephemeral_variable
Create an intermediate variable and return it's variable expression
src/utils/metadata/translate.rs:154
↓ 32 callers
Function
raw_frag
(s: &str)
src/tests/translating.rs:78
↓ 26 callers
Method
use_modifiers
(&mut self, meta: &mut ParserMetadata, context: F)
src/modules/command/modifier.rs:66
↓ 25 callers
Method
get_type
(&self)
src/modules/builtin/ls.rs:24
↓ 24 callers
Method
with_ref
(mut self, is_ref: bool)
src/utils/context.rs:119
↓ 23 callers
Function
amber_bin
()
src/tests/cli.rs:274
↓ 23 callers
Method
gen_value_id
(&mut self)
src/utils/metadata/translate.rs:170
↓ 22 callers
Function
generate_grammar_ebnf
()
src/utils/grammar_ebnf.rs:219
↓ 22 callers
Method
to_string
(&self)
src/modules/condition/failure_handler.rs:37
↓ 22 callers
Method
tokenize
(&self)
src/compiler.rs:148
↓ 21 callers
Method
add_message
(&mut self, message: Message)
src/utils/metadata/parser.rs:56
↓ 20 callers
Method
is_allowed_in
(&self, other: &Type)
src/modules/types.rs:75
↓ 19 callers
Function
create_test_metadata
()
src/tests/translating.rs:65
↓ 19 callers
Function
variable_name_extensions
()
src/modules/variable/mod.rs:16
↓ 19 callers
Method
with_quotes
(mut self, is_quoted: bool)
src/translate/fragments/var_expr.rs:181
↓ 18 callers
Function
scan_quote_state
Scans a string to determine the quoting state, updating the state flags. Returns `true` if the single-quote state was toggled.
src/translate/fragments/interpolable.rs:135
↓ 17 callers
Method
compile
(&self)
src/compiler.rs:454
↓ 17 callers
Method
parse
(&mut self, meta: &mut ParserMetadata)
src/modules/main.rs:38
↓ 17 callers
Function
translate_awk_computation
( op: ArithOp, left: FragmentKind, right: FragmentKind, with_quotes: bool, )
src/translate/compute.rs:29
↓ 16 callers
Method
get_index
(&self)
src/utils/metadata/parser.rs:332
↓ 16 callers
Function
translate_float_computation
( meta: &TranslateMetadata, operator: ArithOp, left: Option<FragmentKind>, right: Option<Fragm
src/translate/compute.rs:93
↓ 15 callers
Method
is_array
(&self)
src/modules/types.rs:87
↓ 14 callers
Method
get_name
(&self)
src/translate/fragments/var_expr.rs:186
↓ 14 callers
Method
with_optimization_when_unused
(mut self, optimize: bool)
src/translate/fragments/var_stmt.rs:98
↓ 14 callers
Method
with_target
(mut self, target: Option<ShellType>)
src/compiler.rs:115
↓ 13 callers
Method
translate_eval
(&self, meta: &mut TranslateMetadata, is_eval: bool)
src/translate/module.rs:7
↓ 13 callers
Method
typecheck
(&mut self, meta: &mut ParserMetadata)
src/modules/expression/literal/text.rs:18
↓ 12 callers
Method
with_local
(mut self, is_local: bool)
src/translate/fragments/var_stmt.rs:78
↓ 12 callers
Method
with_narrowed_scope
( &mut self, facts: HashMap<String, Type>, mut body: B, )
src/utils/metadata/parser.rs:290
↓ 11 callers
Method
gen_suppress
(&self)
src/utils/metadata/translate.rs:184
↓ 11 callers
Method
get_type
(&self)
src/modules/variable/get.rs:17
↓ 11 callers
Method
set_index
(&mut self, index: usize)
src/utils/metadata/parser.rs:336
↓ 11 callers
Method
to_string
(self, meta: &mut TranslateMetadata)
src/translate/fragments/var_expr.rs:388
↓ 10 callers
Method
gen_sudo_prefix
(&mut self)
src/utils/metadata/translate.rs:192
↓ 10 callers
Method
translate
(&self, meta: &mut TranslateMetadata)
src/modules/main.rs:91
↓ 10 callers
Method
with_needs_noop
(mut self)
src/modules/block.rs:29
↓ 9 callers
Method
gen_silent
(&self)
src/utils/metadata/translate.rs:176
↓ 9 callers
Method
mark_var_modified
Marks a variable as modified
src/utils/metadata/parser.rs:172
↓ 9 callers
Function
resolve_command_target
( command_target: Option<ShellType>, cli_target: Option<ShellType>, )
src/main.rs:268
↓ 9 callers
Method
with_condition
(mut self)
src/modules/block.rs:24
↓ 8 callers
Method
add_var
Persists a variable declaration in the scope
src/utils/context.rs:150
↓ 8 callers
Method
get_token_at
(&self, index: usize)
src/utils/metadata/parser.rs:328
↓ 8 callers
Function
handle_variable_reference
( meta: &mut ParserMetadata, tok: &Option<Token>, name: &str, )
src/modules/variable/mod.rs:110
↓ 8 callers
Method
is_global_scope
Determines if the parser is in the global scope
src/utils/metadata/parser.rs:70
↓ 8 callers
Function
optimize_fragments
(ast: &mut FragmentKind)
src/optimizer/mod.rs:8
↓ 8 callers
Method
with_declared
(mut self, is_declared: bool)
src/translate/fragments/var_expr.rs:105
↓ 7 callers
Method
add_import_entry
( &mut self, src_path: Option<String>, dst_path: String, )
src/utils/import_cache.rs:72
↓ 7 callers
Method
gen_quote
Returns the appropriate amount of quotes with escape symbols. This helps to avoid problems with `eval` expressions.
src/utils/metadata/translate.rs:204
↓ 7 callers
Function
get_ccflag_name
(flag: CCFlags)
src/utils/cc_flags.rs:23
↓ 7 callers
Function
get_tests_to_run
( command: &TestCommand, )
src/testing.rs:11
↓ 7 callers
Function
handle_test
(command: TestCommand)
src/testing.rs:81
↓ 7 callers
Function
prevent_constant_mutation
( meta: &mut ParserMetadata, tok: &Option<Token>, name: &str, is_const: bool, )
src/modules/variable/mod.rs:136
↓ 7 callers
Method
update_var_type
Updates the type of a variable
src/utils/metadata/parser.rs:182
↓ 7 callers
Method
with_spaces
(mut self)
src/translate/fragments/list.rs:25
↓ 7 callers
Method
with_warn
(mut self, warn: VariableDeclWarn)
src/utils/context.rs:124
↓ 6 callers
Function
find_amber_files
Adds all amber files (.ab extension) from the directory to the vector. The search is recursive. `dir` Directory to search `files` Vector to add resul
src/utils/io.rs:8
↓ 6 callers
Method
get_type
(&self)
src/modules/expression/binop/lt.rs:21
↓ 6 callers
Method
get_type
(&self)
src/modules/expression/ternop/ternary.rs:18
↓ 6 callers
Function
get_variable_name
Returns a variable name that should be rendered
src/translate/fragments/mod.rs:52
↓ 6 callers
Function
pluralize
(amount: usize, single: &'a str, multiple: &'a str)
src/utils/mod.rs:16
↓ 6 callers
Function
remove_ephemeral_variables
(ast: &mut FragmentKind)
src/optimizer/ephemeral_vars.rs:13
↓ 6 callers
Method
with_env_vars
(mut self)
src/compiler.rs:94
↓ 6 callers
Method
with_ephemeral
(mut self, is_ephemeral: bool)
src/translate/fragments/var_stmt.rs:73
↓ 6 callers
Method
with_index_by_value
(mut self, index: T)
src/translate/fragments/var_expr.rs:161
↓ 6 callers
Method
with_length_getter
(mut self, value: bool)
src/translate/fragments/var_expr.rs:171
↓ 6 callers
Method
with_push_scope
Pushes a new scope to the stack
src/utils/metadata/parser.rs:75
↓ 6 callers
Method
with_render_type
(mut self, render_type: VarRenderType)
src/translate/fragments/var_expr.rs:176
↓ 5 callers
Function
assert_target_snapshot
(input: &str, target: ShellType)
src/tests/compiling.rs:68
↓ 5 callers
Function
compile_input
(input: PathBuf, options: CompilerOptions)
src/main.rs:215
↓ 5 callers
Function
create_output
(command: &BuildCommand)
src/main.rs:194
↓ 5 callers
Method
extract_facts
(&self)
src/modules/expression/expr.rs:96
↓ 5 callers
Method
gen_dollar
(&self)
src/utils/metadata/translate.rs:212
↓ 5 callers
Method
get_integer_value
(&self)
src/modules/expression/unop/neg.rs:83
↓ 5 callers
Function
iter_keywords
Public function to iterate over registered keywords
src/modules/keywords.rs:60
↓ 5 callers
Function
shorthand_typecheck_allowed_types
( meta: &mut ParserMetadata, operator: &str, var_type: &Type, rhs: &Expr, allowed_types: &
src/modules/shorthand/mod.rs:14
↓ 5 callers
Method
to_string
(self, meta: &mut TranslateMetadata)
src/translate/fragments/var_stmt.rs:194
↓ 5 callers
Function
translate_compiler_output_with_target
( code: T, target: Option<ShellType>, )
src/tests/compiling.rs:30
↓ 5 callers
Function
translate_computation_eval
( meta: &mut TranslateMetadata, operator: ArithOp, left: Option<FragmentKind>, right: Option<F
src/translate/compute.rs:116
↓ 5 callers
Method
with_ref
(mut self, is_ref: bool)
src/translate/fragments/var_expr.rs:100
↓ 4 callers
Method
add_declaration
Adds a new function declaration to the cache
src/utils/function_cache.rs:40
↓ 4 callers
Method
analyze_control_flow
(&self)
src/modules/expression/expr.rs:84
↓ 4 callers
Method
append
(&mut self, statement: FragmentKind)
src/translate/fragments/block.rs:35
↓ 4 callers
Function
build_file
Compiles the input file and writes the result to the output path.
src/main.rs:417
↓ 4 callers
Function
execute_output
( code: String, args: Vec<String>, messages: bool, target: Option<ShellType>, )
src/main.rs:254
↓ 4 callers
Function
format_position
Format a `PositionInfo` into a `"file:line:col"` string for runtime error messages.
src/translate/fragments/var_expr.rs:13
↓ 4 callers
Method
gen_variable_prefix
Returns the variable prefix based on the name casing. Returns "__" for fully uppercase names, "" for others.
src/utils/metadata/translate.rs:222
↓ 4 callers
Method
get_bash_lexical_operators
(&self)
src/translate/compare.rs:18
↓ 4 callers
Method
get_error_message
(&self, meta: &mut ParserMetadata)
src/modules/expression/expr.rs:137
↓ 4 callers
Method
get_path_id
(&self, path: &str)
src/utils/import_cache.rs:30
↓ 4 callers
Method
get_type
(&self)
src/modules/expression/access.rs:19
↓ 4 callers
Method
get_type
(&self)
src/modules/expression/literal/array.rs:13
↓ 4 callers
Function
handle_identifier_name
( meta: &mut ParserMetadata, name: &str, tok: Option<Token>, )
src/modules/variable/mod.rs:160
↓ 4 callers
Method
into_fun_declaration
(self, id: usize)
src/utils/function_interface.rs:19
↓ 4 callers
Function
is_all_caps
Check if a name consists only of uppercase alphabetic characters (and optionally underscores/numbers)
src/utils/mod.rs:40
↓ 4 callers
Function
resolve
(path: T)
src/stdlib.rs:4
next →
1–100 of 1,109, ranked by callers