fn new_generics(pref_ &pref.Preferences) &Generics
fn new_generics_with_table #
fn new_generics_with_table(table &ast.Table, pref_ &pref.Preferences) &Generics
struct Generics {
pref &pref.Preferences
pub mut:
table &ast.Table = unsafe { nil }
file &ast.File = unsafe { nil }
styp_cache map[ast.Type]string
cur_fn &ast.FnDecl = unsafe { nil }
cur_concrete_types []ast.Type
inside_struct_init bool
cur_struct_init_node &ast.StructInit = unsafe { nil }
forin_types map[string]ast.Type
}
fn (Generics) solve_files #
fn (mut g Generics) solve_files(ast_files []&ast.File)
fn (mut g Generics) solve(mut ast_file ast.File)
fn (mut g Generics) stmts(mut nodes []ast.Stmt) []ast.Stmt
fn (mut g Generics) stmt(mut node ast.Stmt) ast.Stmt
fn (mut g Generics) styp(t ast.Type) string
fn (Generics) method_concrete_name #
fn (mut g Generics) method_concrete_name(old_name string, concrete_types []ast.Type, receiver_type ast.Type) string
fn (Generics) concrete_name #
fn (mut g Generics) concrete_name(old_name string, concrete_types []ast.Type) string
fn (Generics) generic_fn_decl #
fn (mut g Generics) generic_fn_decl(mut node ast.FnDecl) []ast.Stmt
fn (mut g Generics) exprs(mut nodes []ast.Expr) []ast.Expr
fn (mut g Generics) expr(mut node ast.Expr) ast.Expr