| v | 1381 | 934- pub fn (mut e Eval) open_scope() {
- pub fn (mut e Eval) close_scope() {
- pub fn (mut e Eval) set(expr ast.Expr, val Object, init bool, typ ast.Type) {
- pub fn (mut e Eval) expr(expr ast.Expr, expecting ast.Type) Object {
- pub fn (o Object) int_val() i64 {
- pub fn (o Object) float_val() f64 {
- pub fn new_eval(table &ast.Table, pref_ &pref.Preferences) Eval {
- pub fn create() Eval {
- pub fn (mut e Eval) push_val(val Object) {
- pub fn (mut e Eval) add_file(filepath string) {
- pub fn (mut e Eval) run(expression string, args ...Object) ![]Object {
- pub fn (mut e Eval) eval(mut files []&ast.File) {
- pub fn (mut e Eval) register_symbols(mut files []&ast.File) {
- pub fn (mut e Eval) register_symbol_stmts(stmts []ast.Stmt, mod string, file string) {
- pub fn (mut e Eval) comptime_cond(cond ast.Expr) bool {
- pub fn (mut e Eval) register_symbol(stmt ast.Stmt, mod string, file string) {
- pub fn (mut e Eval) stmts(stmts []ast.Stmt) {
- pub fn (mut e Eval) stmt(stmt ast.Stmt) {
- pub fn register_decoder(compression_type string, decoder Decoder) {
- pub fn (ed EmbedFileData) str() string {
- pub fn (original &EmbedFileData) to_string() string {
- pub fn (original &EmbedFileData) to_bytes() []u8 {
- pub fn (mut ed EmbedFileData) data() &u8 {
- pub fn (c &CFlag) str() string {
- pub fn (cflags []CFlag) c_options_after_target_msvc() []string {
- pub fn (cflags []CFlag) c_options_before_target() []string {
- pub fn (cflags []CFlag) c_options_after_target() []string {
- pub fn (cflags []CFlag) c_options_without_object_files() []string {
- pub fn (cflags []CFlag) c_options_only_object_files() []string {
- pub fn (cflags []CFlag) defines_others_libs() ([]string, []string, []string) {
- pub fn (t VType) str() string {
- pub fn get_string_by_idx(idx int) string {
- pub fn get_structs() []Type {
- pub fn get_type(idx int) ?Type {
- pub fn get_type_symbol(idx int) ?TypeSymbol {
- pub fn (cty ComptimeType) str() string {
- pub fn (f &StructField) equals(o &StructField) bool {
- pub fn (f &FnDecl) new_method_with_receiver_type(new_type_ Type) FnDecl {
- pub fn (p &Param) specifier() string {
- pub fn (f &Fn) new_method_with_receiver_type(new_type_ Type) Fn {
- pub fn (i &Ident) var_info() IdentVar {
- pub fn (expr Expr) pos() token.Pos {
- pub fn (expr Expr) is_constant() bool {
- pub fn (expr Expr) is_lvalue() bool {
- pub fn (expr Expr) is_expr() bool {
- pub fn (expr Expr) get_pure_type() Type {
- pub fn (expr Expr) is_pure_literal() bool {
- pub fn (expr Expr) is_auto_deref_var() bool {
- pub fn (node Node) pos() token.Pos {
- pub fn (node Node) children() []Node {
- pub fn (mut lx IndexExpr) recursive_arraymap_set_is_setter() {
- pub fn (expr Expr) is_reference() bool {
- pub fn (a &Attr) debug() string {
- pub fn (attrs []Attr) contains(str string) bool {
- pub fn (attrs []Attr) contains_arg(str string, arg string) bool {
- pub fn eval_comptime_not_user_defined_ident(ident string, the_pref &pref.Preferences) !bool {
- pub fn comptime_if_to_ifdef(name string, the_pref &pref.Preferences) !string {
- pub fn (t &Table) panic(message string) {
- pub fn new_table() &Table {
- pub fn (t &Table) is_same_method(f &Fn, func &Fn) string {
- pub fn (t &Table) find_fn(name string) ?Fn {
- pub fn (t &Table) known_fn(name string) bool {
- pub fn (mut t Table) register_fn(new_fn Fn) {
- pub fn (mut t Table) register_interface(idecl InterfaceDecl) {
- pub fn (mut t Table) register_sumtype(sumtyp SumTypeDecl) {
- pub fn (mut t TypeSymbol) register_method(new_fn Fn) int {
- pub fn (mut t TypeSymbol) update_method(f Fn) int {
- pub fn (t &Table) register_aggregate_method(mut sym TypeSymbol, name string) !Fn {
- pub fn (t &Table) has_method(s &TypeSymbol, name string) bool {
- pub fn (t &Table) find_method_from_embeds(sym &TypeSymbol, method_name string) !(Fn, []Type) {
- pub fn (t &Table) get_enum_field_names(name string) []string {
- pub fn (t &Table) get_enum_field_vals(name string) []i64 {
- pub fn (t &Table) get_embed_methods(sym &TypeSymbol) []Fn {
- pub fn (t &Table) struct_has_field(struct_ &TypeSymbol, name string) bool {
- pub fn (t &Table) resolve_common_sumtype_fields(mut sym TypeSymbol) {
- pub fn (t &Table) known_type(name string) bool {
- pub fn (mut t Table) reset_parsing_type() {
- pub fn (t &Table) known_type_idx(typ Type) bool {
- pub fn (mut t Table) find_or_register_chan(elem_type Type, is_mut bool) int {
- pub fn (mut t Table) find_or_register_map(key_type Type, value_type Type) int {
- pub fn (mut t Table) find_or_register_thread(return_type Type) int {
- pub fn (mut t Table) find_or_register_promise(return_type Type) int {
- pub fn (mut t Table) find_or_register_array(elem_type Type) int {
- pub fn (mut t Table) find_or_register_array_with_dims(elem_type Type, nr_dims int) int {
- pub fn (mut t Table) find_or_register_array_fixed(elem_type Type, size int, size_expr Expr, is_fn_ret bool) int {
- pub fn (mut t Table) find_or_register_multi_return(mr_typs []Type) int {
- pub fn (mut t Table) find_or_register_fn_type(f Fn, is_anon bool, has_decl bool) int {
- pub fn (mut t Table) add_placeholder_type(name string, cname string, language Language) int {
- pub fn (mut t Table) register_fn_generic_types(fn_name string) {
- pub fn (mut t Table) register_fn_concrete_types(fn_name string, types []Type) bool {
- pub fn (t &Table) is_sumtype_or_in_variant(parent Type, typ Type) bool {
- pub fn (t &Table) does_type_implement_interface(typ Type, inter_typ Type) bool {
- pub fn (mut t Table) convert_generic_static_type_name(fn_name string, generic_names []string, concrete_types []Type) (Type, string) {
- pub fn (mut t Table) generic_type_names(generic_type Type) []string {
- pub fn (mut t Table) unwrap_generic_type(typ Type, generic_names []string, concrete_types []Type) Type {
- pub fn (mut t Table) unwrap_generic_type_ex(typ Type, generic_names []string, concrete_types []Type, recheck_concrete_types bool) Type {
- pub fn (t &Table) dependent_names_in_expr(expr Expr) []string {
- pub fn (t &Table) dependent_names_in_stmt(stmt Stmt) []string {
- pub fn (t &Table) get_array_dims(arr Array) (int, Type) {
- pub fn (t &Table) get_trace_fn_name(cur_fn FnDecl, node CallExpr) (string, string) {
- pub fn (mut t Table) get_veb_result_type_idx() int {
- pub fn (node &FnDecl) modname() string {
- pub fn (node &Fn) fkey() string {
- pub fn (node &CallExpr) fkey() string {
- pub fn (t &Table) stringify_fn_decl(node &FnDecl, cur_mod string, m2a map[string]string, needs_wrap bool) string {
- pub fn (a CallArg) str() string {
- pub fn args2str(args []CallArg) string {
- pub fn (node &BranchStmt) str() string {
- pub fn (node Stmt) str() string {
- pub fn (e ComptimeForKind) str() string {
- pub fn sharetype_from_flags(is_shared bool, is_atomic bool) ShareType {
- pub fn (t Type) share() ShareType {
- pub fn (ts &TypeSymbol) nr_dims() int {
- pub fn (t &Table) type_str(typ Type) string {
- pub fn (typ Type) flip_signedness() Type {
- pub fn merge_types(params ...[]Type) []Type {
- pub fn mktyp(typ Type) Type {
- pub fn (t &Table) type_is_for_pointer_arithmetic(typ Type) bool {
- pub fn (t &TypeSymbol) is_heap() bool {
- pub fn (t &ArrayFixed) is_compatible(t2 ArrayFixed) bool {
- pub fn (t &TypeSymbol) is_empty_struct_array() bool {
- pub fn (t &TypeSymbol) is_primitive_fixed_array() bool {
- pub fn (t &TypeSymbol) is_array_fixed() bool {
- pub fn (t &TypeSymbol) is_c_struct() bool {
- pub fn (t &TypeSymbol) is_array_fixed_ret() bool {
- pub fn (mut t Table) register_builtin_type_symbols() {
- pub fn (kinds []Kind) str() string {
- pub fn (t &Table) fn_signature(func &Fn, opts FnSignatureOpts) string {
- pub fn (t &Table) fn_signature_using_aliases(func &Fn, import_aliases map[string]string, opts FnSignatureOpts) string {
- pub fn (t &TypeSymbol) has_method(name string) bool {
- pub fn (t &TypeSymbol) has_method_with_generic_parent(name string) bool {
- pub fn (t &TypeSymbol) find_method(name string) ?Fn {
- pub fn (t &TypeSymbol) find_method_with_generic_parent(name string) ?Fn {
- pub fn (t &TypeSymbol) str_method_info() (bool, bool, int) {
- pub fn (t &TypeSymbol) find_field(name string) ?StructField {
- pub fn (t &TypeSymbol) has_field(name string) bool {
- pub fn (i &Interface) find_field(name string) ?StructField {
- pub fn (i &Interface) find_method(name string) ?Fn {
- pub fn (i &Interface) has_method(name string) bool {
- pub fn (s Struct) find_field(name string) ?StructField {
- pub fn (s Struct) get_field(name string) StructField {
- pub fn (s &SumType) find_sum_type_field(name string) ?StructField {
- pub fn (i Interface) defines_method(name string) bool {
- pub fn (i Interface) get_methods() []string {
- pub fn (t &TypeSymbol) get_methods() []Fn {
- pub fn new_scope(parent &Scope, start_pos int) &Scope {
- pub fn (s &Scope) find(name string) ?ScopeObject {
- pub fn (s &Scope) find_ptr(name string) &ScopeObject {
- pub fn (s &Scope) find_var(name string) ?&Var {
- pub fn (s &Scope) find_global(name string) ?&GlobalField {
- pub fn (s &Scope) find_const(name string) ?&ConstField {
- pub fn (s &Scope) known_var(name string) bool {
- pub fn (s &Scope) known_global(name string) bool {
- pub fn (s &Scope) known_const(name string) bool {
- pub fn (mut s Scope) update_var_type(name string, typ Type) {
- pub fn (mut s Scope) update_ct_var_kind(name string, kind ComptimeVarKind) {
- pub fn (mut s Scope) update_smartcasts(name string, typ Type, is_unwrapped bool) {
- pub fn (mut s Scope) register(obj ScopeObject) {
- pub fn (s &Scope) has_inherited_vars() bool {
- pub fn (s &Scope) is_inherited_var(var_name string) bool {
- pub fn (sc &Scope) show(depth int, max_depth int) string {
- pub fn (mut sc Scope) mark_var_as_used(varname string) bool {
- pub fn (sc &Scope) str() string {
- pub fn (t &Table) resolve_init(node StructInit, typ Type) Expr {
- pub fn (i &Inspector) visit(node &ast.Node) ! {
- pub fn (obj ConstField) comptime_expr_value() ?ComptTimeConstValue {
- pub fn (obj ConstField) is_simple_define_const() bool {
- pub fn (obj ScopeObject) is_simple_define_const() bool {
- pub fn (e EmbeddedFile) hash() u64 {
- pub fn add(a ...int) int {
- pub fn full_path_to_v(dirs_in int) string {
- pub fn run_repl_file(wd string, vexec string, file string) !string {
- pub fn run_prod_file(wd string, vexec string, file string) !string {
- pub fn new_options() RunnerOptions {
- pub fn new_prod_options() RunnerOptions {
- pub fn new_ordered_dependency_map() OrderedDepMap {
- pub fn (mut o OrderedDepMap) set(name string, deps []string) {
- pub fn (mut o OrderedDepMap) add(name string, deps []string) {
- pub fn (o &OrderedDepMap) get(name string) []string {
- pub fn (mut o OrderedDepMap) apply_diff(name string, deps []string) {
- pub fn (o &OrderedDepMap) size() int {
- pub fn new_dep_graph() &DepGraph {
- pub fn (mut graph DepGraph) add(mod string, deps []string) {
- pub fn (mut graph DepGraph) add_with_value(mod string, deps []string, value i64) {
- pub fn (graph &DepGraph) resolve() &DepGraph {
- pub fn (graph &DepGraph) last_node() DepGraphNode {
- pub fn (graph &DepGraph) display() string {
- pub fn (graph &DepGraph) display_cycles() string {
- pub fn show(graph &DepGraph, path string) {
- pub fn gen(files []&ast.File, mut table ast.Table, pref_ &pref.Preferences) GenOutput {
- pub fn (mut g Gen) gen_file() {
- pub fn (g &Gen) hashes() string {
- pub fn (mut g Gen) init() {
- pub fn (mut g Gen) finish() {
- pub fn (mut g Gen) write_typeof_functions() {
- pub fn (mut g Gen) write_typedef_types() {
- pub fn (mut g Gen) write_alias_typesymbol_declaration(sym ast.TypeSymbol) {
- pub fn (mut g Gen) write_interface_typedef(sym ast.TypeSymbol) {
- pub fn (mut g Gen) write_interface_typesymbol_declaration(sym ast.TypeSymbol) {
- pub fn (mut g Gen) write_fn_typesymbol_declaration(sym ast.TypeSymbol) {
- pub fn (mut g Gen) write_array_fixed_return_types() {
- pub fn (mut g Gen) write_multi_return_types() {
- pub fn (mut g Gen) new_tmp_var() string {
- pub fn (mut g Gen) new_global_tmp_var() string {
- pub fn (mut g Gen) current_tmp_var() string {
- pub fn (mut g Gen) reset_tmp_count() int {
- pub fn get_guarded_include_text(iname string, imessage string) string {
- pub fn (mut g Gen) get_array_depth(el_typ ast.Type) int {
- pub fn (mut g Gen) gen_vprint_profile_stats() {
- pub fn call_c_functions() {
- pub fn abc() int {
- pub fn fn_defined_in_wasm32_emscripten() int {
- pub fn abc() int {
- pub fn fn_defined_on_windows() int {
- pub fn abc() int {
- pub fn fn_defined_on_macos() int {
- pub fn abc() int {
- pub fn abc() int {
- pub fn fn_defined_on_linux() int {
- pub fn is_my_instance_active() bool {
- pub fn hi() {
- pub fn hi() {
- pub fn (mut g Gen) gen_c_main() {
- pub fn fix_reset_dbg_line(src strings.Builder, out_file string) strings.Builder {
- pub fn (mut g Gen) gen_c_main_footer() {
- pub fn (mut g Gen) gen_c_android_sokol_main() {
- pub fn (mut g Gen) write_tests_definitions() {
- pub fn (mut g Gen) gen_failing_error_propagation_for_test_fn(or_block ast.OrExpr, cvar_name string) {
- pub fn (mut g Gen) gen_failing_return_error_for_test_fn(return_stmt ast.Return, cvar_name string) {
- pub fn (mut g Gen) gen_c_main_profile_hook() {
- pub fn (mut g Gen) gen_c_main_for_tests() {
- pub fn (mut g Gen) filter_only_matching_fn_names(fnames []string) []string {
- pub fn (mut g Gen) gen_c_main_trace_calls_hook() {
- pub fn (mut g Gen) warning(s string, pos token.Pos) {
- pub fn (g &Gen) unpack_type(typ ast.Type) []ast.Type {
- pub fn (g &Gen) is_param_type(typ ast.Type) bool {
- pub fn (mut g Gen) dbg_type_name(name string, typ ast.Type) string {
- pub fn unpack_literal_int(typ ast.Type) ast.Type {
- pub fn (g &Gen) get_ns_plus_name(default_name string, attrs []ast.Attr) (string, string) {
- pub fn (mut g Gen) fn_external_import(node ast.FnDecl) {
- pub fn (mut g Gen) fn_decl(node ast.FnDecl) {
- pub fn (mut g Gen) bare_function_frame(func_start wasm.PatchPos) {
- pub fn (mut g Gen) bare_function_end() {
- pub fn (mut g Gen) literalint(val i64, expected ast.Type) {
- pub fn (mut g Gen) literal(val string, expected ast.Type) {
- pub fn (mut g Gen) cast(typ ast.Type, expected_type ast.Type) {
- pub fn (mut g Gen) expr_with_cast(expr ast.Expr, got_type_raw ast.Type, expected_type ast.Type) {
- pub fn (mut g Gen) handle_ptr_arithmetic(typ ast.Type) {
- pub fn (mut g Gen) infix_expr(node ast.InfixExpr, expected ast.Type) {
- pub fn (mut g Gen) prefix_expr(node ast.PrefixExpr, expected ast.Type) {
- pub fn (mut g Gen) if_branch(ifexpr ast.IfExpr, expected ast.Type, unpacked_params []wasm.ValType, idx int,
- pub fn (mut g Gen) if_expr(ifexpr ast.IfExpr, expected ast.Type, existing_rvars []Var) {
- pub fn (mut g Gen) call_expr(node ast.CallExpr, expected ast.Type, existing_rvars []Var) {
- pub fn (mut g Gen) get_field_offset(typ ast.Type, name string) int {
- pub fn (mut g Gen) field_offset(typ ast.Type, name string) {
- pub fn (mut g Gen) load_field(typ ast.Type, ftyp ast.Type, name string) {
- pub fn (mut g Gen) store_field(typ ast.Type, ftyp ast.Type, name string) {
- pub fn (mut g Gen) expr(node ast.Expr, expected ast.Type) {
- pub fn (g &Gen) file_pos(pos token.Pos) string {
- pub fn (mut g Gen) expr_stmt(node ast.Stmt, expected ast.Type) {
- pub fn (mut g Gen) expr_stmts(stmts []ast.Stmt, expected ast.Type) {
- pub fn (mut g Gen) rvar_expr_stmts(stmts []ast.Stmt, expected ast.Type, existing_rvars []Var) {
- pub fn (mut g Gen) toplevel_stmt(node ast.Stmt) {
- pub fn (mut g Gen) toplevel_stmts(stmts []ast.Stmt) {
- pub fn (mut g Gen) calculate_enum_fields() {
- pub fn gen(files []&ast.File, mut table ast.Table, out_name string, w_pref &pref.Preferences) {
- pub fn (mut p Pool) type_struct_info(typ ast.Type) ?StructInfo {
- pub fn (mut p Pool) type_size(typ ast.Type) (int, int) {
- pub fn new_pool(table &ast.Table, opts PoolOpts) Pool {
- pub fn eval_escape_codes_raw(str string) !string {
- pub fn eval_escape_codes(str_lit ast.StringLiteral) !string {
- pub fn (mut p Pool) append_string(val string) int {
- pub fn (mut p Pool) append(init ast.Expr, typ ast.Type) (int, bool) {
- pub fn (mut g Gen) as_numtype(a wasm.ValType) wasm.NumType {
- pub fn (mut g Gen) infix_from_typ(typ ast.Type, op token.Kind) {
- pub fn (mut g Gen) asm_call(node ast.AsmTemplate) {
- pub fn (mut g Gen) asm_local_get_set_or_tee(node ast.AsmTemplate, vars AsmVars) {
- pub fn (mut g Gen) asm_global_get_or_set(node ast.AsmTemplate, vars AsmVars) {
- pub fn (mut g Gen) asm_literal_arg(node ast.AsmTemplate) {
- pub fn (mut g Gen) asm_parse_align_offset(node ast.AsmTemplate) (int, int) {
- pub fn (mut g Gen) asm_load_or_store(node ast.AsmTemplate) {
- pub fn (mut g Gen) asm_template(parent ast.AsmStmt, node ast.AsmTemplate, vars AsmVars) {
- pub fn (mut g Gen) asm_stmt(node ast.AsmStmt) {
- pub fn (mut g Gen) comptime_cond(cond ast.Expr) bool {
- pub fn (mut g Gen) comptime_if_expr(node ast.IfExpr, expected ast.Type, existing_rvars []Var) {
- pub fn (mut g Gen) comptime_if_to_ifdef(name string, is_comptime_option bool) bool {
- pub fn (mut g Gen) get_var_from_ident(ident ast.Ident) Var {
- pub fn (mut g Gen) get_var_from_expr(node ast.Expr) ?Var {
- pub fn (mut g Gen) bp() wasm.LocalIndex {
- pub fn (mut g Gen) sp() wasm.GlobalIndex {
- pub fn (mut g Gen) hp() wasm.GlobalIndex {
- pub fn (mut g Gen) new_local(name string, typ_ ast.Type) Var {
- pub fn (mut g Gen) literal_to_constant_expression(typ_ ast.Type, init ast.Expr) ?wasm.ConstExpression {
- pub fn (mut g Gen) new_global(name string, typ_ ast.Type, init ast.Expr, is_global_mut bool) Global {
- pub fn log2(size int) int {
- pub fn (mut g Gen) load(typ ast.Type, offset int) {
- pub fn (mut g Gen) store(typ ast.Type, offset int) {
- pub fn (mut g Gen) get(v Var) {
- pub fn (mut g Gen) mov(to Var, v Var) {
- pub fn (mut g Gen) set_prepare(v Var) {
- pub fn (mut g Gen) set_set(v Var) {
- pub fn (mut g Gen) ref(v Var) {
- pub fn (mut g Gen) ref_ignore_offset(v Var) {
- pub fn (mut g Gen) zero_fill(v Var, size int) {
- pub fn (g &Gen) is_param(v Var) bool {
- pub fn (mut g Gen) set_with_multi_expr(init ast.Expr, expected ast.Type, existing_rvars []Var) {
- pub fn (mut g Gen) set_with_expr(init ast.Expr, v Var) {
- pub fn calc_padding(value int, alignment int) int {
- pub fn calc_align(value int, alignment int) int {
- pub fn (mut g Gen) make_vinit() {
- pub fn (mut g Gen) housekeeping() {
- pub fn gen(files []&ast.File, mut table ast.Table, out_file string, pref_ &pref.Preferences) (int, int) {
- pub fn (mut f Gen) process_file_imports(file &ast.File) {
- pub fn (mut f Gen) write(s string) {
- pub fn (mut f Gen) writeln(s string) {
- pub fn (mut f Gen) wrap_long_line(penalty_idx int, add_indent bool) bool {
- pub fn (mut f Gen) remove_new_line(cfg RemoveNewLineConfig) {
- pub fn (mut f Gen) set_current_module_name(cmodname string) {
- pub fn (mut f Gen) no_cur_mod(typename string) string {
- pub fn (mut f Gen) mark_types_import_as_used(typ ast.Type) {
- pub fn (mut f Gen) imports(imports []ast.Import) {
- pub fn (f Gen) imp_stmt_str(imp ast.Import) string {
- pub fn (mut f Gen) node_str(node ast.Node) string {
- pub fn (mut f Gen) stmts(stmts []ast.Stmt) {
- pub fn (mut f Gen) stmt(node ast.Stmt) {
- pub fn (mut f Gen) expr(node_ ast.Expr) {
- pub fn (mut f Gen) assert_stmt(node ast.AssertStmt) {
- pub fn (mut f Gen) assign_stmt(node ast.AssignStmt) {
- pub fn (mut f Gen) block(node ast.Block) {
- pub fn (mut f Gen) branch_stmt(node ast.BranchStmt) {
- pub fn (mut f Gen) comptime_for(node ast.ComptimeFor) {
- pub fn (mut f Gen) const_decl(node ast.ConstDecl) {
- pub fn (mut f Gen) defer_stmt(node ast.DeferStmt) {
- pub fn (mut f Gen) expr_stmt(node ast.ExprStmt) {
- pub fn (mut f Gen) enum_decl(node ast.EnumDecl) {
- pub fn (mut f Gen) fn_decl(node ast.FnDecl) {
- pub fn (mut f Gen) anon_fn(node ast.AnonFn) {
- pub fn (mut f Gen) for_c_stmt(node ast.ForCStmt) {
- pub fn (mut f Gen) for_in_stmt(node ast.ForInStmt) {
- pub fn (mut f Gen) for_stmt(node ast.ForStmt) {
- pub fn (mut f Gen) global_decl(node ast.GlobalDecl) {
- pub fn (mut f Gen) go_expr(node ast.GoExpr) {
- pub fn (mut f Gen) spawn_expr(node ast.SpawnExpr) {
- pub fn (mut f Gen) goto_label(node ast.GotoLabel) {
- pub fn (mut f Gen) goto_stmt(node ast.GotoStmt) {
- pub fn (mut f Gen) hash_stmt(node ast.HashStmt) {
- pub fn (mut f Gen) interface_decl(node ast.InterfaceDecl) {
- pub fn (mut f Gen) interface_field(field ast.StructField) {
- pub fn (mut f Gen) interface_method(method ast.FnDecl) {
- pub fn (mut f Gen) module_stmt(mod ast.Module) {
- pub fn (mut f Gen) return_stmt(node ast.Return) {
- pub fn (mut f Gen) sql_stmt(node ast.SqlStmt) {
- pub fn (mut f Gen) sql_stmt_line(node ast.SqlStmtLine) {
- pub fn (mut f Gen) type_decl(node ast.TypeDecl) {
- pub fn (mut f Gen) alias_type_decl(node ast.AliasTypeDecl) {
- pub fn (mut f Gen) fn_type_decl(node ast.FnTypeDecl) {
- pub fn (mut f Gen) sum_type_decl(node ast.SumTypeDecl) {
- pub fn (mut f Gen) array_decompose(node ast.ArrayDecompose) {
- pub fn (mut f Gen) array_init(node ast.ArrayInit) {
- pub fn (mut f Gen) as_cast(node ast.AsCast) {
- pub fn (mut f Gen) assoc(node ast.Assoc) {
- pub fn (mut f Gen) at_expr(node ast.AtExpr) {
- pub fn (mut f Gen) call_expr(node ast.CallExpr) {
- pub fn (mut f Gen) call_args(args []ast.CallArg) {
- pub fn (mut f Gen) cast_expr(node ast.CastExpr) {
- pub fn (mut f Gen) chan_init(mut node ast.ChanInit) {
- pub fn (mut f Gen) comptime_call(node ast.ComptimeCall) {
- pub fn (mut f Gen) comptime_selector(node ast.ComptimeSelector) {
- pub fn (mut f Gen) concat_expr(node ast.ConcatExpr) {
- pub fn (mut f Gen) dump_expr(node ast.DumpExpr) {
- pub fn (mut f Gen) enum_val(node ast.EnumVal) {
- pub fn (mut f Gen) ident(node ast.Ident) {
- pub fn (mut f Gen) if_expr(node ast.IfExpr) {
- pub fn (mut f Gen) if_guard_expr(node ast.IfGuardExpr) {
- pub fn (mut f Gen) index_expr(node ast.IndexExpr) {
- pub fn (mut f Gen) infix_expr(node ast.InfixExpr) {
- pub fn (mut f Gen) wrap_infix(start_pos int, start_len int, is_cond bool) {
- pub fn (mut f Gen) likely(node ast.Likely) {
- pub fn (mut f Gen) lock_expr(node ast.LockExpr) {
- pub fn (mut f Gen) map_init(node ast.MapInit) {
- pub fn (mut f Gen) match_expr(node ast.MatchExpr) {
- pub fn (mut f Gen) offset_of(node ast.OffsetOf) {
- pub fn (mut f Gen) or_expr(node ast.OrExpr) {
- pub fn (mut f Gen) par_expr(node ast.ParExpr) {
- pub fn (mut f Gen) postfix_expr(node ast.PostfixExpr) {
- pub fn (mut f Gen) prefix_expr(node ast.PrefixExpr) {
- pub fn (mut f Gen) range_expr(node ast.RangeExpr) {
- pub fn (mut f Gen) select_expr(node ast.SelectExpr) {
- pub fn (mut f Gen) selector_expr(node ast.SelectorExpr) {
- pub fn (mut f Gen) size_of(node ast.SizeOf) {
- pub fn (mut f Gen) is_ref_type(node ast.IsRefType) {
- pub fn (mut f Gen) sql_expr(node ast.SqlExpr) {
- pub fn (mut f Gen) char_literal(node ast.CharLiteral) {
- pub fn (mut f Gen) string_literal(node ast.StringLiteral) {
- pub fn (mut f Gen) string_inter_literal(node ast.StringInterLiteral) {
- pub fn (mut f Gen) type_expr(node ast.TypeNode) {
- pub fn (mut f Gen) type_of(node ast.TypeOf) {
- pub fn (mut f Gen) unsafe_expr(node ast.UnsafeExpr) {
- pub fn (mut g Gen) error(s string) {
- pub fn (mut f Gen) attrs(attrs []ast.Attr) {
- pub fn (mut f Gen) single_line_attrs(attrs []ast.Attr, options AttrsOptions) {
- pub fn (mut f Gen) struct_decl(node ast.StructDecl) {
- pub fn (mut f Gen) struct_init(node ast.StructInit) {
- pub fn gen(files []&ast.File, mut table ast.Table, out_name string, pref_ &pref.Preferences) (int, int) {
- pub fn (mut g Gen) styp(a ast.Type) &ast.TypeSymbol {
- pub fn (mut g Gen) has_external_deps() bool {
- pub fn (mut g Gen) ast_fetch_external_deps() {
- pub fn (mut g Gen) generate_header() {
- pub fn (mut g Gen) create_executable() {
- pub fn (mut g Gen) generate_footer() {
- pub fn (mut g Gen) link(obj_name string) {
- pub fn (mut g Gen) calculate_all_size_align() {
- pub fn (mut g Gen) calculate_enum_fields() {
- pub fn (g &Gen) pos() i64 {
- pub fn (mut g Gen) zeroes(n i32) {
- pub fn (mut g Gen) register_function_address(name string) {
- pub fn (mut g Gen) warning(s string, pos token.Pos) {
- pub fn (mut g Gen) v_error(s string, pos token.Pos) {
- pub fn escape_string(s string) string {
- pub fn (mut g Gen) stmts(stmts []ast.Stmt) {
- pub fn (mut g Gen) symtab_get_index(symbols []SymbolTableSection, name string) i32 {
- pub fn (mut g Gen) generate_linkable_elf_header() {
- pub fn (mut g Gen) generate_simple_elf_header() {
- pub fn (mut g Gen) elf_string_table() {
- pub fn (mut g Gen) gen_rela_section() {
- pub fn (mut g Gen) generate_elf_footer() {
- pub fn (mut g Gen) prepend_vobjpath(paths []string) []string {
- pub fn (mut g Gen) find_o_path(fname string) string {
- pub fn (mut g Gen) get_lpaths() string {
- pub fn (mut g Gen) link_elf_file(obj_file string) {
- pub fn (mut g Gen) gen_dos_header() {
- pub fn (mut c Amd64) pop(reg Amd64Register) {
- pub fn (mut c Amd64) sub8(reg Amd64Register, val i32) {
- pub fn (mut c Amd64) sub(reg Amd64Register, val i32) {
- pub fn (mut c Amd64) cg_add(r Register, val i32) {
- pub fn (mut c Amd64) add8(reg Amd64Register, val i32) {
- pub fn (mut c Amd64) rep_stosb() {
- pub fn (mut c Amd64) std() {
- pub fn (mut c Amd64) cld() {
- pub fn (mut c Amd64) cld_repne_scasb() {
- pub fn (mut c Amd64) xor(r Amd64Register, v i32) {
- pub fn (mut c Amd64) test_reg(r Amd64Register) {
- pub fn (mut c Amd64) get_dllcall_addr(import_addr i64) i64 {
- pub fn (mut c Amd64) dllcall(symbol string) {
- pub fn (mut c Amd64) cg_gen_exit(expr ast.Expr) {
- pub fn (mut c Amd64) cg_call_fn(node ast.CallExpr) {
- pub fn (mut c Amd64) cg_builtin_decl(builtin BuiltinFn) {
- pub fn (mut c Amd64) allocate_stack_var_two_step(name string, size i32, initial_val Number) i32 {
- pub fn (mut c Amd64) cg_allocate_stack_var(name string, size i32, initial_val Number) i32 {
- pub fn (mut g Gen) generate_macho_header() {
- pub fn (mut g Gen) generate_macho_object_header() {
- pub fn (mut g Gen) generate_macho_footer() {
- pub fn (mut c Arm64) cg_fn_decl(node ast.FnDecl) {
- pub fn (mut c Arm64) cg_call_fn(node ast.CallExpr) {
- pub fn (mut c Arm64) cg_gen_exit(expr ast.Expr) {
- pub fn (mut c Arm64) gen_arm64_exit(expr ast.Expr) {
- pub fn (mut c Arm64) cg_add(r Register, val i32) {
- pub fn (mut c Arm64) cg_add_reg(r Register, r2 Register) {
- pub fn (mut g Gen) init_builtins() {
- pub fn (mut g Gen) generate_builtins() {
- pub fn (mut g Gen) get_builtin_arg_reg(name Builtin, index i32) Register {
- pub fn (mut g Gen) call_builtin(name Builtin) {
- pub fn (mut g Gen) gen_pe_header() {
- pub fn (mut g Gen) generate_pe_header() {
- pub fn (mut g Gen) generate_pe_footer() {
- pub fn type_to_str(x StrIntpType) string {
- pub fn data_str(x StrIntpType) string {
- pub fn gen(files []&ast.File, mut table ast.Table, pref_ &pref.Preferences) string {
- pub fn (mut g JsGen) gen_js_main_for_tests() {
- pub fn (mut g JsGen) enter_namespace(name string) {
- pub fn (mut g JsGen) escape_namespace() {
- pub fn (mut g JsGen) push_pub_var(s string) {
- pub fn (mut g JsGen) find_class_methods(stmts []ast.Stmt) {
- pub fn (mut g JsGen) init() {
- pub fn (mut g JsGen) base_type(t ast.Type) string {
- pub fn (mut g JsGen) styp(t ast.Type) string {
- pub fn new_sourcemap(file string, source_root string, sources_content_inline bool) SourceMap {
- pub fn generate_empty_map() &Generator {
- pub fn (mut g Generator) add_map(file string, source_root string, sources_content_inline bool, line_offset int,
- pub fn (mut a Aaa) update(s string) {
- pub fn debugger() string {
- pub fn excited() string {
- pub fn raw_js_log() {
- pub fn nested() string {
- pub fn (x Foo) == (y Foo) bool {
- pub fn (x Foo) < (y Foo) bool {
- pub fn (a Foo) + (b Foo) Foo {
- pub fn get_cache() &ModFileCacher {
- pub fn new_mod_file_cacher() &ModFileCacher {
- pub fn (mut mcache ModFileCacher) get_by_file(vfile string) ModFileAndFolder {
- pub fn (mut mcache ModFileCacher) get_by_folder(vfolder string) ModFileAndFolder {
- pub fn from_file(vmod_path string) !Manifest {
- pub fn decode(contents string) !Manifest {
- pub fn encode(manifest Manifest) string {
- pub fn (mut f Fmt) vfmt_off(off_line int) {
- pub fn (mut f Fmt) vfmt_on(on_line int) {
- pub fn (mut f Fmt) get_source_lines() []string {
- pub fn fmt(file ast.File, mut table ast.Table, pref_ &pref.Preferences, is_debug bool, options FmtOptions) string {
- pub fn (f &Fmt) type_to_str(typ ast.Type) string {
- pub fn (mut f Fmt) process_file_imports(file &ast.File) {
- pub fn (mut f Fmt) write(s string) {
- pub fn (mut f Fmt) writeln(s string) {
- pub fn (mut f Fmt) wrap_long_line(penalty_idx int, add_indent bool) bool {
- pub fn (mut f Fmt) set_current_module_name(cmodname string) {
- pub fn (mut f Fmt) no_cur_mod(typename string) string {
- pub fn (mut f Fmt) import_stmt(imp ast.Import) {
- pub fn (f &Fmt) imp_stmt_str(imp ast.Import) string {
- pub fn (mut f Fmt) node_str(node ast.Node) string {
- pub fn (mut f Fmt) stmts(stmts []ast.Stmt) {
- pub fn (mut f Fmt) stmt(node ast.Stmt) {
- pub fn (mut f Fmt) expr(node_ ast.Expr) {
- pub fn (mut f Fmt) assert_stmt(node ast.AssertStmt) {
- pub fn (mut f Fmt) assign_stmt(node ast.AssignStmt) {
- pub fn (mut f Fmt) block(node ast.Block) {
- pub fn (mut f Fmt) debugger_stmt(node ast.DebuggerStmt) {
- pub fn (mut f Fmt) branch_stmt(node ast.BranchStmt) {
- pub fn (mut f Fmt) comptime_for(node ast.ComptimeFor) {
- pub fn (mut f Fmt) const_decl(node ast.ConstDecl) {
- pub fn (mut f Fmt) expr_stmt(node ast.ExprStmt) {
- pub fn (mut f Fmt) enum_decl(node ast.EnumDecl) {
- pub fn (mut f Fmt) fn_decl(node ast.FnDecl) {
- pub fn (mut f Fmt) anon_fn(node ast.AnonFn) {
- pub fn (mut f Fmt) for_c_stmt(node ast.ForCStmt) {
- pub fn (mut f Fmt) for_in_stmt(node ast.ForInStmt) {
- pub fn (mut f Fmt) for_stmt(node ast.ForStmt) {
- pub fn (mut f Fmt) global_decl(node ast.GlobalDecl) {
- pub fn (mut f Fmt) spawn_expr(node ast.SpawnExpr) {
- pub fn (mut f Fmt) go_expr(node ast.GoExpr) {
- pub fn (mut f Fmt) goto_label(node ast.GotoLabel) {
- pub fn (mut f Fmt) goto_stmt(node ast.GotoStmt) {
- pub fn (mut f Fmt) hash_stmt(node ast.HashStmt) {
- pub fn (mut f Fmt) interface_decl(node ast.InterfaceDecl) {
- pub fn (mut f Fmt) calculate_alignment(fields []ast.StructField, mut type_align FieldAlign, mut comment_align FieldAlign,
- pub fn (mut f Fmt) interface_field(field ast.StructField, mut type_align FieldAlign, mut comment_align FieldAlign) {
- pub fn (mut f Fmt) interface_method(method ast.FnDecl, mut comment_align FieldAlign) {
- pub fn (mut f Fmt) module_stmt(mod ast.Module) {
- pub fn (mut f Fmt) return_stmt(node ast.Return) {
- pub fn (mut f Fmt) sql_stmt(node ast.SqlStmt) {
- pub fn (mut f Fmt) sql_stmt_line(node ast.SqlStmtLine) {
- pub fn (mut f Fmt) type_decl(node ast.TypeDecl) {
- pub fn (mut f Fmt) alias_type_decl(node ast.AliasTypeDecl) {
- pub fn (mut f Fmt) fn_type_decl(node ast.FnTypeDecl) {
- pub fn (mut f Fmt) sum_type_decl(node ast.SumTypeDecl) {
- pub fn (mut f Fmt) array_decompose(node ast.ArrayDecompose) {
- pub fn (mut f Fmt) array_init(node ast.ArrayInit) {
- pub fn (mut f Fmt) as_cast(node ast.AsCast) {
- pub fn (mut f Fmt) assoc(node ast.Assoc) {
- pub fn (mut f Fmt) at_expr(node ast.AtExpr) {
- pub fn (mut f Fmt) call_expr(node ast.CallExpr) {
- pub fn (mut f Fmt) call_args(args []ast.CallArg) {
- pub fn (mut f Fmt) cast_expr(node ast.CastExpr) {
- pub fn (mut f Fmt) chan_init(mut node ast.ChanInit) {
- pub fn (mut f Fmt) comptime_call(node ast.ComptimeCall) {
- pub fn (mut f Fmt) comptime_selector(node ast.ComptimeSelector) {
- pub fn (mut f Fmt) concat_expr(node ast.ConcatExpr) {
- pub fn (mut f Fmt) dump_expr(node ast.DumpExpr) {
- pub fn (mut f Fmt) enum_val(node ast.EnumVal) {
- pub fn (mut f Fmt) ident(node ast.Ident) {
- pub fn (mut f Fmt) if_expr(node ast.IfExpr) {
- pub fn (mut f Fmt) if_guard_expr(node ast.IfGuardExpr) {
- pub fn (mut f Fmt) index_expr(node ast.IndexExpr) {
- pub fn (mut f Fmt) infix_expr(node ast.InfixExpr) {
- pub fn (mut f Fmt) wrap_infix(start_pos int, start_len int, is_cond bool) {
- pub fn (mut f Fmt) likely(node ast.Likely) {
- pub fn (mut f Fmt) lock_expr(node ast.LockExpr) {
- pub fn (mut f Fmt) map_init(node ast.MapInit) {
- pub fn (mut f Fmt) match_expr(node ast.MatchExpr) {
- pub fn (mut f Fmt) offset_of(node ast.OffsetOf) {
- pub fn (mut f Fmt) or_expr(node ast.OrExpr) {
- pub fn (mut f Fmt) par_expr(node ast.ParExpr) {
- pub fn (mut f Fmt) postfix_expr(node ast.PostfixExpr) {
- pub fn (mut f Fmt) prefix_expr(node ast.PrefixExpr) {
- pub fn (mut f Fmt) range_expr(node ast.RangeExpr) {
- pub fn (mut f Fmt) select_expr(node ast.SelectExpr) {
- pub fn (mut f Fmt) selector_expr(node ast.SelectorExpr) {
- pub fn (mut f Fmt) size_of(node ast.SizeOf) {
- pub fn (mut f Fmt) is_ref_type(node ast.IsRefType) {
- pub fn (mut f Fmt) sql_expr(node ast.SqlExpr) {
- pub fn (mut f Fmt) char_literal(node ast.CharLiteral) {
- pub fn (mut f Fmt) string_literal(node ast.StringLiteral) {
- pub fn (mut f Fmt) string_inter_literal(node ast.StringInterLiteral) {
- pub fn (mut f Fmt) type_expr(node ast.TypeNode) {
- pub fn (mut f Fmt) type_of(node ast.TypeOf) {
- pub fn (mut f Fmt) unsafe_expr(node ast.UnsafeExpr) {
- pub fn (mut f Fmt) comment(node ast.Comment, options CommentsOptions) {
- pub fn (mut f Fmt) comments(comments []ast.Comment, options CommentsOptions) {
- pub fn (mut f Fmt) comments_before_field(comments []ast.Comment) {
- pub fn (mut f Fmt) comments_after_last_field(comments []ast.Comment) {
- pub fn (mut f Fmt) import_comments(comments []ast.Comment, options CommentsOptions) {
- pub fn (mut f Fmt) attrs(attrs []ast.Attr) {
- pub fn (mut f Fmt) single_line_attrs(attrs []ast.Attr, options AttrsOptions) {
- pub fn (mut f Fmt) struct_decl(node ast.StructDecl, is_anon bool) {
- pub fn (mut f Fmt) struct_init(node ast.StructInit) {
- pub fn start() {
- pub fn interpret_v(mut b builder.Builder) {
- pub fn (v &Builder) get_compile_args() []string {
- pub fn (v &Builder) get_linker_args() []string {
- pub fn (mut v Builder) tcc_quoted_path(p string) string {
- pub fn (mut v Builder) cc() {
- pub fn (mut v Builder) quote_compiler_name(name string) string {
- pub fn start() {
- pub fn compile_js(mut b builder.Builder) {
- pub fn build_js(mut b builder.Builder, v_files []string, out_file string) {
- pub fn gen_js(mut b builder.Builder, v_files []string) string {
- pub fn start() {
- pub fn compile_c(mut b builder.Builder) {
- pub fn build_c(mut b builder.Builder, v_files []string, out_file string) {
- pub fn gen_c(mut b builder.Builder, v_files []string) strings.Builder {
- pub fn (mut v Builder) find_win_cc() ! {
- pub fn new_builder(pref_ &pref.Preferences) Builder {
- pub fn (mut b Builder) interpret_text(code string, v_files []string) ! {
- pub fn (mut b Builder) front_stages(v_files []string) ! {
- pub fn (mut b Builder) middle_stages() ! {
- pub fn (mut b Builder) front_and_middle_stages(v_files []string) ! {
- pub fn (mut b Builder) resolve_deps() {
- pub fn (b &Builder) v_files_from_dir(dir string) []string {
- pub fn (b &Builder) log(s string) {
- pub fn (b &Builder) info(s string) {
- pub fn (b &Builder) show_total_warns_and_errors_stats() {
- pub fn (mut b Builder) print_warnings_and_errors() {
- pub fn (b &Builder) error_with_pos(s string, fpath string, pos token.Pos) errors.Error {
- pub fn (mut b Builder) show_parsed_files() {
- pub fn start() {
- pub fn compile_native(mut b builder.Builder) {
- pub fn build_native(mut b builder.Builder, v_files []string, out_file string) {
- pub fn (mut v Builder) cc_msvc() {
- pub fn start() {
- pub fn compile_wasm(mut b builder.Builder) {
- pub fn build_wasm(mut b builder.Builder, v_files []string, out_file string) {
- pub fn (mut b Builder) rebuild_modules() {
- pub fn (mut b Builder) find_invalidated_modules_by_files(all_files []string) []string {
- pub fn (mut b Builder) should_rebuild() bool {
- pub fn (mut b Builder) rebuild(backend_cb FnBackend) {
- pub fn (mut b Builder) get_vtmp_filename(base_file_name string, postfix string) string {
- pub fn (b &Builder) dump_c_options(all_args []string) {
- pub fn (b &Builder) dump_modules(mods []string) {
- pub fn (b &Builder) dump_files(files []string) {
- pub fn (b &Builder) dump_defines() {
- pub fn start() {
- pub fn compile_golang(mut b builder.Builder) {
- pub fn build_golang(mut b builder.Builder, v_files []string, out_file string) {
- pub fn compile(command string, pref_ &pref.Preferences, backend_cb FnBackend) {
- pub fn (v Builder) get_builtin_files() []string {
- pub fn (v &Builder) get_user_files() []string {
- pub fn (mut s Scanner) set_current_tidx(cidx int) {
- pub fn (mut s Scanner) current_pos() token.Pos {
- pub fn (mut s Scanner) note(msg string) {
- pub fn (mut s Scanner) add_error_detail_with_pos(msg string, pos token.Pos) {
- pub fn (mut s Scanner) warn(msg string) {
- pub fn (mut s Scanner) warn_with_pos(msg string, pos token.Pos) {
- pub fn (mut s Scanner) error(msg string) {
- pub fn (mut s Scanner) error_with_pos(msg string, pos token.Pos) {
- pub fn new(name string, label string, color string) &DotGraph {
- pub fn (mut d DotGraph) writeln(line string) {
- pub fn (mut d DotGraph) finish() {
- pub fn (mut d DotGraph) new_node(nlabel string, cfg NewNodeConfig) {
- pub fn (mut d DotGraph) new_edge(source string, target string, cfg NewEdgeConfig) {
- pub fn node_name(name string, context voidptr) string {
- pub fn start_digraph() {
- pub fn start_digraph() {
- pub fn get_stats_ok() int {
- pub fn get_stats_fail() int {
- pub fn state() bool {
- pub fn (mut t TypeResolver) get_comptime_selector_var_type(node ast.ComptimeSelector) (ast.StructField, string) {
- pub fn (mut t TypeResolver) resolve_fn_generic_args(cur_fn &ast.FnDecl, func &ast.Fn, mut node ast.CallExpr) (bool, []ast.Type) {
- pub fn KeywordsMatcherTrie.new(cap int) KeywordsMatcherTrie {
- pub fn (p Pos) line_str() string {
- pub fn (pos Pos) extend(end Pos) Pos {
- pub fn (pos Pos) extend_with_last_line(end Pos, last_line int) Pos {
- pub fn (mut pos Pos) update_last_line(last_line int) {
- pub fn (t Token) debug() string {
- pub fn kind_to_string(k Kind) string {
- pub fn assign_op_to_infix_op(op Kind) Kind {
- pub fn parse_comptime(tmpl_path string, text string, mut table ast.Table, pref_ &pref.Preferences, mut scope ast.Scope) &ast.File {
- pub fn parse_text(text string, path string, mut table ast.Table, comments_mode scanner.CommentsMode, pref_ &pref.Preferences) &ast.File {
- pub fn (mut p Parser) set_path(path string) {
- pub fn parse_file(path string, mut table ast.Table, comments_mode scanner.CommentsMode, pref_ &pref.Preferences) &ast.File {
- pub fn (mut p Parser) parse() &ast.File {
- pub fn parse_files(paths []string, mut table ast.Table, pref_ &pref.Preferences) []&ast.File {
- pub fn main(args []string) !&Main {
- pub fn (mut m Main) run() !string {
- pub fn atleast(v string) bool {
- pub fn (mut pc PkgConfig) atleast(v string) bool {
- pub fn (mut pc PkgConfig) extend(pcdep &PkgConfig) !string {
- pub fn load(pkgname string, options Options) !&PkgConfig {
- pub fn list() []string {
- pub fn new_checker(table &ast.Table, pref_ &pref.Preferences) &Checker {
- pub fn (mut c Checker) check(mut ast_file ast.File) {
- pub fn (mut c Checker) check_scope_vars(sc &ast.Scope) {
- pub fn (mut c Checker) change_current_file(file &ast.File) {
- pub fn (mut c Checker) check_files(ast_files []&ast.File) {
- pub fn (mut c Checker) expr(mut node ast.Expr) ast.Type {
- pub fn (mut c Checker) lambda_expr(mut node ast.LambdaExpr, exp_typ ast.Type) ast.Type {
- pub fn (mut c Checker) lambda_expr_fix_type_of_param(mut node ast.LambdaExpr, mut pident ast.Ident, ptype ast.Type) {
- pub fn (mut c Checker) support_lambda_expr_in_sort(param_type ast.Type, return_type ast.Type, mut expr ast.LambdaExpr) {
- pub fn (mut c Checker) support_lambda_expr_one_param(param_type ast.Type, return_type ast.Type, mut expr ast.LambdaExpr) {
- pub fn foo(opts FooParams) {}
- pub fn foo() {
- pub fn print_foo(f Foo) {
- pub fn f() int {
- pub fn f() int {
- pub fn f() int {
- pub fn (a Point) + (b Point) int {
- pub fn new_cache_manager(opts []string) CacheManager {
- pub fn (mut cm CacheManager) key2cpath(key string) string {
- pub fn (mut cm CacheManager) postfix_with_key2cpath(postfix string, key string) string {
- pub fn (mut cm CacheManager) mod_postfix_with_key2cpath(mod string, postfix string, key string) string {
- pub fn (mut cm CacheManager) exists(postfix string, key string) !string {
- pub fn (mut cm CacheManager) mod_exists(mod string, postfix string, key string) !string {
- pub fn (mut cm CacheManager) save(postfix string, key string, content string) !string {
- pub fn (mut cm CacheManager) mod_save(mod string, postfix string, key string, content string) !string {
- pub fn (mut cm CacheManager) load(postfix string, key string) !string {
- pub fn (mut cm CacheManager) mod_load(mod string, postfix string, key string) !string {
- pub fn public_fn2(val int) string {
- pub fn Currency.cases() []Currency {
- pub fn (mut this Faker) currency_code() string {
- pub fn (currency Currency) to_code() string {
- pub fn (mut this Faker) country_name() string {
- pub fn (mut this Faker) random_element[T](elements []T) T {
- pub fn TopLevelDomain.cases() []TopLevelDomain {
- pub fn Country.cases() []Country {
- pub fn vadd(a int, b int) int {
- pub fn (a Point) + (b Point) Point {
- pub fn (a Point) str() string {
- pub fn point_str(a Point) string {
- pub fn (s SomeStruct) some_method() int {
- pub fn (a Point) + (b Point) Point {
- pub fn (a Point) str() string {
- pub fn point_str(a Point) string {
- pub fn take_input[T](p Params[T]) []f32 {
- pub fn take[T](a bool, b T, c T) T {
- pub fn iadd(x int, y int) int {
- pub fn imul(x int, y int) int {
- pub fn make_circle() Circle {
- pub fn make_image() Image {
- pub fn make_rect() Rect {
- pub fn vadd(a int, b int) int {
- pub fn local_fn() bool {
- pub fn f() string {
- pub fn f() string {
- pub fn f() string {
- pub fn (hd HeapData) to_primeset() PrimeSet {
- pub fn (hd HeapData) from_primeset(p PrimeSet) DataI {
- pub fn (sd StackData) to_primeset() PrimeSet {
- pub fn (sd StackData) from_primeset(p PrimeSet) DataI {
- pub fn (di DataI) cast[T]() DataI {
- pub fn (pc PrimeCfg) short() string {
- pub fn (p PrimeSet) to_primeset() PrimeSet {
- pub fn (p PrimeSet) from_primeset(ps PrimeSet) DataI {
- pub fn (p PrimeSet) predicate(pred fn (data PrimeSet) bool) bool {
- pub fn (p PrimeSet) key() string {
- pub fn (p PrimeSet) str() string {
- pub fn random_list(cfg []string) []string {
- pub fn random_set(cfg PrimeCfg) ![]PrimeSet {
- pub fn new_vtype(n int) Vtype {
- pub fn call_with_array_param(arr []Vtype) {
- pub fn destroy_vtype(t Vtype) {
- pub fn @as() {
- pub fn @asm() {
- pub fn @assert() {
- pub fn @atomic() {
- pub fn @break() {
- pub fn @const() {
- pub fn @continue() {
- pub fn @defer() {
- pub fn @else() {
- pub fn @enum() {
- pub fn @false() {
- pub fn @fn() {
- pub fn @for() {
- pub fn @go() {
- pub fn @goto() {
- pub fn @if() {
- pub fn @implements() {
- pub fn @import() {
- pub fn @in() {
- pub fn @interface() {
- pub fn @is() {
- pub fn @isreftype() {
- pub fn @lock() {
- pub fn @match() {
- pub fn @module() {
- pub fn @mut() {
- pub fn @none() {
- pub fn @or() {
- pub fn @pub() {
- pub fn @return() {
- pub fn @rlock() {
- pub fn @select() {
- pub fn @shared() {
- pub fn @sizeof() {
- pub fn @spawn() {
- pub fn @static() {
- pub fn @struct() {
- pub fn @true() {
- pub fn @type() {
- pub fn @typeof() {
- pub fn @union() {
- pub fn @unsafe() {
- pub fn @volatile() {
- pub fn (a Bigint) == (b Bigint) bool {
- pub fn (a BigintTypedef) == (b BigintTypedef) bool {
- pub fn f() int {
- pub fn f() int {
- pub fn f() int {
- pub fn f() int {
- pub fn f() int {
- pub fn f() int {
- pub fn (x BTest_enum) tst_f() string {
- pub fn tst_enum() {
- pub fn name() string {
- pub fn name() string {
- pub fn Foo.new[T](embed T) &Foo[T] {
- pub fn (m MyAlias) alias_method() int {
- pub fn (s SomeStruct) some_method() int {
- pub fn iadd(x int, y int) int {
- pub fn imul(x int, y int) int {
- pub fn (a Point) + (b Point) Point {
- pub fn (a Point) str() string {
- pub fn point_str(a Point) string {
- pub fn Walker.new(params Walker) &Walker {
- pub fn (mut w Walker) mark_builtin_type_method_as_used(k string, rk string) {
- pub fn (mut w Walker) mark_const_as_used(ckey string) {
- pub fn (mut w Walker) mark_global_as_used(ckey string) {
- pub fn (mut w Walker) mark_struct_field_default_expr_as_used(sfkey string) {
- pub fn (mut w Walker) mark_markused_fns() {
- pub fn (mut w Walker) mark_root_fns(all_fn_root_names []string) {
- pub fn (mut w Walker) mark_markused_consts() {
- pub fn (mut w Walker) mark_markused_globals() {
- pub fn (mut w Walker) mark_markused_syms() {
- pub fn (mut w Walker) mark_markused_decltypes() {
- pub fn (mut w Walker) stmt(node_ ast.Stmt) {
- pub fn (mut w Walker) fn_decl(mut node ast.FnDecl) {
- pub fn (mut w Walker) call_expr(mut node ast.CallExpr) {
- pub fn (mut w Walker) fn_by_name(fn_name string) {
- pub fn (mut w Walker) struct_fields(sfields []ast.StructField) {
- pub fn (mut w Walker) const_fields(cfields []ast.ConstField) {
- pub fn (mut w Walker) mark_fn_ret_and_params(return_type ast.Type, params []ast.Param) {
- pub fn (mut w Walker) mark_by_sym(isym ast.TypeSymbol) {
- pub fn (mut w Walker) finalize(include_panic_deps bool) {
- pub fn (mut w Walker) mark_generic_types() {
- pub fn contains_capital(s string) bool {
- pub fn cescaped_path(s string) string {
- pub fn skip_bom(file_content string) string {
- pub fn module_is_builtin(mod string) bool {
- pub fn quote_path(s string) string {
- pub fn args_quote_paths(args []string) string {
- pub fn path_of_executable(path string) string {
- pub fn replace_op(s string) string {
- pub fn check_module_is_installed(modulename string, is_verbose bool, need_update bool) !bool {
- pub fn ensure_modules_for_all_tools_are_installed(is_verbose bool) {
- pub fn prepare_tool_when_needed(source_name string) {
- pub fn recompile_file(vexe string, file string) {
- pub fn should_bundle_module(mod string) bool {
- pub fn read_file(file_path string) !string {
- pub fn new_error_manager() &EManager {
- pub fn (e &EManager) set_support_color(b bool) {
- pub fn bold(msg string) string {
- pub fn color(kind string, msg string) string {
- pub fn cached_file2sourcelines(path string) []string {
- pub fn source_file_context(kind string, filepath string, pos token.Pos) []string {
- pub fn vlines_escape_path(path string, ccompiler string) string {
- pub fn show_compiler_message(kind string, err errors.CompilerMessage) {
- pub fn print_json_errors(errs []JsonError) {
- pub fn print_json_error(kind string, err errors.CompilerMessage) {
- pub fn full_hash() string {
- pub fn new_timers(params TimerParams) &Timers {
- pub fn get_timers() &Timers {
- pub fn timing_start(label string) {
- pub fn timing_measure(label string) {
- pub fn timing_measure_cumulative(label string) {
- pub fn timing_set_should_print(should_print bool) {
- pub fn (mut t Timers) start(name string) {
- pub fn (mut t Timers) measure(name string) i64 {
- pub fn (mut t Timers) measure_cumulative(name string) i64 {
- pub fn (mut t Timers) measure_pause(name string) {
- pub fn (mut t Timers) measure_resume(name string) {
- pub fn (mut t Timers) message(name string) string {
- pub fn (mut t Timers) show(label string) {
- pub fn (mut t Timers) show_if_exists(label string) {
- pub fn (mut t Timers) show_remaining() {
- pub fn (mut t Timers) dump_all() {
- pub fn skip_bom(file_content string) string {
- pub fn new_preferences() &Preferences {
- pub fn (mut p Preferences) defines_map_unique_keys() string {
- pub fn (mut p Preferences) fill_with_defaults() {
- pub fn default_tcc_compiler() string {
- pub fn (mut p Preferences) default_c_compiler() {
- pub fn (mut p Preferences) default_cpp_compiler() {
- pub fn vexe_path() string {
- pub fn (p &Preferences) vcross_linker_name() string {
- pub fn (p &Preferences) vcross_compiler_name() string {
- pub fn get_build_facts_and_defines() ([]string, []string) {
- pub fn get_host_arch() Arch {
- pub fn arch_from_string(arch_str string) !Arch {
- pub fn (b Backend) is_js() bool {
- pub fn parse_args(known_external_commands []string, args []string) (&Preferences, string) {
- pub fn parse_args_and_show_errors(known_external_commands []string, args []string, show_output bool) (&Preferences, string) {
- pub fn eprintln_cond(condition bool, s string) {
- pub fn (pref &Preferences) vrun_elog(s string) {
- pub fn (pref &Preferences) should_output_to_stdout() bool {
- pub fn backend_from_string(s string) !Backend {
- pub fn supported_test_runners_list() string {
- pub fn (pref &Preferences) should_trace_fn_name(fname string) bool {
- pub fn (pref &Preferences) should_use_segfault_handler() bool {
- pub fn (o OS) str() string {
- pub fn get_host_os() OS {
- pub fn (prefs &Preferences) should_compile_filtered_files(dir string, files_ []string) []string {
- pub fn (prefs &Preferences) should_compile_native(file string) bool {
- pub fn (prefs &Preferences) should_compile_asm(path string) bool {
- pub fn (prefs &Preferences) should_compile_js(file string) bool {
- pub fn new_transformer(pref_ &pref.Preferences) &Transformer {
- pub fn new_transformer_with_table(table &ast.Table, pref_ &pref.Preferences) &Transformer {
- pub fn (mut t Transformer) transform_files(ast_files []&ast.File) {
- pub fn (mut t Transformer) transform(mut ast_file ast.File) {
- pub fn (mut t Transformer) find_new_array_len(node ast.AssignStmt) {
- pub fn (mut t Transformer) find_new_range(node ast.AssignStmt) {
- pub fn (mut t Transformer) find_mut_self_assign(node ast.AssignStmt) {
- pub fn (mut t Transformer) check_safe_array(mut node ast.IndexExpr) {
- pub fn (mut t Transformer) stmt(mut node ast.Stmt) ast.Stmt {
- pub fn (mut t Transformer) assert_stmt(mut node ast.AssertStmt) ast.Stmt {
- pub fn (mut t Transformer) expr_stmt_if_expr(mut node ast.IfExpr) ast.Expr {
- pub fn (mut t Transformer) expr_stmt_match_expr(mut node ast.MatchExpr) ast.Expr {
- pub fn (mut t Transformer) for_c_stmt(mut node ast.ForCStmt) ast.Stmt {
- pub fn (mut t Transformer) for_stmt(mut node ast.ForStmt) ast.Stmt {
- pub fn (mut t Transformer) interface_decl(mut node ast.InterfaceDecl) ast.Stmt {
- pub fn (mut t Transformer) expr(mut node ast.Expr) ast.Expr {
- pub fn (mut t Transformer) call_expr(mut node ast.CallExpr) ast.Expr {
- pub fn (mut t Transformer) infix_expr(mut node ast.InfixExpr) ast.Expr {
- pub fn (mut t Transformer) if_expr(mut node ast.IfExpr) ast.Expr {
- pub fn (mut t Transformer) match_expr(mut node ast.MatchExpr) ast.Expr {
- pub fn (mut t Transformer) sql_expr(mut node ast.SqlExpr) ast.Expr {
- pub fn (mut t Transformer) fn_decl_trace_calls(mut node ast.FnDecl) {
- pub fn (mut t Transformer) simplify_nested_interpolation_in_sb(mut onode ast.Stmt, mut nexpr ast.CallExpr, ntype ast.Type) bool {
| 32.37% |