Added Fn TypeInfo generation.

This commit is contained in:
Alexandros Naskos
2018-04-27 04:29:50 +03:00
parent a2dadbc206
commit 8f703f919f
2 changed files with 96 additions and 3 deletions

View File

@@ -6480,16 +6480,17 @@ static void define_builtin_compile_vars(CodeGen *g) {
" };\n"
"\n"
" pub const FnArg = struct {\n"
" is_comptime: bool,\n"
" name: []const u8,\n"
" is_generic: bool,\n"
" is_noalias: bool,\n"
" arg_type: type,\n"
" };\n"
"\n"
" pub const Fn = struct {\n"
" calling_convention: CallingConvention,\n"
" is_generic: bool,\n"
" is_varargs: bool,\n"
" is_var_args: bool,\n"
" return_type: type,\n"
" async_allocator_type: type,\n"
" args: []FnArg,\n"
" };\n"
"\n"