MCPcopy Create free account

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

Functions1,109 in github.com/amber-lang/amber

↓ 223 callersMethodto_frag
(&self)
src/translate/compare.rs:58
↓ 123 callersMethodto_string
(&self)
src/translate/compare.rs:48
↓ 49 callersMethodwith_global_id
(mut self, id: T)
src/translate/fragments/var_expr.rs:95
↓ 42 callersMethodis_empty
Get whether this block is empty
src/modules/block.rs:20
↓ 39 callersMethodget_position
(&self)
src/modules/expression/expr.rs:131
↓ 33 callersMethodpush_ephemeral_variable
Create an intermediate variable and return it's variable expression
src/utils/metadata/translate.rs:154
↓ 32 callersFunctionraw_frag
(s: &str)
src/tests/translating.rs:78
↓ 26 callersMethoduse_modifiers
(&mut self, meta: &mut ParserMetadata, context: F)
src/modules/command/modifier.rs:66
↓ 25 callersMethodget_type
(&self)
src/modules/builtin/ls.rs:24
↓ 24 callersMethodwith_ref
(mut self, is_ref: bool)
src/utils/context.rs:119
↓ 23 callersFunctionamber_bin
()
src/tests/cli.rs:274
↓ 23 callersMethodgen_value_id
(&mut self)
src/utils/metadata/translate.rs:170
↓ 22 callersFunctiongenerate_grammar_ebnf
()
src/utils/grammar_ebnf.rs:219
↓ 22 callersMethodto_string
(&self)
src/modules/condition/failure_handler.rs:37
↓ 22 callersMethodtokenize
(&self)
src/compiler.rs:148
↓ 21 callersMethodadd_message
(&mut self, message: Message)
src/utils/metadata/parser.rs:56
↓ 20 callersMethodis_allowed_in
(&self, other: &Type)
src/modules/types.rs:75
↓ 19 callersFunctioncreate_test_metadata
()
src/tests/translating.rs:65
↓ 19 callersFunctionvariable_name_extensions
()
src/modules/variable/mod.rs:16
↓ 19 callersMethodwith_quotes
(mut self, is_quoted: bool)
src/translate/fragments/var_expr.rs:181
↓ 18 callersFunctionscan_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 callersMethodcompile
(&self)
src/compiler.rs:454
↓ 17 callersMethodparse
(&mut self, meta: &mut ParserMetadata)
src/modules/main.rs:38
↓ 17 callersFunctiontranslate_awk_computation
( op: ArithOp, left: FragmentKind, right: FragmentKind, with_quotes: bool, )
src/translate/compute.rs:29
↓ 16 callersMethodget_index
(&self)
src/utils/metadata/parser.rs:332
↓ 16 callersFunctiontranslate_float_computation
( meta: &TranslateMetadata, operator: ArithOp, left: Option<FragmentKind>, right: Option<Fragm
src/translate/compute.rs:93
↓ 15 callersMethodis_array
(&self)
src/modules/types.rs:87
↓ 14 callersMethodget_name
(&self)
src/translate/fragments/var_expr.rs:186
↓ 14 callersMethodwith_optimization_when_unused
(mut self, optimize: bool)
src/translate/fragments/var_stmt.rs:98
↓ 14 callersMethodwith_target
(mut self, target: Option<ShellType>)
src/compiler.rs:115
↓ 13 callersMethodtranslate_eval
(&self, meta: &mut TranslateMetadata, is_eval: bool)
src/translate/module.rs:7
↓ 13 callersMethodtypecheck
(&mut self, meta: &mut ParserMetadata)
src/modules/expression/literal/text.rs:18
↓ 12 callersMethodwith_local
(mut self, is_local: bool)
src/translate/fragments/var_stmt.rs:78
↓ 12 callersMethodwith_narrowed_scope
( &mut self, facts: HashMap<String, Type>, mut body: B, )
src/utils/metadata/parser.rs:290
↓ 11 callersMethodgen_suppress
(&self)
src/utils/metadata/translate.rs:184
↓ 11 callersMethodget_type
(&self)
src/modules/variable/get.rs:17
↓ 11 callersMethodset_index
(&mut self, index: usize)
src/utils/metadata/parser.rs:336
↓ 11 callersMethodto_string
(self, meta: &mut TranslateMetadata)
src/translate/fragments/var_expr.rs:388
↓ 10 callersMethodgen_sudo_prefix
(&mut self)
src/utils/metadata/translate.rs:192
↓ 10 callersMethodtranslate
(&self, meta: &mut TranslateMetadata)
src/modules/main.rs:91
↓ 10 callersMethodwith_needs_noop
(mut self)
src/modules/block.rs:29
↓ 9 callersMethodgen_silent
(&self)
src/utils/metadata/translate.rs:176
↓ 9 callersMethodmark_var_modified
Marks a variable as modified
src/utils/metadata/parser.rs:172
↓ 9 callersFunctionresolve_command_target
( command_target: Option<ShellType>, cli_target: Option<ShellType>, )
src/main.rs:268
↓ 9 callersMethodwith_condition
(mut self)
src/modules/block.rs:24
↓ 8 callersMethodadd_var
Persists a variable declaration in the scope
src/utils/context.rs:150
↓ 8 callersMethodget_token_at
(&self, index: usize)
src/utils/metadata/parser.rs:328
↓ 8 callersFunctionhandle_variable_reference
( meta: &mut ParserMetadata, tok: &Option<Token>, name: &str, )
src/modules/variable/mod.rs:110
↓ 8 callersMethodis_global_scope
Determines if the parser is in the global scope
src/utils/metadata/parser.rs:70
↓ 8 callersFunctionoptimize_fragments
(ast: &mut FragmentKind)
src/optimizer/mod.rs:8
↓ 8 callersMethodwith_declared
(mut self, is_declared: bool)
src/translate/fragments/var_expr.rs:105
↓ 7 callersMethodadd_import_entry
( &mut self, src_path: Option<String>, dst_path: String, )
src/utils/import_cache.rs:72
↓ 7 callersMethodgen_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 callersFunctionget_ccflag_name
(flag: CCFlags)
src/utils/cc_flags.rs:23
↓ 7 callersFunctionget_tests_to_run
( command: &TestCommand, )
src/testing.rs:11
↓ 7 callersFunctionhandle_test
(command: TestCommand)
src/testing.rs:81
↓ 7 callersFunctionprevent_constant_mutation
( meta: &mut ParserMetadata, tok: &Option<Token>, name: &str, is_const: bool, )
src/modules/variable/mod.rs:136
↓ 7 callersMethodupdate_var_type
Updates the type of a variable
src/utils/metadata/parser.rs:182
↓ 7 callersMethodwith_spaces
(mut self)
src/translate/fragments/list.rs:25
↓ 7 callersMethodwith_warn
(mut self, warn: VariableDeclWarn)
src/utils/context.rs:124
↓ 6 callersFunctionfind_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 callersMethodget_type
(&self)
src/modules/expression/binop/lt.rs:21
↓ 6 callersMethodget_type
(&self)
src/modules/expression/ternop/ternary.rs:18
↓ 6 callersFunctionget_variable_name
Returns a variable name that should be rendered
src/translate/fragments/mod.rs:52
↓ 6 callersFunctionpluralize
(amount: usize, single: &'a str, multiple: &'a str)
src/utils/mod.rs:16
↓ 6 callersFunctionremove_ephemeral_variables
(ast: &mut FragmentKind)
src/optimizer/ephemeral_vars.rs:13
↓ 6 callersMethodwith_env_vars
(mut self)
src/compiler.rs:94
↓ 6 callersMethodwith_ephemeral
(mut self, is_ephemeral: bool)
src/translate/fragments/var_stmt.rs:73
↓ 6 callersMethodwith_index_by_value
(mut self, index: T)
src/translate/fragments/var_expr.rs:161
↓ 6 callersMethodwith_length_getter
(mut self, value: bool)
src/translate/fragments/var_expr.rs:171
↓ 6 callersMethodwith_push_scope
Pushes a new scope to the stack
src/utils/metadata/parser.rs:75
↓ 6 callersMethodwith_render_type
(mut self, render_type: VarRenderType)
src/translate/fragments/var_expr.rs:176
↓ 5 callersFunctionassert_target_snapshot
(input: &str, target: ShellType)
src/tests/compiling.rs:68
↓ 5 callersFunctioncompile_input
(input: PathBuf, options: CompilerOptions)
src/main.rs:215
↓ 5 callersFunctioncreate_output
(command: &BuildCommand)
src/main.rs:194
↓ 5 callersMethodextract_facts
(&self)
src/modules/expression/expr.rs:96
↓ 5 callersMethodgen_dollar
(&self)
src/utils/metadata/translate.rs:212
↓ 5 callersMethodget_integer_value
(&self)
src/modules/expression/unop/neg.rs:83
↓ 5 callersFunctioniter_keywords
Public function to iterate over registered keywords
src/modules/keywords.rs:60
↓ 5 callersFunctionshorthand_typecheck_allowed_types
( meta: &mut ParserMetadata, operator: &str, var_type: &Type, rhs: &Expr, allowed_types: &
src/modules/shorthand/mod.rs:14
↓ 5 callersMethodto_string
(self, meta: &mut TranslateMetadata)
src/translate/fragments/var_stmt.rs:194
↓ 5 callersFunctiontranslate_compiler_output_with_target
( code: T, target: Option<ShellType>, )
src/tests/compiling.rs:30
↓ 5 callersFunctiontranslate_computation_eval
( meta: &mut TranslateMetadata, operator: ArithOp, left: Option<FragmentKind>, right: Option<F
src/translate/compute.rs:116
↓ 5 callersMethodwith_ref
(mut self, is_ref: bool)
src/translate/fragments/var_expr.rs:100
↓ 4 callersMethodadd_declaration
Adds a new function declaration to the cache
src/utils/function_cache.rs:40
↓ 4 callersMethodanalyze_control_flow
(&self)
src/modules/expression/expr.rs:84
↓ 4 callersMethodappend
(&mut self, statement: FragmentKind)
src/translate/fragments/block.rs:35
↓ 4 callersFunctionbuild_file
Compiles the input file and writes the result to the output path.
src/main.rs:417
↓ 4 callersFunctionexecute_output
( code: String, args: Vec<String>, messages: bool, target: Option<ShellType>, )
src/main.rs:254
↓ 4 callersFunctionformat_position
Format a `PositionInfo` into a `"file:line:col"` string for runtime error messages.
src/translate/fragments/var_expr.rs:13
↓ 4 callersMethodgen_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 callersMethodget_bash_lexical_operators
(&self)
src/translate/compare.rs:18
↓ 4 callersMethodget_error_message
(&self, meta: &mut ParserMetadata)
src/modules/expression/expr.rs:137
↓ 4 callersMethodget_path_id
(&self, path: &str)
src/utils/import_cache.rs:30
↓ 4 callersMethodget_type
(&self)
src/modules/expression/access.rs:19
↓ 4 callersMethodget_type
(&self)
src/modules/expression/literal/array.rs:13
↓ 4 callersFunctionhandle_identifier_name
( meta: &mut ParserMetadata, name: &str, tok: Option<Token>, )
src/modules/variable/mod.rs:160
↓ 4 callersMethodinto_fun_declaration
(self, id: usize)
src/utils/function_interface.rs:19
↓ 4 callersFunctionis_all_caps
Check if a name consists only of uppercase alphabetic characters (and optionally underscores/numbers)
src/utils/mod.rs:40
↓ 4 callersFunctionresolve
(path: T)
src/stdlib.rs:4
next →1–100 of 1,109, ranked by callers